-
Notifications
You must be signed in to change notification settings - Fork 167
More improvements to the P/Invoke Binding Generator #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| using System; | ||
| using System.Runtime.InteropServices; | ||
|
|
||
| public partial struct CXTargetInfoImpl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here are a side effect of doing two passes. I validated manually there was zero diff without that commit.
| using System.Diagnostics; | ||
| using ClangSharp; | ||
|
|
||
| namespace ClangSharpPInvokeGenerator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These all got moved into CursorWriter so they could depend on the ConfigurationOptions
| "commandName": "Project", | ||
| "commandLineArgs": "--m clang --p clang_ --namespace ClangSharp --output ../../../../ClangSharp/Generated.cs --libraryPath $(LibClangName) --include $(LLVMIncludePath) --file $(LLVMIncludePath)/clang-c/Index.h --file $(LLVMIncludePath)/clang-c/CXString.h --file $(LLVMIncludePath)/clang-c/Documentation.h --file $(LLVMIncludePath)/clang-c/CXErrorCode.h --file $(LLVMIncludePath)/clang-c/BuildSystem.h --file $(LLVMIncludePath)/clang-c/CXCompilationDatabase.h --excludeFunctions clang_index_getClientEntity,clang_index_setClientEntity,clang_createTranslationUnitFromSourceFile,clang_parseTranslationUnit,clang_parseTranslationUnit2,clang_parseTranslationUnit2FullArgv,clang_reparseTranslationUnit,clang_codeCompleteAt,clang_indexSourceFile,clang_indexSourceFileFullArgv,clang_disposeSourceRangeList,clang_annotateTokens,clang_annotateTokens,clang_disposeTokens,clang_tokenize,clang_disposeStringSet,clang_getCompletionParent,clang_disposeCXPlatformAvailability,clang_getCursorPlatformAvailability", | ||
| "environmentVariables": { | ||
| "LLVMIncludePath": "C:\\Program Files\\LLVM\\include" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These weren't needed as the actual setting was coming from the csproj file, which is probably better.
This does some additional cleanup of the P/Invoke Binding Generator and allowed dotnet/LLVMSharp#93 to be regenerated and fixed to work end to end.
The primary changes are: