From 3f8e651cf1061c085f680dd5e3a912126266d0e7 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Thu, 27 May 2021 15:30:01 -0700 Subject: [PATCH 1/4] Updating Clang/LLVM to 12.0.0 --- CMakeLists.txt | 2 +- ClangSharp.sln | 54 +- Directory.Build.props | 4 +- Directory.Build.targets | 8 +- README.md | 2 +- ...ibClangSharp.runtime.freebsd.11-x64.nuspec | 2 +- ...ibClangSharp.runtime.freebsd.11-x86.nuspec | 2 +- .../libClangSharp.runtime.linux-arm.nuspec | 2 +- .../libClangSharp.runtime.linux-arm64.nuspec | 2 +- .../libClangSharp.runtime.osx-x64.nuspec | 2 +- ...ClangSharp.runtime.ubuntu.18.04-x64.nuspec | 2 +- ...ClangSharp.runtime.ubuntu.20.04-x64.nuspec | 2 +- ...ClangSharp.runtime.ubuntu.21.04-x64.nuspec | 20 + .../libClangSharp.runtime.win-arm64.nuspec | 20 + .../libClangSharp.runtime.win-x64.nuspec | 2 +- .../libClangSharp.runtime.win-x86.nuspec | 2 +- .../libClangSharp/libClangSharp.nuspec | 2 +- .../libClangSharp/libClangSharp/runtime.json | 28 +- .../libclang.runtime.freebsd.11-x64.nuspec | 8 +- .../libclang.runtime.freebsd.11-x86.nuspec | 8 +- .../libclang.runtime.linux-arm.nuspec | 8 +- .../libclang.runtime.linux-arm64.nuspec | 8 +- .../libclang.runtime.osx-x64.nuspec | 8 +- .../libclang.runtime.ubuntu.18.04-x64.nuspec | 8 +- .../libclang.runtime.ubuntu.20.04-x64.nuspec | 8 +- .../libclang.runtime.ubuntu.21.04-x64.nuspec} | 14 +- .../libclang.runtime.win-arm64.nuspec} | 14 +- .../libclang.runtime.win-x64.nuspec | 8 +- .../libclang.runtime.win-x86.nuspec | 8 +- packages/libclang/libclang/libclang.nuspec | 8 +- packages/libclang/libclang/runtime.json | 30 +- .../Cursors/Attrs/DeclOrStmtAttr.cs | 18 + .../Cursors/Decls/TemplateParamObjectDecl.cs | 15 + sources/ClangSharp/Cursors/Decls/VarDecl.cs | 4 +- .../ClangSharp/Interop.Extensions/CXCursor.cs | 8 +- .../ClangSharp/Interop/CXAvailabilityKind.cs | 2 +- sources/ClangSharp/Interop/CXCallingConv.cs | 2 +- .../ClangSharp/Interop/CXChildVisitResult.cs | 2 +- .../Interop/CXCodeCompleteResults.cs | 3 +- .../Interop/CXCodeComplete_Flags.cs | 2 +- sources/ClangSharp/Interop/CXComment.cs | 2 +- .../CXCommentInlineCommandRenderKind.cs | 2 +- sources/ClangSharp/Interop/CXCommentKind.cs | 2 +- .../Interop/CXCommentParamPassDirection.cs | 2 +- .../Interop/CXCompilationDatabase_Error.cs | 2 +- .../Interop/CXCompletionChunkKind.cs | 2 +- .../ClangSharp/Interop/CXCompletionContext.cs | 4 +- .../ClangSharp/Interop/CXCompletionResult.cs | 2 +- sources/ClangSharp/Interop/CXCursor.cs | 2 +- .../Interop/CXCursorAndRangeVisitor.cs | 3 +- sources/ClangSharp/Interop/CXCursorKind.cs | 52 +- sources/ClangSharp/Interop/CXCursorSetImpl.cs | 2 +- sources/ClangSharp/Interop/CXCursorVisitor.cs | 2 +- .../CXCursor_ExceptionSpecificationKind.cs | 2 +- .../Interop/CXDiagnosticDisplayOptions.cs | 2 +- .../Interop/CXDiagnosticSeverity.cs | 2 +- sources/ClangSharp/Interop/CXErrorCode.cs | 2 +- .../ClangSharp/Interop/CXEvalResultKind.cs | 2 +- sources/ClangSharp/Interop/CXFieldVisitor.cs | 2 +- sources/ClangSharp/Interop/CXFileUniqueID.cs | 2 +- .../ClangSharp/Interop/CXGlobalOptFlags.cs | 2 +- sources/ClangSharp/Interop/CXIdxAttrInfo.cs | 2 +- sources/ClangSharp/Interop/CXIdxAttrKind.cs | 2 +- .../ClangSharp/Interop/CXIdxBaseClassInfo.cs | 2 +- .../Interop/CXIdxCXXClassDeclInfo.cs | 2 +- .../ClangSharp/Interop/CXIdxContainerInfo.cs | 2 +- sources/ClangSharp/Interop/CXIdxDeclInfo.cs | 2 +- .../ClangSharp/Interop/CXIdxDeclInfoFlags.cs | 2 +- .../Interop/CXIdxEntityCXXTemplateKind.cs | 2 +- sources/ClangSharp/Interop/CXIdxEntityInfo.cs | 2 +- sources/ClangSharp/Interop/CXIdxEntityKind.cs | 2 +- .../ClangSharp/Interop/CXIdxEntityLanguage.cs | 2 +- .../ClangSharp/Interop/CXIdxEntityRefInfo.cs | 2 +- .../ClangSharp/Interop/CXIdxEntityRefKind.cs | 2 +- .../CXIdxIBOutletCollectionAttrInfo.cs | 2 +- .../Interop/CXIdxImportedASTFileInfo.cs | 2 +- .../Interop/CXIdxIncludedFileInfo.cs | 2 +- sources/ClangSharp/Interop/CXIdxLoc.cs | 2 +- .../Interop/CXIdxObjCCategoryDeclInfo.cs | 2 +- .../Interop/CXIdxObjCContainerDeclInfo.cs | 2 +- .../Interop/CXIdxObjCContainerKind.cs | 2 +- .../Interop/CXIdxObjCInterfaceDeclInfo.cs | 2 +- .../Interop/CXIdxObjCPropertyDeclInfo.cs | 2 +- .../Interop/CXIdxObjCProtocolRefInfo.cs | 2 +- .../Interop/CXIdxObjCProtocolRefListInfo.cs | 2 +- .../ClangSharp/Interop/CXInclusionVisitor.cs | 4 +- sources/ClangSharp/Interop/CXIndexOptFlags.cs | 2 +- sources/ClangSharp/Interop/CXLanguageKind.cs | 2 +- sources/ClangSharp/Interop/CXLinkageKind.cs | 2 +- .../ClangSharp/Interop/CXLoadDiag_Error.cs | 2 +- .../Interop/CXModuleMapDescriptorImpl.cs | 2 +- sources/ClangSharp/Interop/CXNameRefFlags.cs | 2 +- .../Interop/CXObjCDeclQualifierKind.cs | 2 +- .../Interop/CXObjCPropertyAttrKind.cs | 2 +- .../Interop/CXPlatformAvailability.cs | 2 +- .../Interop/CXPrintingPolicyProperty.cs | 2 +- .../ClangSharp/Interop/CXRefQualifierKind.cs | 2 +- sources/ClangSharp/Interop/CXReparse_Flags.cs | 2 +- sources/ClangSharp/Interop/CXResult.cs | 2 +- sources/ClangSharp/Interop/CXSaveError.cs | 2 +- .../Interop/CXSaveTranslationUnit_Flags.cs | 2 +- .../ClangSharp/Interop/CXSourceLocation.cs | 2 +- sources/ClangSharp/Interop/CXSourceRange.cs | 2 +- .../ClangSharp/Interop/CXSourceRangeList.cs | 3 +- sources/ClangSharp/Interop/CXString.cs | 2 +- sources/ClangSharp/Interop/CXStringSet.cs | 3 +- sources/ClangSharp/Interop/CXSymbolRole.cs | 2 +- sources/ClangSharp/Interop/CXTLSKind.cs | 2 +- .../ClangSharp/Interop/CXTUResourceUsage.cs | 4 +- .../Interop/CXTUResourceUsageEntry.cs | 2 +- .../Interop/CXTUResourceUsageKind.cs | 2 +- .../ClangSharp/Interop/CXTargetInfoImpl.cs | 2 +- .../Interop/CXTemplateArgumentKind.cs | 2 +- sources/ClangSharp/Interop/CXToken.cs | 3 +- sources/ClangSharp/Interop/CXTokenKind.cs | 2 +- .../Interop/CXTranslationUnitImpl.cs | 2 +- .../Interop/CXTranslationUnit_Flags.cs | 2 +- sources/ClangSharp/Interop/CXType.cs | 2 +- sources/ClangSharp/Interop/CXTypeKind.cs | 2 +- .../ClangSharp/Interop/CXTypeLayoutError.cs | 2 +- .../Interop/CXTypeNullabilityKind.cs | 3 +- sources/ClangSharp/Interop/CXUnsavedFile.cs | 2 +- sources/ClangSharp/Interop/CXVersion.cs | 2 +- .../Interop/CXVirtualFileOverlayImpl.cs | 2 +- .../ClangSharp/Interop/CXVisibilityKind.cs | 2 +- sources/ClangSharp/Interop/CXVisitorResult.cs | 2 +- sources/ClangSharp/Interop/CX_AttrKind.cs | 35 +- .../Interop/CX_CXXAccessSpecifier.cs | 2 +- sources/ClangSharp/Interop/CX_CastKind.cs | 2 + sources/ClangSharp/Interop/CX_DeclKind.cs | 1 + .../ClangSharp/Interop/CX_ExprDependence.cs | 1 + sources/ClangSharp/Interop/CX_StorageClass.cs | 2 +- .../ClangSharp/Interop/IndexerCallbacks.cs | 2 +- sources/ClangSharp/Interop/clang.cs | 111 ++-- sources/ClangSharp/Interop/clangsharp.cs | 8 - .../ClangSharpPInvokeGenerator.csproj | 2 +- .../CustomHelpBuilder.cs | 173 +------ sources/ClangSharpPInvokeGenerator/Program.cs | 484 ++++++++---------- .../Properties/GenerateClang-LICENSE.txt | 2 +- .../Properties/GenerateClang.rsp | 1 + .../Properties/GenerateLLVM-LICENSE.txt | 2 +- .../Properties/GenerateLLVM.rsp | 11 +- sources/libClangSharp/CIndexDiagnostic.cpp | 2 +- sources/libClangSharp/CIndexDiagnostic.h | 2 +- sources/libClangSharp/CXCursor.cpp | 2 +- sources/libClangSharp/CXCursor.h | 2 +- sources/libClangSharp/CXLoadedDiagnostic.cpp | 2 +- sources/libClangSharp/CXLoadedDiagnostic.h | 2 +- sources/libClangSharp/CXSourceLocation.cpp | 2 +- sources/libClangSharp/CXSourceLocation.h | 2 +- sources/libClangSharp/CXString.cpp | 2 +- sources/libClangSharp/CXString.h | 2 +- sources/libClangSharp/CXTranslationUnit.cpp | 2 +- sources/libClangSharp/CXTranslationUnit.h | 2 +- sources/libClangSharp/CXType.cpp | 2 +- sources/libClangSharp/CXType.h | 2 +- sources/libClangSharp/ClangSharp.cpp | 28 +- sources/libClangSharp/ClangSharp.h | 5 +- .../CXCodeCompleteResultsTests.cs | 12 +- .../InteropTests/CXCommentTests.cs | 12 +- .../InteropTests/CXCompletionResultTests.cs | 12 +- .../CXCursorAndRangeVisitorTests.cs | 12 +- .../InteropTests/CXCursorSetImplTests.cs | 17 +- .../InteropTests/CXCursorTests.cs | 12 +- .../InteropTests/CXFileUniqueIDTests.cs | 17 +- .../InteropTests/CXIdxAttrInfoTests.cs | 12 +- .../InteropTests/CXIdxBaseClassInfoTests.cs | 12 +- .../CXIdxCXXClassDeclInfoTests.cs | 12 +- .../InteropTests/CXIdxContainerInfoTests.cs | 12 +- .../InteropTests/CXIdxDeclInfoTests.cs | 12 +- .../InteropTests/CXIdxEntityInfoTests.cs | 12 +- .../InteropTests/CXIdxEntityRefInfoTests.cs | 12 +- .../CXIdxIBOutletCollectionAttrInfoTests.cs | 12 +- .../CXIdxImportedASTFileInfoTests.cs | 12 +- .../CXIdxIncludedFileInfoTests.cs | 12 +- .../InteropTests/CXIdxLocTests.cs | 12 +- .../CXIdxObjCCategoryDeclInfoTests.cs | 12 +- .../CXIdxObjCContainerDeclInfoTests.cs | 12 +- .../CXIdxObjCInterfaceDeclInfoTests.cs | 12 +- .../CXIdxObjCPropertyDeclInfoTests.cs | 12 +- .../CXIdxObjCProtocolRefInfoTests.cs | 12 +- .../CXIdxObjCProtocolRefListInfoTests.cs | 12 +- .../CXModuleMapDescriptorImplTests.cs | 17 +- .../CXPlatformAvailabilityTests.cs | 12 +- .../InteropTests/CXSourceLocationTests.cs | 12 +- .../InteropTests/CXSourceRangeListTests.cs | 12 +- .../InteropTests/CXSourceRangeTests.cs | 12 +- .../InteropTests/CXStringSetTests.cs | 12 +- .../InteropTests/CXStringTests.cs | 12 +- .../CXTUResourceUsageEntryTests.cs | 12 +- .../InteropTests/CXTUResourceUsageTests.cs | 12 +- .../InteropTests/CXTargetInfoImplTests.cs | 17 +- .../InteropTests/CXTokenTests.cs | 12 +- .../CXTranslationUnitImplTests.cs | 17 +- .../InteropTests/CXTypeTests.cs | 12 +- .../InteropTests/CXUnsavedFileTests.cs | 12 +- .../InteropTests/CXVersionTests.cs | 17 +- .../CXVirtualFileOverlayImplTests.cs | 17 +- .../CX_TemplateArgumentLocTests.cs | 41 ++ .../InteropTests/CX_TemplateArgumentTests.cs | 41 ++ .../InteropTests/CX_TemplateNameTests.cs | 41 ++ .../InteropTests/IndexerCallbacksTests.cs | 12 +- 202 files changed, 1221 insertions(+), 914 deletions(-) create mode 100644 packages/libClangSharp/libClangSharp.runtime.ubuntu.21.04-x64/libClangSharp.runtime.ubuntu.21.04-x64.nuspec create mode 100644 packages/libClangSharp/libClangSharp.runtime.win-arm64/libClangSharp.runtime.win-arm64.nuspec rename packages/libclang/{libclang.runtime.ubuntu.16.04-x64/libclang.runtime.ubuntu.16.04-x64.nuspec => libclang.runtime.ubuntu.21.04-x64/libclang.runtime.ubuntu.21.04-x64.nuspec} (61%) rename packages/libclang/{libclang.runtime.sles-x64/libclang.runtime.sles-x64.nuspec => libclang.runtime.win-arm64/libclang.runtime.win-arm64.nuspec} (59%) create mode 100644 sources/ClangSharp/Cursors/Attrs/DeclOrStmtAttr.cs create mode 100644 sources/ClangSharp/Cursors/Decls/TemplateParamObjectDecl.cs create mode 100644 tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentLocTests.cs create mode 100644 tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentTests.cs create mode 100644 tests/ClangSharp.UnitTests/InteropTests/CX_TemplateNameTests.cs diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ed717ed..262330b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.13) -project(ClangSharp VERSION 11.0.0) +project(ClangSharp VERSION 12.0.0) set(CMAKE_CXX_STANDARD 17) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) diff --git a/ClangSharp.sln b/ClangSharp.sln index 090f87a1..9dd2e7a6 100644 --- a/ClangSharp.sln +++ b/ClangSharp.sln @@ -93,31 +93,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.osx-x64", packages\libclang\libclang.runtime.osx-x64\libclang.runtime.osx-x64.nuspec = packages\libclang\libclang.runtime.osx-x64\libclang.runtime.osx-x64.nuspec EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.sles-x64", "libclang.runtime.sles-x64", "{C0D4BF1E-CFDA-4E9D-9A15-2A1FDA7D56C2}" - ProjectSection(SolutionItems) = preProject - packages\libclang\libclang.runtime.sles-x64\libclang.runtime.sles-x64.nuspec = packages\libclang\libclang.runtime.sles-x64\libclang.runtime.sles-x64.nuspec - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.14.04-x64", "libclang.runtime.ubuntu.14.04-x64", "{9F9CD2A9-475B-4D9A-AFB6-958B71AC0111}" - ProjectSection(SolutionItems) = preProject - packages\libclang\libclang.runtime.ubuntu.14.04-x64\libclang.runtime.ubuntu.14.04-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.14.04-x64\libclang.runtime.ubuntu.14.04-x64.nuspec - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.16.04-x64", "libclang.runtime.ubuntu.16.04-x64", "{6185B159-5F40-4D96-AD52-EB2D37241E25}" - ProjectSection(SolutionItems) = preProject - packages\libclang\libclang.runtime.ubuntu.16.04-x64\libclang.runtime.ubuntu.16.04-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.16.04-x64\libclang.runtime.ubuntu.16.04-x64.nuspec - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.18.04-x64", "libclang.runtime.ubuntu.18.04-x64", "{8756B75F-F244-43AD-9C79-1610059BDF36}" ProjectSection(SolutionItems) = preProject packages\libclang\libclang.runtime.ubuntu.18.04-x64\libclang.runtime.ubuntu.18.04-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.18.04-x64\libclang.runtime.ubuntu.18.04-x64.nuspec EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.19.04-x64", "libclang.runtime.ubuntu.19.04-x64", "{47FA436A-8E82-4002-AB49-751F1953450C}" - ProjectSection(SolutionItems) = preProject - packages\libclang\libclang.runtime.ubuntu.19.04-x64\libclang.runtime.ubuntu.19.04-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.19.04-x64\libclang.runtime.ubuntu.19.04-x64.nuspec - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.win-x64", "libclang.runtime.win-x64", "{4A298C7E-BF4D-418D-B70D-FE6D6F8097FD}" ProjectSection(SolutionItems) = preProject packages\libclang\libclang.runtime.win-x64\libclang.runtime.win-x64.nuspec = packages\libclang\libclang.runtime.win-x64\libclang.runtime.win-x64.nuspec @@ -204,6 +184,31 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp", "libClangSh sources\libClangSharp\CXType.h = sources\libClangSharp\CXType.h EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.20.04-x64", "libclang.runtime.ubuntu.20.04-x64", "{DD1C0393-4144-4A08-AD27-C98DC1A85023}" + ProjectSection(SolutionItems) = preProject + packages\libclang\libclang.runtime.ubuntu.20.04-x64\libclang.runtime.ubuntu.20.04-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.20.04-x64\libclang.runtime.ubuntu.20.04-x64.nuspec + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.21.04-x64", "libclang.runtime.ubuntu.21.04-x64", "{F3254760-351E-4886-A243-FF3778837C40}" + ProjectSection(SolutionItems) = preProject + packages\libclang\libclang.runtime.ubuntu.21.04-x64\libclang.runtime.ubuntu.21.04-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.21.04-x64\libclang.runtime.ubuntu.21.04-x64.nuspec + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.win-arm64", "libclang.runtime.win-arm64", "{B3F3A831-DA09-40A2-A25C-DE47A58BB93B}" + ProjectSection(SolutionItems) = preProject + packages\libclang\libclang.runtime.win-arm64\libclang.runtime.win-arm64.nuspec = packages\libclang\libclang.runtime.win-arm64\libclang.runtime.win-arm64.nuspec + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.ubuntu.21.04-x64", "libClangSharp.runtime.ubuntu.21.04-x64", "{D90C3C52-DA8D-44BB-B8B0-3E4EF4CBF4DC}" + ProjectSection(SolutionItems) = preProject + packages\libClangSharp\libClangSharp.runtime.ubuntu.21.04-x64\libClangSharp.runtime.ubuntu.21.04-x64.nuspec = packages\libClangSharp\libClangSharp.runtime.ubuntu.21.04-x64\libClangSharp.runtime.ubuntu.21.04-x64.nuspec + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.win-arm64", "libClangSharp.runtime.win-arm64", "{69B805C6-230D-49A2-A569-3CAC2EC9F293}" + ProjectSection(SolutionItems) = preProject + packages\libClangSharp\libClangSharp.runtime.win-arm64\libClangSharp.runtime.win-arm64.nuspec = packages\libClangSharp\libClangSharp.runtime.win-arm64\libClangSharp.runtime.win-arm64.nuspec + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -247,11 +252,7 @@ Global {F9915660-2229-418C-B269-83FE74C1943E} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {7D89072F-8E3E-4009-BCCD-5D3C69F88042} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {8006B5D7-5E0E-4A0A-884F-62C5216144EE} = {DFACF682-2673-4AE1-8F10-816D025C2D45} - {C0D4BF1E-CFDA-4E9D-9A15-2A1FDA7D56C2} = {DFACF682-2673-4AE1-8F10-816D025C2D45} - {9F9CD2A9-475B-4D9A-AFB6-958B71AC0111} = {DFACF682-2673-4AE1-8F10-816D025C2D45} - {6185B159-5F40-4D96-AD52-EB2D37241E25} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {8756B75F-F244-43AD-9C79-1610059BDF36} = {DFACF682-2673-4AE1-8F10-816D025C2D45} - {47FA436A-8E82-4002-AB49-751F1953450C} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {4A298C7E-BF4D-418D-B70D-FE6D6F8097FD} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {98BDA79D-8D81-4381-B794-65BAF82349D4} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {EDEC2130-DA14-4415-91A3-225733FB61F8} = {AE6CF12F-5CC3-463B-A74B-6CCAE26EE4EF} @@ -266,6 +267,11 @@ Global {C1218464-0B5A-480E-BA13-2C6EA370987E} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {6DF42BA2-F962-4BFC-9444-D0FD53D022B0} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {520C1055-34A1-4C72-AC24-023F84EF461D} = {732BA761-B58E-4C34-9C96-097382A55A7A} + {DD1C0393-4144-4A08-AD27-C98DC1A85023} = {DFACF682-2673-4AE1-8F10-816D025C2D45} + {F3254760-351E-4886-A243-FF3778837C40} = {DFACF682-2673-4AE1-8F10-816D025C2D45} + {B3F3A831-DA09-40A2-A25C-DE47A58BB93B} = {DFACF682-2673-4AE1-8F10-816D025C2D45} + {D90C3C52-DA8D-44BB-B8B0-3E4EF4CBF4DC} = {EDEC2130-DA14-4415-91A3-225733FB61F8} + {69B805C6-230D-49A2-A569-3CAC2EC9F293} = {EDEC2130-DA14-4415-91A3-225733FB61F8} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A9D18E0B-5409-457D-B5F3-0E217136BB01} diff --git a/Directory.Build.props b/Directory.Build.props index b28c2c45..7bd99344 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -42,8 +42,8 @@ true $(BaseArtifactsPath)pkg/$(Configuration)/ ClangSharp - 11.0.0 - beta3 + 12.0.0 + beta1 pr diff --git a/Directory.Build.targets b/Directory.Build.targets index c964ceaa..b5df26ed 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -33,12 +33,12 @@ - - + + - + - + diff --git a/README.md b/README.md index 72e161d1..1fae825a 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ This program will take a given set of C or C++ header files and generate C# bind The simplest and recommended setup is to install the generator as a .NET tool and then use response files: ``` -dotnet tool install --global ClangSharpPInvokeGenerator --version 11.0.0-beta2 +dotnet tool install --global ClangSharpPInvokeGenerator --version 12.0.0-beta1 ClangSharpPInvokeGenerator @generate.rsp ``` diff --git a/packages/libClangSharp/libClangSharp.runtime.freebsd.11-x64/libClangSharp.runtime.freebsd.11-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.freebsd.11-x64/libClangSharp.runtime.freebsd.11-x64.nuspec index cf8f9269..40689565 100644 --- a/packages/libClangSharp/libClangSharp.runtime.freebsd.11-x64/libClangSharp.runtime.freebsd.11-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.freebsd.11-x64/libClangSharp.runtime.freebsd.11-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.freebsd.11-x64 - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.freebsd.11-x86/libClangSharp.runtime.freebsd.11-x86.nuspec b/packages/libClangSharp/libClangSharp.runtime.freebsd.11-x86/libClangSharp.runtime.freebsd.11-x86.nuspec index 084d8be6..aa2c64c6 100644 --- a/packages/libClangSharp/libClangSharp.runtime.freebsd.11-x86/libClangSharp.runtime.freebsd.11-x86.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.freebsd.11-x86/libClangSharp.runtime.freebsd.11-x86.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.freebsd.11-x86 - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.linux-arm/libClangSharp.runtime.linux-arm.nuspec b/packages/libClangSharp/libClangSharp.runtime.linux-arm/libClangSharp.runtime.linux-arm.nuspec index ac9e95f1..baecca0d 100644 --- a/packages/libClangSharp/libClangSharp.runtime.linux-arm/libClangSharp.runtime.linux-arm.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.linux-arm/libClangSharp.runtime.linux-arm.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.linux-arm - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.linux-arm64/libClangSharp.runtime.linux-arm64.nuspec b/packages/libClangSharp/libClangSharp.runtime.linux-arm64/libClangSharp.runtime.linux-arm64.nuspec index 83aa70bd..4a6695ed 100644 --- a/packages/libClangSharp/libClangSharp.runtime.linux-arm64/libClangSharp.runtime.linux-arm64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.linux-arm64/libClangSharp.runtime.linux-arm64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.linux-arm64 - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.osx-x64/libClangSharp.runtime.osx-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.osx-x64/libClangSharp.runtime.osx-x64.nuspec index 3bf372c3..5c361453 100644 --- a/packages/libClangSharp/libClangSharp.runtime.osx-x64/libClangSharp.runtime.osx-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.osx-x64/libClangSharp.runtime.osx-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.osx-x64 - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.ubuntu.18.04-x64/libClangSharp.runtime.ubuntu.18.04-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.ubuntu.18.04-x64/libClangSharp.runtime.ubuntu.18.04-x64.nuspec index 12710ea4..c9246549 100644 --- a/packages/libClangSharp/libClangSharp.runtime.ubuntu.18.04-x64/libClangSharp.runtime.ubuntu.18.04-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.ubuntu.18.04-x64/libClangSharp.runtime.ubuntu.18.04-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.ubuntu.18.04-x64 - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.ubuntu.20.04-x64/libClangSharp.runtime.ubuntu.20.04-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.ubuntu.20.04-x64/libClangSharp.runtime.ubuntu.20.04-x64.nuspec index 855ff158..ee5cec63 100644 --- a/packages/libClangSharp/libClangSharp.runtime.ubuntu.20.04-x64/libClangSharp.runtime.ubuntu.20.04-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.ubuntu.20.04-x64/libClangSharp.runtime.ubuntu.20.04-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.ubuntu.20.04-x64 - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.ubuntu.21.04-x64/libClangSharp.runtime.ubuntu.21.04-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.ubuntu.21.04-x64/libClangSharp.runtime.ubuntu.21.04-x64.nuspec new file mode 100644 index 00000000..d418c7c5 --- /dev/null +++ b/packages/libClangSharp/libClangSharp.runtime.ubuntu.21.04-x64/libClangSharp.runtime.ubuntu.21.04-x64.nuspec @@ -0,0 +1,20 @@ + + + + libClangSharp.runtime.ubuntu.21.04-x64 + 12.0.0-beta1 + Microsoft and Contributors + Microsoft and Contributors + true + NCSA + https://github.com/microsoft/clangsharp + ubuntu 21.04 x64 native library for libClangSharp. + Copyright © Microsoft and Contributors + + + + + + + + diff --git a/packages/libClangSharp/libClangSharp.runtime.win-arm64/libClangSharp.runtime.win-arm64.nuspec b/packages/libClangSharp/libClangSharp.runtime.win-arm64/libClangSharp.runtime.win-arm64.nuspec new file mode 100644 index 00000000..ba60d106 --- /dev/null +++ b/packages/libClangSharp/libClangSharp.runtime.win-arm64/libClangSharp.runtime.win-arm64.nuspec @@ -0,0 +1,20 @@ + + + + libClangSharp.runtime.win-arm64 + 12.0.0-beta1 + Microsoft and Contributors + Microsoft and Contributors + true + NCSA + https://github.com/microsoft/clangsharp + win arm64 native library for libClangSharp. + Copyright © Microsoft and Contributors + + + + + + + + diff --git a/packages/libClangSharp/libClangSharp.runtime.win-x64/libClangSharp.runtime.win-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.win-x64/libClangSharp.runtime.win-x64.nuspec index f60cf287..53095aec 100644 --- a/packages/libClangSharp/libClangSharp.runtime.win-x64/libClangSharp.runtime.win-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.win-x64/libClangSharp.runtime.win-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.win-x64 - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.win-x86/libClangSharp.runtime.win-x86.nuspec b/packages/libClangSharp/libClangSharp.runtime.win-x86/libClangSharp.runtime.win-x86.nuspec index e05ba498..460225e5 100644 --- a/packages/libClangSharp/libClangSharp.runtime.win-x86/libClangSharp.runtime.win-x86.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.win-x86/libClangSharp.runtime.win-x86.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.win-x86 - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp/libClangSharp.nuspec b/packages/libClangSharp/libClangSharp/libClangSharp.nuspec index 36e5a43b..68396024 100644 --- a/packages/libClangSharp/libClangSharp/libClangSharp.nuspec +++ b/packages/libClangSharp/libClangSharp/libClangSharp.nuspec @@ -2,7 +2,7 @@ libClangSharp - 11.0.0-beta3 + 12.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp/runtime.json b/packages/libClangSharp/libClangSharp/runtime.json index 46dbdfdf..3571db51 100644 --- a/packages/libClangSharp/libClangSharp/runtime.json +++ b/packages/libClangSharp/libClangSharp/runtime.json @@ -2,47 +2,57 @@ "runtimes": { "freebsd.11-x64": { "libClangSharp": { - "libClangSharp.runtime.freebsd.11-x64": "11.0.0-beta3" + "libClangSharp.runtime.freebsd.11-x64": "12.0.0-beta1" } }, "freebsd.11-x86": { "libClangSharp": { - "libClangSharp.runtime.freebsd.11-x86": "11.0.0-beta3" + "libClangSharp.runtime.freebsd.11-x86": "12.0.0-beta1" } }, "linux-arm": { "libClangSharp": { - "libClangSharp.runtime.linux-arm": "11.0.0-beta3" + "libClangSharp.runtime.linux-arm": "12.0.0-beta1" } }, "linux-arm64": { "libClangSharp": { - "libClangSharp.runtime.linux-arm64": "11.0.0-beta3" + "libClangSharp.runtime.linux-arm64": "12.0.0-beta1" } }, "osx-x64": { "libClangSharp": { - "libClangSharp.runtime.osx-x64": "11.0.0-beta3" + "libClangSharp.runtime.osx-x64": "12.0.0-beta1" } }, "ubuntu.18.04-x64": { "libClangSharp": { - "libClangSharp.runtime.ubuntu.18.04-x64": "11.0.0-beta3" + "libClangSharp.runtime.ubuntu.18.04-x64": "12.0.0-beta1" } }, "ubuntu.20.04-x64": { "libClangSharp": { - "libClangSharp.runtime.ubuntu.20.04-x64": "11.0.0-beta3" + "libClangSharp.runtime.ubuntu.20.04-x64": "12.0.0-beta1" + } + }, + "ubuntu.21.04-x64": { + "libClangSharp": { + "libClangSharp.runtime.ubuntu.21.04-x64": "12.0.0-beta1" + } + }, + "win-arm64": { + "libClangSharp": { + "libClangSharp.runtime.win-arm64": "12.0.0-beta1" } }, "win-x64": { "libClangSharp": { - "libClangSharp.runtime.win-x64": "11.0.0-beta3" + "libClangSharp.runtime.win-x64": "12.0.0-beta1" } }, "win-x86": { "libClangSharp": { - "libClangSharp.runtime.win-x86": "11.0.0-beta3" + "libClangSharp.runtime.win-x86": "12.0.0-beta1" } } } diff --git a/packages/libclang/libclang.runtime.freebsd.11-x64/libclang.runtime.freebsd.11-x64.nuspec b/packages/libclang/libclang.runtime.freebsd.11-x64/libclang.runtime.freebsd.11-x64.nuspec index 94defb5a..32ea0676 100644 --- a/packages/libclang/libclang.runtime.freebsd.11-x64/libclang.runtime.freebsd.11-x64.nuspec +++ b/packages/libclang/libclang.runtime.freebsd.11-x64/libclang.runtime.freebsd.11-x64.nuspec @@ -2,15 +2,15 @@ libclang.runtime.freebsd.11-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp freebsd 11 x64 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang.runtime.freebsd.11-x86/libclang.runtime.freebsd.11-x86.nuspec b/packages/libclang/libclang.runtime.freebsd.11-x86/libclang.runtime.freebsd.11-x86.nuspec index 93fc3256..cb042381 100644 --- a/packages/libclang/libclang.runtime.freebsd.11-x86/libclang.runtime.freebsd.11-x86.nuspec +++ b/packages/libclang/libclang.runtime.freebsd.11-x86/libclang.runtime.freebsd.11-x86.nuspec @@ -2,15 +2,15 @@ libclang.runtime.freebsd.11-x86 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp freebsd 11 x86 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang.runtime.linux-arm/libclang.runtime.linux-arm.nuspec b/packages/libclang/libclang.runtime.linux-arm/libclang.runtime.linux-arm.nuspec index 5e04a7a4..c00abd48 100644 --- a/packages/libclang/libclang.runtime.linux-arm/libclang.runtime.linux-arm.nuspec +++ b/packages/libclang/libclang.runtime.linux-arm/libclang.runtime.linux-arm.nuspec @@ -2,15 +2,15 @@ libclang.runtime.linux-arm - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp linux arm native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang.runtime.linux-arm64/libclang.runtime.linux-arm64.nuspec b/packages/libclang/libclang.runtime.linux-arm64/libclang.runtime.linux-arm64.nuspec index fd061894..aee059d1 100644 --- a/packages/libclang/libclang.runtime.linux-arm64/libclang.runtime.linux-arm64.nuspec +++ b/packages/libclang/libclang.runtime.linux-arm64/libclang.runtime.linux-arm64.nuspec @@ -2,15 +2,15 @@ libclang.runtime.linux-arm64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp linux arm64 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang.runtime.osx-x64/libclang.runtime.osx-x64.nuspec b/packages/libclang/libclang.runtime.osx-x64/libclang.runtime.osx-x64.nuspec index 3a21c597..e3cab3a6 100644 --- a/packages/libclang/libclang.runtime.osx-x64/libclang.runtime.osx-x64.nuspec +++ b/packages/libclang/libclang.runtime.osx-x64/libclang.runtime.osx-x64.nuspec @@ -2,15 +2,15 @@ libclang.runtime.osx-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp osx x64 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang.runtime.ubuntu.18.04-x64/libclang.runtime.ubuntu.18.04-x64.nuspec b/packages/libclang/libclang.runtime.ubuntu.18.04-x64/libclang.runtime.ubuntu.18.04-x64.nuspec index 7ac25f98..6c8b77b2 100644 --- a/packages/libclang/libclang.runtime.ubuntu.18.04-x64/libclang.runtime.ubuntu.18.04-x64.nuspec +++ b/packages/libclang/libclang.runtime.ubuntu.18.04-x64/libclang.runtime.ubuntu.18.04-x64.nuspec @@ -2,15 +2,15 @@ libclang.runtime.ubuntu.18.04-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp ubuntu 18.04 x64 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang.runtime.ubuntu.20.04-x64/libclang.runtime.ubuntu.20.04-x64.nuspec b/packages/libclang/libclang.runtime.ubuntu.20.04-x64/libclang.runtime.ubuntu.20.04-x64.nuspec index 64d1b78f..cdd0ada4 100644 --- a/packages/libclang/libclang.runtime.ubuntu.20.04-x64/libclang.runtime.ubuntu.20.04-x64.nuspec +++ b/packages/libclang/libclang.runtime.ubuntu.20.04-x64/libclang.runtime.ubuntu.20.04-x64.nuspec @@ -2,15 +2,15 @@ libclang.runtime.ubuntu.20.04-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp ubuntu 20.04 x64 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang.runtime.ubuntu.16.04-x64/libclang.runtime.ubuntu.16.04-x64.nuspec b/packages/libclang/libclang.runtime.ubuntu.21.04-x64/libclang.runtime.ubuntu.21.04-x64.nuspec similarity index 61% rename from packages/libclang/libclang.runtime.ubuntu.16.04-x64/libclang.runtime.ubuntu.16.04-x64.nuspec rename to packages/libclang/libclang.runtime.ubuntu.21.04-x64/libclang.runtime.ubuntu.21.04-x64.nuspec index 00db8f99..7692e42d 100644 --- a/packages/libclang/libclang.runtime.ubuntu.16.04-x64/libclang.runtime.ubuntu.16.04-x64.nuspec +++ b/packages/libclang/libclang.runtime.ubuntu.21.04-x64/libclang.runtime.ubuntu.21.04-x64.nuspec @@ -1,19 +1,19 @@ - libclang.runtime.ubuntu.16.04-x64 - 11.0.0 + libclang.runtime.ubuntu.21.04-x64 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp - ubuntu 16.04 x64 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + ubuntu 21.04 x64 native library for libclang. + Copyright © LLVM Project + - + diff --git a/packages/libclang/libclang.runtime.sles-x64/libclang.runtime.sles-x64.nuspec b/packages/libclang/libclang.runtime.win-arm64/libclang.runtime.win-arm64.nuspec similarity index 59% rename from packages/libclang/libclang.runtime.sles-x64/libclang.runtime.sles-x64.nuspec rename to packages/libclang/libclang.runtime.win-arm64/libclang.runtime.win-arm64.nuspec index a00a7792..5e38ba90 100644 --- a/packages/libclang/libclang.runtime.sles-x64/libclang.runtime.sles-x64.nuspec +++ b/packages/libclang/libclang.runtime.win-arm64/libclang.runtime.win-arm64.nuspec @@ -1,19 +1,19 @@ - libclang.runtime.sles-x64 - 11.0.0 + libclang.runtime.win-arm64 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp - sles x64 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + win arm64 native library for libclang. + Copyright © LLVM Project + - + diff --git a/packages/libclang/libclang.runtime.win-x64/libclang.runtime.win-x64.nuspec b/packages/libclang/libclang.runtime.win-x64/libclang.runtime.win-x64.nuspec index ed21230f..3c2a22b0 100644 --- a/packages/libclang/libclang.runtime.win-x64/libclang.runtime.win-x64.nuspec +++ b/packages/libclang/libclang.runtime.win-x64/libclang.runtime.win-x64.nuspec @@ -2,15 +2,15 @@ libclang.runtime.win-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp win x64 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang.runtime.win-x86/libclang.runtime.win-x86.nuspec b/packages/libclang/libclang.runtime.win-x86/libclang.runtime.win-x86.nuspec index 07fc5f8b..81e4b30f 100644 --- a/packages/libclang/libclang.runtime.win-x86/libclang.runtime.win-x86.nuspec +++ b/packages/libclang/libclang.runtime.win-x86/libclang.runtime.win-x86.nuspec @@ -2,15 +2,15 @@ libclang.runtime.win-x86 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp win x86 native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang/libclang.nuspec b/packages/libclang/libclang/libclang.nuspec index 41728007..ed23fab7 100644 --- a/packages/libclang/libclang/libclang.nuspec +++ b/packages/libclang/libclang/libclang.nuspec @@ -2,15 +2,15 @@ libclang - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/clangsharp Multi-platform native library for libclang. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libclang/libclang/runtime.json b/packages/libclang/libclang/runtime.json index 274fff1f..bea0d037 100644 --- a/packages/libclang/libclang/runtime.json +++ b/packages/libclang/libclang/runtime.json @@ -2,57 +2,57 @@ "runtimes": { "freebsd.11-x64": { "libclang": { - "libclang.runtime.freebsd.11-x64": "11.0.0" + "libclang.runtime.freebsd.11-x64": "12.0.0" } }, "freebsd.11-x86": { "libclang": { - "libclang.runtime.freebsd.11-x86": "11.0.0" + "libclang.runtime.freebsd.11-x86": "12.0.0" } }, "linux-arm": { "libclang": { - "libclang.runtime.linux-arm": "11.0.0" + "libclang.runtime.linux-arm": "12.0.0" } }, "linux-arm64": { "libclang": { - "libclang.runtime.linux-arm64": "11.0.0" + "libclang.runtime.linux-arm64": "12.0.0" } }, "osx-x64": { "libclang": { - "libclang.runtime.osx-x64": "11.0.0" + "libclang.runtime.osx-x64": "12.0.0" } }, - "sles-x64": { + "ubuntu.18.04-x64": { "libclang": { - "libclang.runtime.sles-x64": "11.0.0" + "libclang.runtime.ubuntu.18.04-x64": "12.0.0" } }, - "ubuntu.16.04-x64": { + "ubuntu.20.04-x64": { "libclang": { - "libclang.runtime.ubuntu.16.04-x64": "11.0.0" + "libclang.runtime.ubuntu.20.04-x64": "12.0.0" } }, - "ubuntu.18.04-x64": { + "ubuntu.21.04-x64": { "libclang": { - "libclang.runtime.ubuntu.18.04-x64": "11.0.0" + "libclang.runtime.ubuntu.21.04-x64": "12.0.0" } }, - "ubuntu.20.04-x64": { + "win-arm64": { "libclang": { - "libclang.runtime.ubuntu.20.04-x64": "11.0.0" + "libclang.runtime.win-arm64": "12.0.0" } }, "win-x64": { "libclang": { - "libclang.runtime.win-x64": "11.0.0" + "libclang.runtime.win-x64": "12.0.0" } }, "win-x86": { "libclang": { - "libclang.runtime.win-x86": "11.0.0" + "libclang.runtime.win-x86": "12.0.0" } } } diff --git a/sources/ClangSharp/Cursors/Attrs/DeclOrStmtAttr.cs b/sources/ClangSharp/Cursors/Attrs/DeclOrStmtAttr.cs new file mode 100644 index 00000000..e2e685ab --- /dev/null +++ b/sources/ClangSharp/Cursors/Attrs/DeclOrStmtAttr.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +using System; +using ClangSharp.Interop; + +namespace ClangSharp +{ + public sealed class DeclOrStmtAttr : InheritableAttr + { + internal DeclOrStmtAttr(CXCursor handle) : base(handle) + { + if (handle.AttrKind is > CX_AttrKind.CX_AttrKind_LastDeclOrStmtAttr or < CX_AttrKind.CX_AttrKind_FirstDeclOrStmtAttr) + { + throw new ArgumentOutOfRangeException(nameof(handle)); + } + } + } +} diff --git a/sources/ClangSharp/Cursors/Decls/TemplateParamObjectDecl.cs b/sources/ClangSharp/Cursors/Decls/TemplateParamObjectDecl.cs new file mode 100644 index 00000000..59dc295e --- /dev/null +++ b/sources/ClangSharp/Cursors/Decls/TemplateParamObjectDecl.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +using ClangSharp.Interop; + +namespace ClangSharp +{ + public sealed class TemplateParamObjectDecl : ValueDecl, IMergeable + { + internal TemplateParamObjectDecl(CXCursor handle) : base(handle, CXCursorKind.CXCursor_UnexposedDecl, CX_DeclKind.CX_DeclKind_TemplateParamObject) + { + } + + public new TemplateParamObjectDecl CanonicalDecl => (TemplateParamObjectDecl)base.CanonicalDecl; + } +} diff --git a/sources/ClangSharp/Cursors/Decls/VarDecl.cs b/sources/ClangSharp/Cursors/Decls/VarDecl.cs index 7a0096a0..94ca7e89 100644 --- a/sources/ClangSharp/Cursors/Decls/VarDecl.cs +++ b/sources/ClangSharp/Cursors/Decls/VarDecl.cs @@ -31,9 +31,9 @@ private protected VarDecl(CXCursor handle, CXCursorKind expectedCursorKind, CX_D public VarDecl Definition => _definition.Value; - public bool HasExternalStorage => Handle.HasExternalStorage; + public bool HasExternalStorage => Handle.HasVarDeclExternalStorage; - public bool HasGlobalStorage => Handle.HasGlobalStorage; + public bool HasGlobalStorage => Handle.HasVarDeclGlobalStorage; public bool HasInit => Handle.HasInit; diff --git a/sources/ClangSharp/Interop.Extensions/CXCursor.cs b/sources/ClangSharp/Interop.Extensions/CXCursor.cs index e0b23e68..f87be3ec 100644 --- a/sources/ClangSharp/Interop.Extensions/CXCursor.cs +++ b/sources/ClangSharp/Interop.Extensions/CXCursor.cs @@ -726,10 +726,6 @@ public string DeclKindSpelling public bool HasExplicitTemplateArgs => clangsharp.Cursor_getHasExplicitTemplateArgs(this) != 0; - public bool HasExternalStorage => clangsharp.Cursor_getHasExternalStorage(this) != 0; - - public bool HasGlobalStorage => clangsharp.Cursor_getHasGlobalStorage(this) != 0; - public bool HasImplicitReturnZero => clangsharp.Cursor_getHasImplicitReturnZero(this) != 0; public bool HasInheritedDefaultArg => clangsharp.Cursor_getHasInheritedDefaultArg(this) != 0; @@ -762,6 +758,10 @@ public string DeclKindSpelling public bool HasUserDeclaredMoveOperation => clangsharp.Cursor_getHasUserDeclaredMoveOperation(this) != 0; + public bool HasVarDeclExternalStorage => clang.Cursor_hasVarDeclExternalStorage(this) != 0; + + public bool HasVarDeclGlobalStorage => clang.Cursor_hasVarDeclGlobalStorage(this) != 0; + public bool HasVarStorage => clangsharp.Cursor_getHasVarStorage(this) != 0; public CXType IBOutletCollectionType => clang.getIBOutletCollectionType(this); diff --git a/sources/ClangSharp/Interop/CXAvailabilityKind.cs b/sources/ClangSharp/Interop/CXAvailabilityKind.cs index bf4dd40b..8311f8c2 100644 --- a/sources/ClangSharp/Interop/CXAvailabilityKind.cs +++ b/sources/ClangSharp/Interop/CXAvailabilityKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCallingConv.cs b/sources/ClangSharp/Interop/CXCallingConv.cs index 24f2ce72..9a56301e 100644 --- a/sources/ClangSharp/Interop/CXCallingConv.cs +++ b/sources/ClangSharp/Interop/CXCallingConv.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXChildVisitResult.cs b/sources/ClangSharp/Interop/CXChildVisitResult.cs index e84956d8..4ff26a03 100644 --- a/sources/ClangSharp/Interop/CXChildVisitResult.cs +++ b/sources/ClangSharp/Interop/CXChildVisitResult.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCodeCompleteResults.cs b/sources/ClangSharp/Interop/CXCodeCompleteResults.cs index 77aa0389..89066d6c 100644 --- a/sources/ClangSharp/Interop/CXCodeCompleteResults.cs +++ b/sources/ClangSharp/Interop/CXCodeCompleteResults.cs @@ -1,13 +1,12 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop { public unsafe partial struct CXCodeCompleteResults { - [NativeTypeName("CXCompletionResult *")] public CXCompletionResult* Results; [NativeTypeName("unsigned int")] diff --git a/sources/ClangSharp/Interop/CXCodeComplete_Flags.cs b/sources/ClangSharp/Interop/CXCodeComplete_Flags.cs index 7733d3d9..fa3f0028 100644 --- a/sources/ClangSharp/Interop/CXCodeComplete_Flags.cs +++ b/sources/ClangSharp/Interop/CXCodeComplete_Flags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXComment.cs b/sources/ClangSharp/Interop/CXComment.cs index 0b0c8dec..64850d88 100644 --- a/sources/ClangSharp/Interop/CXComment.cs +++ b/sources/ClangSharp/Interop/CXComment.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCommentInlineCommandRenderKind.cs b/sources/ClangSharp/Interop/CXCommentInlineCommandRenderKind.cs index 80ef46d6..56de68d8 100644 --- a/sources/ClangSharp/Interop/CXCommentInlineCommandRenderKind.cs +++ b/sources/ClangSharp/Interop/CXCommentInlineCommandRenderKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCommentKind.cs b/sources/ClangSharp/Interop/CXCommentKind.cs index 6a585dda..a203ca1a 100644 --- a/sources/ClangSharp/Interop/CXCommentKind.cs +++ b/sources/ClangSharp/Interop/CXCommentKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCommentParamPassDirection.cs b/sources/ClangSharp/Interop/CXCommentParamPassDirection.cs index 2b5f292a..2233f12c 100644 --- a/sources/ClangSharp/Interop/CXCommentParamPassDirection.cs +++ b/sources/ClangSharp/Interop/CXCommentParamPassDirection.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCompilationDatabase_Error.cs b/sources/ClangSharp/Interop/CXCompilationDatabase_Error.cs index 898f7efc..d8e2280b 100644 --- a/sources/ClangSharp/Interop/CXCompilationDatabase_Error.cs +++ b/sources/ClangSharp/Interop/CXCompilationDatabase_Error.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCompletionChunkKind.cs b/sources/ClangSharp/Interop/CXCompletionChunkKind.cs index 91c74130..d961da55 100644 --- a/sources/ClangSharp/Interop/CXCompletionChunkKind.cs +++ b/sources/ClangSharp/Interop/CXCompletionChunkKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCompletionContext.cs b/sources/ClangSharp/Interop/CXCompletionContext.cs index ad6d3022..f48fd3c2 100644 --- a/sources/ClangSharp/Interop/CXCompletionContext.cs +++ b/sources/ClangSharp/Interop/CXCompletionContext.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop @@ -31,6 +31,6 @@ public enum CXCompletionContext CXCompletionContext_MacroName = 1 << 20, CXCompletionContext_NaturalLanguage = 1 << 21, CXCompletionContext_IncludedFile = 1 << 22, - CXCompletionContext_Unknown = (1 << 23) - 1, + CXCompletionContext_Unknown = ((1 << 23) - 1), } } diff --git a/sources/ClangSharp/Interop/CXCompletionResult.cs b/sources/ClangSharp/Interop/CXCompletionResult.cs index 737e2749..8ec253d7 100644 --- a/sources/ClangSharp/Interop/CXCompletionResult.cs +++ b/sources/ClangSharp/Interop/CXCompletionResult.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCursor.cs b/sources/ClangSharp/Interop/CXCursor.cs index 6d7eae93..eefa2af7 100644 --- a/sources/ClangSharp/Interop/CXCursor.cs +++ b/sources/ClangSharp/Interop/CXCursor.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCursorAndRangeVisitor.cs b/sources/ClangSharp/Interop/CXCursorAndRangeVisitor.cs index 4d4e473a..b7fe28b7 100644 --- a/sources/ClangSharp/Interop/CXCursorAndRangeVisitor.cs +++ b/sources/ClangSharp/Interop/CXCursorAndRangeVisitor.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -9,7 +9,6 @@ namespace ClangSharp.Interop { public unsafe partial struct CXCursorAndRangeVisitor { - [NativeTypeName("void *")] public void* context; [NativeTypeName("enum CXVisitorResult (*)(void *, CXCursor, CXSourceRange)")] diff --git a/sources/ClangSharp/Interop/CXCursorKind.cs b/sources/ClangSharp/Interop/CXCursorKind.cs index 8ab75ad7..99cf1d63 100644 --- a/sources/ClangSharp/Interop/CXCursorKind.cs +++ b/sources/ClangSharp/Interop/CXCursorKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop @@ -97,31 +97,31 @@ public enum CXCursorKind CXCursor_CXXReinterpretCastExpr = 126, CXCursor_CXXConstCastExpr = 127, CXCursor_CXXFunctionalCastExpr = 128, - CXCursor_CXXAddrspaceCastExpr = 129, - CXCursor_CXXTypeidExpr = 130, - CXCursor_CXXBoolLiteralExpr = 131, - CXCursor_CXXNullPtrLiteralExpr = 132, - CXCursor_CXXThisExpr = 133, - CXCursor_CXXThrowExpr = 134, - CXCursor_CXXNewExpr = 135, - CXCursor_CXXDeleteExpr = 136, - CXCursor_UnaryExpr = 137, - CXCursor_ObjCStringLiteral = 138, - CXCursor_ObjCEncodeExpr = 139, - CXCursor_ObjCSelectorExpr = 140, - CXCursor_ObjCProtocolExpr = 141, - CXCursor_ObjCBridgedCastExpr = 142, - CXCursor_PackExpansionExpr = 143, - CXCursor_SizeOfPackExpr = 144, - CXCursor_LambdaExpr = 145, - CXCursor_ObjCBoolLiteralExpr = 146, - CXCursor_ObjCSelfExpr = 147, - CXCursor_OMPArraySectionExpr = 148, - CXCursor_ObjCAvailabilityCheckExpr = 149, - CXCursor_FixedPointLiteral = 150, - CXCursor_OMPArrayShapingExpr = 151, - CXCursor_OMPIteratorExpr = 152, - CXCursor_LastExpr = CXCursor_OMPIteratorExpr, + CXCursor_CXXTypeidExpr = 129, + CXCursor_CXXBoolLiteralExpr = 130, + CXCursor_CXXNullPtrLiteralExpr = 131, + CXCursor_CXXThisExpr = 132, + CXCursor_CXXThrowExpr = 133, + CXCursor_CXXNewExpr = 134, + CXCursor_CXXDeleteExpr = 135, + CXCursor_UnaryExpr = 136, + CXCursor_ObjCStringLiteral = 137, + CXCursor_ObjCEncodeExpr = 138, + CXCursor_ObjCSelectorExpr = 139, + CXCursor_ObjCProtocolExpr = 140, + CXCursor_ObjCBridgedCastExpr = 141, + CXCursor_PackExpansionExpr = 142, + CXCursor_SizeOfPackExpr = 143, + CXCursor_LambdaExpr = 144, + CXCursor_ObjCBoolLiteralExpr = 145, + CXCursor_ObjCSelfExpr = 146, + CXCursor_OMPArraySectionExpr = 147, + CXCursor_ObjCAvailabilityCheckExpr = 148, + CXCursor_FixedPointLiteral = 149, + CXCursor_OMPArrayShapingExpr = 150, + CXCursor_OMPIteratorExpr = 151, + CXCursor_CXXAddrspaceCastExpr = 152, + CXCursor_LastExpr = CXCursor_CXXAddrspaceCastExpr, CXCursor_FirstStmt = 200, CXCursor_UnexposedStmt = 200, CXCursor_LabelStmt = 201, diff --git a/sources/ClangSharp/Interop/CXCursorSetImpl.cs b/sources/ClangSharp/Interop/CXCursorSetImpl.cs index 83345125..eddb1009 100644 --- a/sources/ClangSharp/Interop/CXCursorSetImpl.cs +++ b/sources/ClangSharp/Interop/CXCursorSetImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXCursorVisitor.cs b/sources/ClangSharp/Interop/CXCursorVisitor.cs index 935a47b3..95c5a650 100644 --- a/sources/ClangSharp/Interop/CXCursorVisitor.cs +++ b/sources/ClangSharp/Interop/CXCursorVisitor.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/ClangSharp/Interop/CXCursor_ExceptionSpecificationKind.cs b/sources/ClangSharp/Interop/CXCursor_ExceptionSpecificationKind.cs index f031cec8..290ab5ac 100644 --- a/sources/ClangSharp/Interop/CXCursor_ExceptionSpecificationKind.cs +++ b/sources/ClangSharp/Interop/CXCursor_ExceptionSpecificationKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXDiagnosticDisplayOptions.cs b/sources/ClangSharp/Interop/CXDiagnosticDisplayOptions.cs index d67ab626..1d27b94c 100644 --- a/sources/ClangSharp/Interop/CXDiagnosticDisplayOptions.cs +++ b/sources/ClangSharp/Interop/CXDiagnosticDisplayOptions.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXDiagnosticSeverity.cs b/sources/ClangSharp/Interop/CXDiagnosticSeverity.cs index d44f56b1..c898781b 100644 --- a/sources/ClangSharp/Interop/CXDiagnosticSeverity.cs +++ b/sources/ClangSharp/Interop/CXDiagnosticSeverity.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXErrorCode.cs b/sources/ClangSharp/Interop/CXErrorCode.cs index 0ac285a8..cf292107 100644 --- a/sources/ClangSharp/Interop/CXErrorCode.cs +++ b/sources/ClangSharp/Interop/CXErrorCode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXEvalResultKind.cs b/sources/ClangSharp/Interop/CXEvalResultKind.cs index f4ba9bac..c2709ec7 100644 --- a/sources/ClangSharp/Interop/CXEvalResultKind.cs +++ b/sources/ClangSharp/Interop/CXEvalResultKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXFieldVisitor.cs b/sources/ClangSharp/Interop/CXFieldVisitor.cs index 7ad5e275..9c6618e8 100644 --- a/sources/ClangSharp/Interop/CXFieldVisitor.cs +++ b/sources/ClangSharp/Interop/CXFieldVisitor.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/ClangSharp/Interop/CXFileUniqueID.cs b/sources/ClangSharp/Interop/CXFileUniqueID.cs index 6b2888bd..e24ad074 100644 --- a/sources/ClangSharp/Interop/CXFileUniqueID.cs +++ b/sources/ClangSharp/Interop/CXFileUniqueID.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXGlobalOptFlags.cs b/sources/ClangSharp/Interop/CXGlobalOptFlags.cs index 97034eed..d9b0f8fa 100644 --- a/sources/ClangSharp/Interop/CXGlobalOptFlags.cs +++ b/sources/ClangSharp/Interop/CXGlobalOptFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxAttrInfo.cs b/sources/ClangSharp/Interop/CXIdxAttrInfo.cs index 4955f2ce..a0bcb731 100644 --- a/sources/ClangSharp/Interop/CXIdxAttrInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxAttrInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxAttrKind.cs b/sources/ClangSharp/Interop/CXIdxAttrKind.cs index 0c381aef..268f2367 100644 --- a/sources/ClangSharp/Interop/CXIdxAttrKind.cs +++ b/sources/ClangSharp/Interop/CXIdxAttrKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxBaseClassInfo.cs b/sources/ClangSharp/Interop/CXIdxBaseClassInfo.cs index 83efcf65..38dead29 100644 --- a/sources/ClangSharp/Interop/CXIdxBaseClassInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxBaseClassInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxCXXClassDeclInfo.cs b/sources/ClangSharp/Interop/CXIdxCXXClassDeclInfo.cs index f57eeeed..2de6c30e 100644 --- a/sources/ClangSharp/Interop/CXIdxCXXClassDeclInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxCXXClassDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxContainerInfo.cs b/sources/ClangSharp/Interop/CXIdxContainerInfo.cs index 1aaa3f98..33d8c7ae 100644 --- a/sources/ClangSharp/Interop/CXIdxContainerInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxContainerInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxDeclInfo.cs b/sources/ClangSharp/Interop/CXIdxDeclInfo.cs index e8b7b1eb..b4d988cb 100644 --- a/sources/ClangSharp/Interop/CXIdxDeclInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxDeclInfoFlags.cs b/sources/ClangSharp/Interop/CXIdxDeclInfoFlags.cs index 5c99cc24..bc26f259 100644 --- a/sources/ClangSharp/Interop/CXIdxDeclInfoFlags.cs +++ b/sources/ClangSharp/Interop/CXIdxDeclInfoFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxEntityCXXTemplateKind.cs b/sources/ClangSharp/Interop/CXIdxEntityCXXTemplateKind.cs index c9b2ea52..5dfe6a2a 100644 --- a/sources/ClangSharp/Interop/CXIdxEntityCXXTemplateKind.cs +++ b/sources/ClangSharp/Interop/CXIdxEntityCXXTemplateKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxEntityInfo.cs b/sources/ClangSharp/Interop/CXIdxEntityInfo.cs index c248d2cd..89895432 100644 --- a/sources/ClangSharp/Interop/CXIdxEntityInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxEntityInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxEntityKind.cs b/sources/ClangSharp/Interop/CXIdxEntityKind.cs index 23fd85d3..af51a08f 100644 --- a/sources/ClangSharp/Interop/CXIdxEntityKind.cs +++ b/sources/ClangSharp/Interop/CXIdxEntityKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxEntityLanguage.cs b/sources/ClangSharp/Interop/CXIdxEntityLanguage.cs index 4ebdc23d..cd2d8c2c 100644 --- a/sources/ClangSharp/Interop/CXIdxEntityLanguage.cs +++ b/sources/ClangSharp/Interop/CXIdxEntityLanguage.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxEntityRefInfo.cs b/sources/ClangSharp/Interop/CXIdxEntityRefInfo.cs index 6012fd60..bf5c66e8 100644 --- a/sources/ClangSharp/Interop/CXIdxEntityRefInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxEntityRefInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxEntityRefKind.cs b/sources/ClangSharp/Interop/CXIdxEntityRefKind.cs index 398ed465..f021f758 100644 --- a/sources/ClangSharp/Interop/CXIdxEntityRefKind.cs +++ b/sources/ClangSharp/Interop/CXIdxEntityRefKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxIBOutletCollectionAttrInfo.cs b/sources/ClangSharp/Interop/CXIdxIBOutletCollectionAttrInfo.cs index 53cbe8ce..065532d8 100644 --- a/sources/ClangSharp/Interop/CXIdxIBOutletCollectionAttrInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxIBOutletCollectionAttrInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxImportedASTFileInfo.cs b/sources/ClangSharp/Interop/CXIdxImportedASTFileInfo.cs index 6aecd379..27c363be 100644 --- a/sources/ClangSharp/Interop/CXIdxImportedASTFileInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxImportedASTFileInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxIncludedFileInfo.cs b/sources/ClangSharp/Interop/CXIdxIncludedFileInfo.cs index b9ec21d3..88f7abce 100644 --- a/sources/ClangSharp/Interop/CXIdxIncludedFileInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxIncludedFileInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxLoc.cs b/sources/ClangSharp/Interop/CXIdxLoc.cs index cff80d7c..808989df 100644 --- a/sources/ClangSharp/Interop/CXIdxLoc.cs +++ b/sources/ClangSharp/Interop/CXIdxLoc.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxObjCCategoryDeclInfo.cs b/sources/ClangSharp/Interop/CXIdxObjCCategoryDeclInfo.cs index ea9cc842..ac4be3e5 100644 --- a/sources/ClangSharp/Interop/CXIdxObjCCategoryDeclInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxObjCCategoryDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxObjCContainerDeclInfo.cs b/sources/ClangSharp/Interop/CXIdxObjCContainerDeclInfo.cs index 988ced10..996e4b9c 100644 --- a/sources/ClangSharp/Interop/CXIdxObjCContainerDeclInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxObjCContainerDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxObjCContainerKind.cs b/sources/ClangSharp/Interop/CXIdxObjCContainerKind.cs index b54a381a..2b1845d6 100644 --- a/sources/ClangSharp/Interop/CXIdxObjCContainerKind.cs +++ b/sources/ClangSharp/Interop/CXIdxObjCContainerKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxObjCInterfaceDeclInfo.cs b/sources/ClangSharp/Interop/CXIdxObjCInterfaceDeclInfo.cs index a9684f3e..90040df7 100644 --- a/sources/ClangSharp/Interop/CXIdxObjCInterfaceDeclInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxObjCInterfaceDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxObjCPropertyDeclInfo.cs b/sources/ClangSharp/Interop/CXIdxObjCPropertyDeclInfo.cs index e0f1e9e9..b94bd3ee 100644 --- a/sources/ClangSharp/Interop/CXIdxObjCPropertyDeclInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxObjCPropertyDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxObjCProtocolRefInfo.cs b/sources/ClangSharp/Interop/CXIdxObjCProtocolRefInfo.cs index 652a37d0..1d4d369c 100644 --- a/sources/ClangSharp/Interop/CXIdxObjCProtocolRefInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxObjCProtocolRefInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXIdxObjCProtocolRefListInfo.cs b/sources/ClangSharp/Interop/CXIdxObjCProtocolRefListInfo.cs index 6de8436a..5bb1ecbc 100644 --- a/sources/ClangSharp/Interop/CXIdxObjCProtocolRefListInfo.cs +++ b/sources/ClangSharp/Interop/CXIdxObjCProtocolRefListInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXInclusionVisitor.cs b/sources/ClangSharp/Interop/CXInclusionVisitor.cs index be418696..a82da46b 100644 --- a/sources/ClangSharp/Interop/CXInclusionVisitor.cs +++ b/sources/ClangSharp/Interop/CXInclusionVisitor.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; @@ -8,5 +8,5 @@ namespace ClangSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void CXInclusionVisitor([NativeTypeName("CXFile")] void* included_file, [NativeTypeName("CXSourceLocation *")] CXSourceLocation* inclusion_stack, [NativeTypeName("unsigned int")] uint include_len, [NativeTypeName("CXClientData")] void* client_data); + public unsafe delegate void CXInclusionVisitor([NativeTypeName("CXFile")] void* included_file, CXSourceLocation* inclusion_stack, [NativeTypeName("unsigned int")] uint include_len, [NativeTypeName("CXClientData")] void* client_data); } diff --git a/sources/ClangSharp/Interop/CXIndexOptFlags.cs b/sources/ClangSharp/Interop/CXIndexOptFlags.cs index 1d2a7a7e..f0cbe6b0 100644 --- a/sources/ClangSharp/Interop/CXIndexOptFlags.cs +++ b/sources/ClangSharp/Interop/CXIndexOptFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXLanguageKind.cs b/sources/ClangSharp/Interop/CXLanguageKind.cs index 2ca53173..b7fa7444 100644 --- a/sources/ClangSharp/Interop/CXLanguageKind.cs +++ b/sources/ClangSharp/Interop/CXLanguageKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXLinkageKind.cs b/sources/ClangSharp/Interop/CXLinkageKind.cs index c6daf2c2..548e3815 100644 --- a/sources/ClangSharp/Interop/CXLinkageKind.cs +++ b/sources/ClangSharp/Interop/CXLinkageKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXLoadDiag_Error.cs b/sources/ClangSharp/Interop/CXLoadDiag_Error.cs index 76a181ad..108083d9 100644 --- a/sources/ClangSharp/Interop/CXLoadDiag_Error.cs +++ b/sources/ClangSharp/Interop/CXLoadDiag_Error.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXModuleMapDescriptorImpl.cs b/sources/ClangSharp/Interop/CXModuleMapDescriptorImpl.cs index 8a0c14de..f3d38d9b 100644 --- a/sources/ClangSharp/Interop/CXModuleMapDescriptorImpl.cs +++ b/sources/ClangSharp/Interop/CXModuleMapDescriptorImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXNameRefFlags.cs b/sources/ClangSharp/Interop/CXNameRefFlags.cs index cd3f8828..3fbe0ec7 100644 --- a/sources/ClangSharp/Interop/CXNameRefFlags.cs +++ b/sources/ClangSharp/Interop/CXNameRefFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXObjCDeclQualifierKind.cs b/sources/ClangSharp/Interop/CXObjCDeclQualifierKind.cs index f89f47e8..489ec04d 100644 --- a/sources/ClangSharp/Interop/CXObjCDeclQualifierKind.cs +++ b/sources/ClangSharp/Interop/CXObjCDeclQualifierKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXObjCPropertyAttrKind.cs b/sources/ClangSharp/Interop/CXObjCPropertyAttrKind.cs index 0ead6fad..fc5314e2 100644 --- a/sources/ClangSharp/Interop/CXObjCPropertyAttrKind.cs +++ b/sources/ClangSharp/Interop/CXObjCPropertyAttrKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXPlatformAvailability.cs b/sources/ClangSharp/Interop/CXPlatformAvailability.cs index 76c2a6b5..398fe182 100644 --- a/sources/ClangSharp/Interop/CXPlatformAvailability.cs +++ b/sources/ClangSharp/Interop/CXPlatformAvailability.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXPrintingPolicyProperty.cs b/sources/ClangSharp/Interop/CXPrintingPolicyProperty.cs index f0b55e4c..a9a3c8c0 100644 --- a/sources/ClangSharp/Interop/CXPrintingPolicyProperty.cs +++ b/sources/ClangSharp/Interop/CXPrintingPolicyProperty.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXRefQualifierKind.cs b/sources/ClangSharp/Interop/CXRefQualifierKind.cs index 8f69d6fa..5158abc7 100644 --- a/sources/ClangSharp/Interop/CXRefQualifierKind.cs +++ b/sources/ClangSharp/Interop/CXRefQualifierKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXReparse_Flags.cs b/sources/ClangSharp/Interop/CXReparse_Flags.cs index c31ceb32..ea791319 100644 --- a/sources/ClangSharp/Interop/CXReparse_Flags.cs +++ b/sources/ClangSharp/Interop/CXReparse_Flags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXResult.cs b/sources/ClangSharp/Interop/CXResult.cs index e9280364..4cef46f2 100644 --- a/sources/ClangSharp/Interop/CXResult.cs +++ b/sources/ClangSharp/Interop/CXResult.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXSaveError.cs b/sources/ClangSharp/Interop/CXSaveError.cs index 672cbf87..19d5226f 100644 --- a/sources/ClangSharp/Interop/CXSaveError.cs +++ b/sources/ClangSharp/Interop/CXSaveError.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXSaveTranslationUnit_Flags.cs b/sources/ClangSharp/Interop/CXSaveTranslationUnit_Flags.cs index 80ed6d8c..a5bb7fce 100644 --- a/sources/ClangSharp/Interop/CXSaveTranslationUnit_Flags.cs +++ b/sources/ClangSharp/Interop/CXSaveTranslationUnit_Flags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXSourceLocation.cs b/sources/ClangSharp/Interop/CXSourceLocation.cs index b365bf4d..3b6220d5 100644 --- a/sources/ClangSharp/Interop/CXSourceLocation.cs +++ b/sources/ClangSharp/Interop/CXSourceLocation.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXSourceRange.cs b/sources/ClangSharp/Interop/CXSourceRange.cs index 9a83cebe..960056c0 100644 --- a/sources/ClangSharp/Interop/CXSourceRange.cs +++ b/sources/ClangSharp/Interop/CXSourceRange.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXSourceRangeList.cs b/sources/ClangSharp/Interop/CXSourceRangeList.cs index 80227936..b50298cc 100644 --- a/sources/ClangSharp/Interop/CXSourceRangeList.cs +++ b/sources/ClangSharp/Interop/CXSourceRangeList.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop @@ -10,7 +10,6 @@ public unsafe partial struct CXSourceRangeList [NativeTypeName("unsigned int")] public uint count; - [NativeTypeName("CXSourceRange *")] public CXSourceRange* ranges; } } diff --git a/sources/ClangSharp/Interop/CXString.cs b/sources/ClangSharp/Interop/CXString.cs index 7630a019..cd0842b9 100644 --- a/sources/ClangSharp/Interop/CXString.cs +++ b/sources/ClangSharp/Interop/CXString.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXStringSet.cs b/sources/ClangSharp/Interop/CXStringSet.cs index 70f32f0d..e5b5c27e 100644 --- a/sources/ClangSharp/Interop/CXStringSet.cs +++ b/sources/ClangSharp/Interop/CXStringSet.cs @@ -1,13 +1,12 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop { public unsafe partial struct CXStringSet { - [NativeTypeName("CXString *")] public CXString* Strings; [NativeTypeName("unsigned int")] diff --git a/sources/ClangSharp/Interop/CXSymbolRole.cs b/sources/ClangSharp/Interop/CXSymbolRole.cs index 1430c4a5..8064ca90 100644 --- a/sources/ClangSharp/Interop/CXSymbolRole.cs +++ b/sources/ClangSharp/Interop/CXSymbolRole.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTLSKind.cs b/sources/ClangSharp/Interop/CXTLSKind.cs index cf675b6e..8c89a59f 100644 --- a/sources/ClangSharp/Interop/CXTLSKind.cs +++ b/sources/ClangSharp/Interop/CXTLSKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTUResourceUsage.cs b/sources/ClangSharp/Interop/CXTUResourceUsage.cs index 864e2fd8..4c420609 100644 --- a/sources/ClangSharp/Interop/CXTUResourceUsage.cs +++ b/sources/ClangSharp/Interop/CXTUResourceUsage.cs @@ -1,19 +1,17 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop { public unsafe partial struct CXTUResourceUsage { - [NativeTypeName("void *")] public void* data; [NativeTypeName("unsigned int")] public uint numEntries; - [NativeTypeName("CXTUResourceUsageEntry *")] public CXTUResourceUsageEntry* entries; } } diff --git a/sources/ClangSharp/Interop/CXTUResourceUsageEntry.cs b/sources/ClangSharp/Interop/CXTUResourceUsageEntry.cs index d5504ad0..969ad27c 100644 --- a/sources/ClangSharp/Interop/CXTUResourceUsageEntry.cs +++ b/sources/ClangSharp/Interop/CXTUResourceUsageEntry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/ClangSharp/Interop/CXTUResourceUsageKind.cs b/sources/ClangSharp/Interop/CXTUResourceUsageKind.cs index 11547344..855dfc4a 100644 --- a/sources/ClangSharp/Interop/CXTUResourceUsageKind.cs +++ b/sources/ClangSharp/Interop/CXTUResourceUsageKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTargetInfoImpl.cs b/sources/ClangSharp/Interop/CXTargetInfoImpl.cs index b27382c6..d86786db 100644 --- a/sources/ClangSharp/Interop/CXTargetInfoImpl.cs +++ b/sources/ClangSharp/Interop/CXTargetInfoImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTemplateArgumentKind.cs b/sources/ClangSharp/Interop/CXTemplateArgumentKind.cs index e63454be..1e4b9f60 100644 --- a/sources/ClangSharp/Interop/CXTemplateArgumentKind.cs +++ b/sources/ClangSharp/Interop/CXTemplateArgumentKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXToken.cs b/sources/ClangSharp/Interop/CXToken.cs index 43aec65f..16af51ff 100644 --- a/sources/ClangSharp/Interop/CXToken.cs +++ b/sources/ClangSharp/Interop/CXToken.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop @@ -10,7 +10,6 @@ public unsafe partial struct CXToken [NativeTypeName("unsigned int [4]")] public fixed uint int_data[4]; - [NativeTypeName("void *")] public void* ptr_data; } } diff --git a/sources/ClangSharp/Interop/CXTokenKind.cs b/sources/ClangSharp/Interop/CXTokenKind.cs index 4940500e..3bd96d3b 100644 --- a/sources/ClangSharp/Interop/CXTokenKind.cs +++ b/sources/ClangSharp/Interop/CXTokenKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTranslationUnitImpl.cs b/sources/ClangSharp/Interop/CXTranslationUnitImpl.cs index f17286f8..4575e119 100644 --- a/sources/ClangSharp/Interop/CXTranslationUnitImpl.cs +++ b/sources/ClangSharp/Interop/CXTranslationUnitImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTranslationUnit_Flags.cs b/sources/ClangSharp/Interop/CXTranslationUnit_Flags.cs index 8e25416c..015eeb98 100644 --- a/sources/ClangSharp/Interop/CXTranslationUnit_Flags.cs +++ b/sources/ClangSharp/Interop/CXTranslationUnit_Flags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXType.cs b/sources/ClangSharp/Interop/CXType.cs index 7ffc98a2..674d004a 100644 --- a/sources/ClangSharp/Interop/CXType.cs +++ b/sources/ClangSharp/Interop/CXType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTypeKind.cs b/sources/ClangSharp/Interop/CXTypeKind.cs index 56d5307d..cdef0af6 100644 --- a/sources/ClangSharp/Interop/CXTypeKind.cs +++ b/sources/ClangSharp/Interop/CXTypeKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTypeLayoutError.cs b/sources/ClangSharp/Interop/CXTypeLayoutError.cs index 7fe8193f..e51d56bb 100644 --- a/sources/ClangSharp/Interop/CXTypeLayoutError.cs +++ b/sources/ClangSharp/Interop/CXTypeLayoutError.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXTypeNullabilityKind.cs b/sources/ClangSharp/Interop/CXTypeNullabilityKind.cs index fdfaf7da..4e9ac9ca 100644 --- a/sources/ClangSharp/Interop/CXTypeNullabilityKind.cs +++ b/sources/ClangSharp/Interop/CXTypeNullabilityKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop @@ -11,5 +11,6 @@ public enum CXTypeNullabilityKind CXTypeNullability_Nullable = 1, CXTypeNullability_Unspecified = 2, CXTypeNullability_Invalid = 3, + CXTypeNullability_NullableResult = 4, } } diff --git a/sources/ClangSharp/Interop/CXUnsavedFile.cs b/sources/ClangSharp/Interop/CXUnsavedFile.cs index 1b6d1562..a4822f74 100644 --- a/sources/ClangSharp/Interop/CXUnsavedFile.cs +++ b/sources/ClangSharp/Interop/CXUnsavedFile.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/ClangSharp/Interop/CXVersion.cs b/sources/ClangSharp/Interop/CXVersion.cs index c72697fb..039deff7 100644 --- a/sources/ClangSharp/Interop/CXVersion.cs +++ b/sources/ClangSharp/Interop/CXVersion.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXVirtualFileOverlayImpl.cs b/sources/ClangSharp/Interop/CXVirtualFileOverlayImpl.cs index 13012f34..84e681ac 100644 --- a/sources/ClangSharp/Interop/CXVirtualFileOverlayImpl.cs +++ b/sources/ClangSharp/Interop/CXVirtualFileOverlayImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXVisibilityKind.cs b/sources/ClangSharp/Interop/CXVisibilityKind.cs index d6774dc7..8c7b451f 100644 --- a/sources/ClangSharp/Interop/CXVisibilityKind.cs +++ b/sources/ClangSharp/Interop/CXVisibilityKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CXVisitorResult.cs b/sources/ClangSharp/Interop/CXVisitorResult.cs index a8fadd4b..409e635b 100644 --- a/sources/ClangSharp/Interop/CXVisitorResult.cs +++ b/sources/ClangSharp/Interop/CXVisitorResult.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CX_AttrKind.cs b/sources/ClangSharp/Interop/CX_AttrKind.cs index 03daf59f..cc4d4d44 100644 --- a/sources/ClangSharp/Interop/CX_AttrKind.cs +++ b/sources/ClangSharp/Interop/CX_AttrKind.cs @@ -16,6 +16,8 @@ public enum CX_AttrKind CX_AttrKind_OpenCLConstantAddressSpace, CX_AttrKind_OpenCLGenericAddressSpace, CX_AttrKind_OpenCLGlobalAddressSpace, + CX_AttrKind_OpenCLGlobalDeviceAddressSpace, + CX_AttrKind_OpenCLGlobalHostAddressSpace, CX_AttrKind_OpenCLLocalAddressSpace, CX_AttrKind_OpenCLPrivateAddressSpace, CX_AttrKind_Ptr32, @@ -24,10 +26,13 @@ public enum CX_AttrKind CX_AttrKind_TypeNonNull, CX_AttrKind_TypeNullUnspecified, CX_AttrKind_TypeNullable, + CX_AttrKind_TypeNullableResult, CX_AttrKind_UPtr, CX_AttrKind_FallThrough, - CX_AttrKind_NoMerge, + CX_AttrKind_Likely, CX_AttrKind_Suppress, + CX_AttrKind_Unlikely, + CX_AttrKind_NoMerge, CX_AttrKind_AArch64VectorPcs, CX_AttrKind_AcquireHandle, CX_AttrKind_AnyX86NoCfCheck, @@ -71,6 +76,7 @@ public enum CX_AttrKind CX_AttrKind_AcquiredAfter, CX_AttrKind_AcquiredBefore, CX_AttrKind_AlignMac68k, + CX_AttrKind_AlignNatural, CX_AttrKind_Aligned, CX_AttrKind_AllocAlign, CX_AttrKind_AllocSize, @@ -88,9 +94,11 @@ public enum CX_AttrKind CX_AttrKind_AssertExclusiveLock, CX_AttrKind_AssertSharedLock, CX_AttrKind_AssumeAligned, + CX_AttrKind_Assumption, CX_AttrKind_Availability, CX_AttrKind_BPFPreserveAccessIndex, CX_AttrKind_Blocks, + CX_AttrKind_Builtin, CX_AttrKind_C11NoReturn, CX_AttrKind_CFAuditedTransfer, CX_AttrKind_CFGuard, @@ -136,6 +144,8 @@ public enum CX_AttrKind CX_AttrKind_DisableTailCalls, CX_AttrKind_EmptyBases, CX_AttrKind_EnableIf, + CX_AttrKind_EnforceTCB, + CX_AttrKind_EnforceTCBLeaf, CX_AttrKind_EnumExtensibility, CX_AttrKind_ExcludeFromExplicitInstantiation, CX_AttrKind_ExclusiveTrylockFunction, @@ -148,6 +158,7 @@ public enum CX_AttrKind CX_AttrKind_GNUInline, CX_AttrKind_GuardedBy, CX_AttrKind_GuardedVar, + CX_AttrKind_HIPManaged, CX_AttrKind_Hot, CX_AttrKind_IBAction, CX_AttrKind_IBOutlet, @@ -156,6 +167,7 @@ public enum CX_AttrKind CX_AttrKind_InternalLinkage, CX_AttrKind_LTOVisibilityPublic, CX_AttrKind_LayoutVersion, + CX_AttrKind_Leaf, CX_AttrKind_LockReturned, CX_AttrKind_LocksExcluded, CX_AttrKind_MIGServerRoutine, @@ -175,6 +187,7 @@ public enum CX_AttrKind CX_AttrKind_MipsLongCall, CX_AttrKind_MipsShortCall, CX_AttrKind_NSConsumesSelf, + CX_AttrKind_NSErrorDomain, CX_AttrKind_NSReturnsAutoreleased, CX_AttrKind_NSReturnsNotRetained, CX_AttrKind_Naked, @@ -237,6 +250,7 @@ public enum CX_AttrKind CX_AttrKind_PragmaClangRelroSection, CX_AttrKind_PragmaClangRodataSection, CX_AttrKind_PragmaClangTextSection, + CX_AttrKind_PreferredName, CX_AttrKind_PtGuardedBy, CX_AttrKind_PtGuardedVar, CX_AttrKind_Pure, @@ -257,6 +271,16 @@ public enum CX_AttrKind CX_AttrKind_SetTypestate, CX_AttrKind_SharedTrylockFunction, CX_AttrKind_SpeculativeLoadHardening, + CX_AttrKind_StrictFP, + CX_AttrKind_SwiftAsync, + CX_AttrKind_SwiftAsyncName, + CX_AttrKind_SwiftAttr, + CX_AttrKind_SwiftBridge, + CX_AttrKind_SwiftBridgedTypedef, + CX_AttrKind_SwiftError, + CX_AttrKind_SwiftName, + CX_AttrKind_SwiftNewType, + CX_AttrKind_SwiftPrivate, CX_AttrKind_TLSModel, CX_AttrKind_Target, CX_AttrKind_TestTypestate, @@ -288,6 +312,7 @@ public enum CX_AttrKind CX_AttrKind_AbiTag, CX_AttrKind_Alias, CX_AttrKind_AlignValue, + CX_AttrKind_CalledOnce, CX_AttrKind_IFunc, CX_AttrKind_InitSeg, CX_AttrKind_LoaderUninitialized, @@ -304,19 +329,23 @@ public enum CX_AttrKind CX_AttrKind_ObjCDirect, CX_AttrKind_ObjCDirectMembers, CX_AttrKind_ObjCNonLazyClass, + CX_AttrKind_ObjCNonRuntimeProtocol, CX_AttrKind_ObjCRuntimeName, CX_AttrKind_ObjCRuntimeVisible, CX_AttrKind_OpenCLAccess, CX_AttrKind_Overloadable, CX_AttrKind_RenderScriptKernel, + CX_AttrKind_SwiftObjCMembers, CX_AttrKind_Thread, CX_AttrKind_FirstAttr = CX_AttrKind_AddressSpace, CX_AttrKind_LastAttr = CX_AttrKind_Thread, CX_AttrKind_FirstTypeAttr = CX_AttrKind_AddressSpace, CX_AttrKind_LastTypeAttr = CX_AttrKind_UPtr, CX_AttrKind_FirstStmtAttr = CX_AttrKind_FallThrough, - CX_AttrKind_LastStmtAttr = CX_AttrKind_Suppress, - CX_AttrKind_FirstInheritableAttr = CX_AttrKind_AArch64VectorPcs, + CX_AttrKind_LastStmtAttr = CX_AttrKind_Unlikely, + CX_AttrKind_FirstDeclOrStmtAttr = CX_AttrKind_NoMerge, + CX_AttrKind_LastDeclOrStmtAttr = CX_AttrKind_NoMerge, + CX_AttrKind_FirstInheritableAttr = CX_AttrKind_NoMerge, CX_AttrKind_LastInheritableAttr = CX_AttrKind_XRayLogArgs, CX_AttrKind_FirstDeclOrTypeAttr = CX_AttrKind_AArch64VectorPcs, CX_AttrKind_LastDeclOrTypeAttr = CX_AttrKind_VectorCall, diff --git a/sources/ClangSharp/Interop/CX_CXXAccessSpecifier.cs b/sources/ClangSharp/Interop/CX_CXXAccessSpecifier.cs index a2d0966d..06a77918 100644 --- a/sources/ClangSharp/Interop/CX_CXXAccessSpecifier.cs +++ b/sources/ClangSharp/Interop/CX_CXXAccessSpecifier.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/CX_CastKind.cs b/sources/ClangSharp/Interop/CX_CastKind.cs index 8ed3ab2a..2f472c9f 100644 --- a/sources/ClangSharp/Interop/CX_CastKind.cs +++ b/sources/ClangSharp/Interop/CX_CastKind.cs @@ -35,6 +35,8 @@ public enum CX_CastKind CX_CK_IntegralCast, CX_CK_IntegralToBoolean, CX_CK_IntegralToFloating, + CX_CK_FloatingToFixedPoint, + CX_CK_FixedPointToFloating, CX_CK_FixedPointCast, CX_CK_FixedPointToIntegral, CX_CK_IntegralToFixedPoint, diff --git a/sources/ClangSharp/Interop/CX_DeclKind.cs b/sources/ClangSharp/Interop/CX_DeclKind.cs index d4e01e03..b587e218 100644 --- a/sources/ClangSharp/Interop/CX_DeclKind.cs +++ b/sources/ClangSharp/Interop/CX_DeclKind.cs @@ -110,6 +110,7 @@ public enum CX_DeclKind CX_DeclKind_MSGuid, CX_DeclKind_OMPDeclareMapper, CX_DeclKind_OMPDeclareReduction, + CX_DeclKind_TemplateParamObject, CX_DeclKind_UnresolvedUsingValue, CX_DeclKind_FirstValue = CX_DeclKind_Binding, CX_DeclKind_LastValue = CX_DeclKind_UnresolvedUsingValue, diff --git a/sources/ClangSharp/Interop/CX_ExprDependence.cs b/sources/ClangSharp/Interop/CX_ExprDependence.cs index e6659fae..57425831 100644 --- a/sources/ClangSharp/Interop/CX_ExprDependence.cs +++ b/sources/ClangSharp/Interop/CX_ExprDependence.cs @@ -20,5 +20,6 @@ public enum CX_ExprDependence CX_ED_TypeInstantiation = CX_ED_Type | CX_ED_Instantiation, CX_ED_ValueInstantiation = CX_ED_Value | CX_ED_Instantiation, CX_ED_TypeValueInstantiation = CX_ED_Type | CX_ED_Value | CX_ED_Instantiation, + CX_ED_ErrorDependent = CX_ED_Error | CX_ED_ValueInstantiation, } } diff --git a/sources/ClangSharp/Interop/CX_StorageClass.cs b/sources/ClangSharp/Interop/CX_StorageClass.cs index 3e60c0ac..81d89abe 100644 --- a/sources/ClangSharp/Interop/CX_StorageClass.cs +++ b/sources/ClangSharp/Interop/CX_StorageClass.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp/Interop/IndexerCallbacks.cs b/sources/ClangSharp/Interop/IndexerCallbacks.cs index 7df91b1c..82cc09b1 100644 --- a/sources/ClangSharp/Interop/IndexerCallbacks.cs +++ b/sources/ClangSharp/Interop/IndexerCallbacks.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/ClangSharp/Interop/clang.cs b/sources/ClangSharp/Interop/clang.cs index 4641287c..642db0cc 100644 --- a/sources/ClangSharp/Interop/clang.cs +++ b/sources/ClangSharp/Interop/clang.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -31,7 +31,7 @@ public static unsafe partial class clang public static extern CXErrorCode VirtualFileOverlay_writeToBuffer([NativeTypeName("CXVirtualFileOverlay")] CXVirtualFileOverlayImpl* param0, [NativeTypeName("unsigned int")] uint options, [NativeTypeName("char **")] sbyte** out_buffer_ptr, [NativeTypeName("unsigned int *")] uint* out_buffer_size); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_free", ExactSpelling = true)] - public static extern void free([NativeTypeName("void *")] void* buffer); + public static extern void free(void* buffer); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_VirtualFileOverlay_dispose", ExactSpelling = true)] public static extern void VirtualFileOverlay_dispose([NativeTypeName("CXVirtualFileOverlay")] CXVirtualFileOverlayImpl* param0); @@ -57,7 +57,7 @@ public static unsafe partial class clang [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CompilationDatabase_fromDirectory", ExactSpelling = true)] [return: NativeTypeName("CXCompilationDatabase")] - public static extern void* CompilationDatabase_fromDirectory([NativeTypeName("const char *")] sbyte* BuildDir, [NativeTypeName("CXCompilationDatabase_Error *")] CXCompilationDatabase_Error* ErrorCode); + public static extern void* CompilationDatabase_fromDirectory([NativeTypeName("const char *")] sbyte* BuildDir, CXCompilationDatabase_Error* ErrorCode); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CompilationDatabase_dispose", ExactSpelling = true)] public static extern void CompilationDatabase_dispose([NativeTypeName("CXCompilationDatabase")] void* param0); @@ -112,7 +112,7 @@ public static unsafe partial class clang public static extern void disposeString(CXString @string); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_disposeStringSet", ExactSpelling = true)] - public static extern void disposeStringSet([NativeTypeName("CXStringSet *")] CXStringSet* set); + public static extern void disposeStringSet(CXStringSet* set); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getParsedComment", ExactSpelling = true)] public static extern CXComment Cursor_getParsedComment(CXCursor C); @@ -263,7 +263,7 @@ public static unsafe partial class clang public static extern long getFileTime([NativeTypeName("CXFile")] void* SFile); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getFileUniqueID", ExactSpelling = true)] - public static extern int getFileUniqueID([NativeTypeName("CXFile")] void* file, [NativeTypeName("CXFileUniqueID *")] CXFileUniqueID* outID); + public static extern int getFileUniqueID([NativeTypeName("CXFile")] void* file, CXFileUniqueID* outID); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_isFileMultipleIncludeGuarded", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] @@ -319,7 +319,7 @@ public static unsafe partial class clang public static extern void getExpansionLocation(CXSourceLocation location, [NativeTypeName("CXFile *")] void** file, [NativeTypeName("unsigned int *")] uint* line, [NativeTypeName("unsigned int *")] uint* column, [NativeTypeName("unsigned int *")] uint* offset); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getPresumedLocation", ExactSpelling = true)] - public static extern void getPresumedLocation(CXSourceLocation location, [NativeTypeName("CXString *")] CXString* filename, [NativeTypeName("unsigned int *")] uint* line, [NativeTypeName("unsigned int *")] uint* column); + public static extern void getPresumedLocation(CXSourceLocation location, CXString* filename, [NativeTypeName("unsigned int *")] uint* line, [NativeTypeName("unsigned int *")] uint* column); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getInstantiationLocation", ExactSpelling = true)] public static extern void getInstantiationLocation(CXSourceLocation location, [NativeTypeName("CXFile *")] void** file, [NativeTypeName("unsigned int *")] uint* line, [NativeTypeName("unsigned int *")] uint* column, [NativeTypeName("unsigned int *")] uint* offset); @@ -337,15 +337,13 @@ public static unsafe partial class clang public static extern CXSourceLocation getRangeEnd(CXSourceRange range); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getSkippedRanges", ExactSpelling = true)] - [return: NativeTypeName("CXSourceRangeList *")] public static extern CXSourceRangeList* getSkippedRanges([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* tu, [NativeTypeName("CXFile")] void* file); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getAllSkippedRanges", ExactSpelling = true)] - [return: NativeTypeName("CXSourceRangeList *")] public static extern CXSourceRangeList* getAllSkippedRanges([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* tu); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_disposeSourceRangeList", ExactSpelling = true)] - public static extern void disposeSourceRangeList([NativeTypeName("CXSourceRangeList *")] CXSourceRangeList* ranges); + public static extern void disposeSourceRangeList(CXSourceRangeList* ranges); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getNumDiagnosticsInSet", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] @@ -357,7 +355,7 @@ public static unsafe partial class clang [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_loadDiagnostics", ExactSpelling = true)] [return: NativeTypeName("CXDiagnosticSet")] - public static extern void* loadDiagnostics([NativeTypeName("const char *")] sbyte* file, [NativeTypeName("enum CXLoadDiag_Error *")] CXLoadDiag_Error* error, [NativeTypeName("CXString *")] CXString* errorString); + public static extern void* loadDiagnostics([NativeTypeName("const char *")] sbyte* file, [NativeTypeName("enum CXLoadDiag_Error *")] CXLoadDiag_Error* error, CXString* errorString); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_disposeDiagnosticSet", ExactSpelling = true)] public static extern void disposeDiagnosticSet([NativeTypeName("CXDiagnosticSet")] void* Diags); @@ -399,7 +397,7 @@ public static unsafe partial class clang public static extern CXString getDiagnosticSpelling([NativeTypeName("CXDiagnostic")] void* param0); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getDiagnosticOption", ExactSpelling = true)] - public static extern CXString getDiagnosticOption([NativeTypeName("CXDiagnostic")] void* Diag, [NativeTypeName("CXString *")] CXString* Disable); + public static extern CXString getDiagnosticOption([NativeTypeName("CXDiagnostic")] void* Diag, CXString* Disable); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getDiagnosticCategory", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] @@ -423,7 +421,7 @@ public static unsafe partial class clang public static extern uint getDiagnosticNumFixIts([NativeTypeName("CXDiagnostic")] void* Diagnostic); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getDiagnosticFixIt", ExactSpelling = true)] - public static extern CXString getDiagnosticFixIt([NativeTypeName("CXDiagnostic")] void* Diagnostic, [NativeTypeName("unsigned int")] uint FixIt, [NativeTypeName("CXSourceRange *")] CXSourceRange* ReplacementRange); + public static extern CXString getDiagnosticFixIt([NativeTypeName("CXDiagnostic")] void* Diagnostic, [NativeTypeName("unsigned int")] uint FixIt, CXSourceRange* ReplacementRange); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getTranslationUnitSpelling", ExactSpelling = true)] public static extern CXString getTranslationUnitSpelling([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* CTUnit); @@ -578,10 +576,19 @@ public static unsafe partial class clang public static extern CXAvailabilityKind getCursorAvailability(CXCursor cursor); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCursorPlatformAvailability", ExactSpelling = true)] - public static extern int getCursorPlatformAvailability(CXCursor cursor, [NativeTypeName("int *")] int* always_deprecated, [NativeTypeName("CXString *")] CXString* deprecated_message, [NativeTypeName("int *")] int* always_unavailable, [NativeTypeName("CXString *")] CXString* unavailable_message, [NativeTypeName("CXPlatformAvailability *")] CXPlatformAvailability* availability, int availability_size); + public static extern int getCursorPlatformAvailability(CXCursor cursor, int* always_deprecated, CXString* deprecated_message, int* always_unavailable, CXString* unavailable_message, CXPlatformAvailability* availability, int availability_size); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_disposeCXPlatformAvailability", ExactSpelling = true)] - public static extern void disposeCXPlatformAvailability([NativeTypeName("CXPlatformAvailability *")] CXPlatformAvailability* availability); + public static extern void disposeCXPlatformAvailability(CXPlatformAvailability* availability); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getVarDeclInitializer", ExactSpelling = true)] + public static extern CXCursor Cursor_getVarDeclInitializer(CXCursor cursor); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_hasVarDeclGlobalStorage", ExactSpelling = true)] + public static extern int Cursor_hasVarDeclGlobalStorage(CXCursor cursor); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_hasVarDeclExternalStorage", ExactSpelling = true)] + public static extern int Cursor_hasVarDeclExternalStorage(CXCursor cursor); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCursorLanguage", ExactSpelling = true)] [return: NativeTypeName("enum CXLanguageKind")] @@ -617,10 +624,10 @@ public static unsafe partial class clang public static extern CXCursor getCursorLexicalParent(CXCursor cursor); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getOverriddenCursors", ExactSpelling = true)] - public static extern void getOverriddenCursors(CXCursor cursor, [NativeTypeName("CXCursor **")] CXCursor** overridden, [NativeTypeName("unsigned int *")] uint* num_overridden); + public static extern void getOverriddenCursors(CXCursor cursor, CXCursor** overridden, [NativeTypeName("unsigned int *")] uint* num_overridden); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_disposeOverriddenCursors", ExactSpelling = true)] - public static extern void disposeOverriddenCursors([NativeTypeName("CXCursor *")] CXCursor* overridden); + public static extern void disposeOverriddenCursors(CXCursor* overridden); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getIncludedFile", ExactSpelling = true)] [return: NativeTypeName("CXFile")] @@ -977,7 +984,7 @@ public static unsafe partial class clang [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_isExternalSymbol", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] - public static extern uint Cursor_isExternalSymbol(CXCursor C, [NativeTypeName("CXString *")] CXString* language, [NativeTypeName("CXString *")] CXString* definedIn, [NativeTypeName("unsigned int *")] uint* isGenerated); + public static extern uint Cursor_isExternalSymbol(CXCursor C, CXString* language, CXString* definedIn, [NativeTypeName("unsigned int *")] uint* isGenerated); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getCommentRange", ExactSpelling = true)] public static extern CXSourceRange Cursor_getCommentRange(CXCursor C); @@ -992,11 +999,9 @@ public static unsafe partial class clang public static extern CXString Cursor_getMangling(CXCursor param0); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getCXXManglings", ExactSpelling = true)] - [return: NativeTypeName("CXStringSet *")] public static extern CXStringSet* Cursor_getCXXManglings(CXCursor param0); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getObjCManglings", ExactSpelling = true)] - [return: NativeTypeName("CXStringSet *")] public static extern CXStringSet* Cursor_getObjCManglings(CXCursor param0); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getModule", ExactSpelling = true)] @@ -1091,7 +1096,6 @@ public static unsafe partial class clang public static extern CXSourceRange getCursorReferenceNameRange(CXCursor C, [NativeTypeName("unsigned int")] uint NameFlags, [NativeTypeName("unsigned int")] uint PieceIndex); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getToken", ExactSpelling = true)] - [return: NativeTypeName("CXToken *")] public static extern CXToken* getToken([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU, CXSourceLocation Location); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getTokenKind", ExactSpelling = true)] @@ -1107,13 +1111,13 @@ public static unsafe partial class clang public static extern CXSourceRange getTokenExtent([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* param0, CXToken param1); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_tokenize", ExactSpelling = true)] - public static extern void tokenize([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU, CXSourceRange Range, [NativeTypeName("CXToken **")] CXToken** Tokens, [NativeTypeName("unsigned int *")] uint* NumTokens); + public static extern void tokenize([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU, CXSourceRange Range, CXToken** Tokens, [NativeTypeName("unsigned int *")] uint* NumTokens); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_annotateTokens", ExactSpelling = true)] - public static extern void annotateTokens([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU, [NativeTypeName("CXToken *")] CXToken* Tokens, [NativeTypeName("unsigned int")] uint NumTokens, [NativeTypeName("CXCursor *")] CXCursor* Cursors); + public static extern void annotateTokens([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU, CXToken* Tokens, [NativeTypeName("unsigned int")] uint NumTokens, CXCursor* Cursors); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_disposeTokens", ExactSpelling = true)] - public static extern void disposeTokens([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU, [NativeTypeName("CXToken *")] CXToken* Tokens, [NativeTypeName("unsigned int")] uint NumTokens); + public static extern void disposeTokens([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU, CXToken* Tokens, [NativeTypeName("unsigned int")] uint NumTokens); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCursorKindSpelling", ExactSpelling = true)] public static extern CXString getCursorKindSpelling([NativeTypeName("enum CXCursorKind")] CXCursorKind Kind); @@ -1125,7 +1129,7 @@ public static unsafe partial class clang public static extern void enableStackTraces(); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_executeOnThread", ExactSpelling = true)] - public static extern void executeOnThread([NativeTypeName("void (*)(void *)")] IntPtr fn, [NativeTypeName("void *")] void* user_data, [NativeTypeName("unsigned int")] uint stack_size); + public static extern void executeOnThread([NativeTypeName("void (*)(void *)")] IntPtr fn, void* user_data, [NativeTypeName("unsigned int")] uint stack_size); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCompletionChunkKind", ExactSpelling = true)] [return: NativeTypeName("enum CXCompletionChunkKind")] @@ -1169,46 +1173,45 @@ public static unsafe partial class clang [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCompletionNumFixIts", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] - public static extern uint getCompletionNumFixIts([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* results, [NativeTypeName("unsigned int")] uint completion_index); + public static extern uint getCompletionNumFixIts(CXCodeCompleteResults* results, [NativeTypeName("unsigned int")] uint completion_index); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCompletionFixIt", ExactSpelling = true)] - public static extern CXString getCompletionFixIt([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* results, [NativeTypeName("unsigned int")] uint completion_index, [NativeTypeName("unsigned int")] uint fixit_index, [NativeTypeName("CXSourceRange *")] CXSourceRange* replacement_range); + public static extern CXString getCompletionFixIt(CXCodeCompleteResults* results, [NativeTypeName("unsigned int")] uint completion_index, [NativeTypeName("unsigned int")] uint fixit_index, CXSourceRange* replacement_range); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_defaultCodeCompleteOptions", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint defaultCodeCompleteOptions(); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_codeCompleteAt", ExactSpelling = true)] - [return: NativeTypeName("CXCodeCompleteResults *")] public static extern CXCodeCompleteResults* codeCompleteAt([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU, [NativeTypeName("const char *")] sbyte* complete_filename, [NativeTypeName("unsigned int")] uint complete_line, [NativeTypeName("unsigned int")] uint complete_column, [NativeTypeName("struct CXUnsavedFile *")] CXUnsavedFile* unsaved_files, [NativeTypeName("unsigned int")] uint num_unsaved_files, [NativeTypeName("unsigned int")] uint options); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_sortCodeCompletionResults", ExactSpelling = true)] - public static extern void sortCodeCompletionResults([NativeTypeName("CXCompletionResult *")] CXCompletionResult* Results, [NativeTypeName("unsigned int")] uint NumResults); + public static extern void sortCodeCompletionResults(CXCompletionResult* Results, [NativeTypeName("unsigned int")] uint NumResults); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_disposeCodeCompleteResults", ExactSpelling = true)] - public static extern void disposeCodeCompleteResults([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* Results); + public static extern void disposeCodeCompleteResults(CXCodeCompleteResults* Results); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_codeCompleteGetNumDiagnostics", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] - public static extern uint codeCompleteGetNumDiagnostics([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* Results); + public static extern uint codeCompleteGetNumDiagnostics(CXCodeCompleteResults* Results); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_codeCompleteGetDiagnostic", ExactSpelling = true)] [return: NativeTypeName("CXDiagnostic")] - public static extern void* codeCompleteGetDiagnostic([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* Results, [NativeTypeName("unsigned int")] uint Index); + public static extern void* codeCompleteGetDiagnostic(CXCodeCompleteResults* Results, [NativeTypeName("unsigned int")] uint Index); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_codeCompleteGetContexts", ExactSpelling = true)] [return: NativeTypeName("unsigned long long")] - public static extern ulong codeCompleteGetContexts([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* Results); + public static extern ulong codeCompleteGetContexts(CXCodeCompleteResults* Results); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_codeCompleteGetContainerKind", ExactSpelling = true)] [return: NativeTypeName("enum CXCursorKind")] - public static extern CXCursorKind codeCompleteGetContainerKind([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* Results, [NativeTypeName("unsigned int *")] uint* IsIncomplete); + public static extern CXCursorKind codeCompleteGetContainerKind(CXCodeCompleteResults* Results, [NativeTypeName("unsigned int *")] uint* IsIncomplete); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_codeCompleteGetContainerUSR", ExactSpelling = true)] - public static extern CXString codeCompleteGetContainerUSR([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* Results); + public static extern CXString codeCompleteGetContainerUSR(CXCodeCompleteResults* Results); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_codeCompleteGetObjCSelector", ExactSpelling = true)] - public static extern CXString codeCompleteGetObjCSelector([NativeTypeName("CXCodeCompleteResults *")] CXCodeCompleteResults* Results); + public static extern CXString codeCompleteGetObjCSelector(CXCodeCompleteResults* Results); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getClangVersion", ExactSpelling = true)] public static extern CXString getClangVersion(); @@ -1264,7 +1267,7 @@ public static unsafe partial class clang public static extern uint remap_getNumFiles([NativeTypeName("CXRemapping")] void* param0); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_remap_getFilenames", ExactSpelling = true)] - public static extern void remap_getFilenames([NativeTypeName("CXRemapping")] void* param0, [NativeTypeName("unsigned int")] uint index, [NativeTypeName("CXString *")] CXString* original, [NativeTypeName("CXString *")] CXString* transformed); + public static extern void remap_getFilenames([NativeTypeName("CXRemapping")] void* param0, [NativeTypeName("unsigned int")] uint index, CXString* original, CXString* transformed); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_remap_dispose", ExactSpelling = true)] public static extern void remap_dispose([NativeTypeName("CXRemapping")] void* param0); @@ -1328,13 +1331,13 @@ public static unsafe partial class clang public static extern void IndexAction_dispose([NativeTypeName("CXIndexAction")] void* param0); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_indexSourceFile", ExactSpelling = true)] - public static extern int indexSourceFile([NativeTypeName("CXIndexAction")] void* param0, [NativeTypeName("CXClientData")] void* client_data, [NativeTypeName("IndexerCallbacks *")] IndexerCallbacks* index_callbacks, [NativeTypeName("unsigned int")] uint index_callbacks_size, [NativeTypeName("unsigned int")] uint index_options, [NativeTypeName("const char *")] sbyte* source_filename, [NativeTypeName("const char *const *")] sbyte** command_line_args, int num_command_line_args, [NativeTypeName("struct CXUnsavedFile *")] CXUnsavedFile* unsaved_files, [NativeTypeName("unsigned int")] uint num_unsaved_files, [NativeTypeName("CXTranslationUnit *")] CXTranslationUnitImpl** out_TU, [NativeTypeName("unsigned int")] uint TU_options); + public static extern int indexSourceFile([NativeTypeName("CXIndexAction")] void* param0, [NativeTypeName("CXClientData")] void* client_data, IndexerCallbacks* index_callbacks, [NativeTypeName("unsigned int")] uint index_callbacks_size, [NativeTypeName("unsigned int")] uint index_options, [NativeTypeName("const char *")] sbyte* source_filename, [NativeTypeName("const char *const *")] sbyte** command_line_args, int num_command_line_args, [NativeTypeName("struct CXUnsavedFile *")] CXUnsavedFile* unsaved_files, [NativeTypeName("unsigned int")] uint num_unsaved_files, [NativeTypeName("CXTranslationUnit *")] CXTranslationUnitImpl** out_TU, [NativeTypeName("unsigned int")] uint TU_options); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_indexSourceFileFullArgv", ExactSpelling = true)] - public static extern int indexSourceFileFullArgv([NativeTypeName("CXIndexAction")] void* param0, [NativeTypeName("CXClientData")] void* client_data, [NativeTypeName("IndexerCallbacks *")] IndexerCallbacks* index_callbacks, [NativeTypeName("unsigned int")] uint index_callbacks_size, [NativeTypeName("unsigned int")] uint index_options, [NativeTypeName("const char *")] sbyte* source_filename, [NativeTypeName("const char *const *")] sbyte** command_line_args, int num_command_line_args, [NativeTypeName("struct CXUnsavedFile *")] CXUnsavedFile* unsaved_files, [NativeTypeName("unsigned int")] uint num_unsaved_files, [NativeTypeName("CXTranslationUnit *")] CXTranslationUnitImpl** out_TU, [NativeTypeName("unsigned int")] uint TU_options); + public static extern int indexSourceFileFullArgv([NativeTypeName("CXIndexAction")] void* param0, [NativeTypeName("CXClientData")] void* client_data, IndexerCallbacks* index_callbacks, [NativeTypeName("unsigned int")] uint index_callbacks_size, [NativeTypeName("unsigned int")] uint index_options, [NativeTypeName("const char *")] sbyte* source_filename, [NativeTypeName("const char *const *")] sbyte** command_line_args, int num_command_line_args, [NativeTypeName("struct CXUnsavedFile *")] CXUnsavedFile* unsaved_files, [NativeTypeName("unsigned int")] uint num_unsaved_files, [NativeTypeName("CXTranslationUnit *")] CXTranslationUnitImpl** out_TU, [NativeTypeName("unsigned int")] uint TU_options); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_indexTranslationUnit", ExactSpelling = true)] - public static extern int indexTranslationUnit([NativeTypeName("CXIndexAction")] void* param0, [NativeTypeName("CXClientData")] void* client_data, [NativeTypeName("IndexerCallbacks *")] IndexerCallbacks* index_callbacks, [NativeTypeName("unsigned int")] uint index_callbacks_size, [NativeTypeName("unsigned int")] uint index_options, [NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* param5); + public static extern int indexTranslationUnit([NativeTypeName("CXIndexAction")] void* param0, [NativeTypeName("CXClientData")] void* client_data, IndexerCallbacks* index_callbacks, [NativeTypeName("unsigned int")] uint index_callbacks_size, [NativeTypeName("unsigned int")] uint index_options, [NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* param5); [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_indexLoc_getFileLocation", ExactSpelling = true)] public static extern void indexLoc_getFileLocation(CXIdxLoc loc, [NativeTypeName("CXIdxClientFile *")] void** indexFile, [NativeTypeName("CXFile *")] void** file, [NativeTypeName("unsigned int *")] uint* line, [NativeTypeName("unsigned int *")] uint* column, [NativeTypeName("unsigned int *")] uint* offset); @@ -1349,13 +1352,35 @@ public static unsafe partial class clang [NativeTypeName("#define CINDEX_VERSION_MAJOR 0")] public const int CINDEX_VERSION_MAJOR = 0; - [NativeTypeName("#define CINDEX_VERSION_MINOR 60")] - public const int CINDEX_VERSION_MINOR = 60; + [NativeTypeName("#define CINDEX_VERSION_MINOR 61")] + public const int CINDEX_VERSION_MINOR = 61; [NativeTypeName("#define CINDEX_VERSION CINDEX_VERSION_ENCODE(CINDEX_VERSION_MAJOR, CINDEX_VERSION_MINOR)")] - public const int CINDEX_VERSION = (0 * 10000) + (60 * 1); + public const int CINDEX_VERSION = (((0) * 10000) + ((61) * 1)); [NativeTypeName("#define CINDEX_VERSION_STRING CINDEX_VERSION_STRINGIZE(CINDEX_VERSION_MAJOR, CINDEX_VERSION_MINOR)")] - public static ReadOnlySpan CINDEX_VERSION_STRING => new byte[] { 0x30, 0x2E, 0x36, 0x30, 0x00 }; + public static ReadOnlySpan CINDEX_VERSION_STRING => new byte[] { 0x30, 0x2E, 0x36, 0x31, 0x00 }; + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CXRewriter_create", ExactSpelling = true)] + [return: NativeTypeName("CXRewriter")] + public static extern void* CXRewriter_create([NativeTypeName("CXTranslationUnit")] CXTranslationUnitImpl* TU); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CXRewriter_insertTextBefore", ExactSpelling = true)] + public static extern void CXRewriter_insertTextBefore([NativeTypeName("CXRewriter")] void* Rew, CXSourceLocation Loc, [NativeTypeName("const char *")] sbyte* Insert); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CXRewriter_replaceText", ExactSpelling = true)] + public static extern void CXRewriter_replaceText([NativeTypeName("CXRewriter")] void* Rew, CXSourceRange ToBeReplaced, [NativeTypeName("const char *")] sbyte* Replacement); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CXRewriter_removeText", ExactSpelling = true)] + public static extern void CXRewriter_removeText([NativeTypeName("CXRewriter")] void* Rew, CXSourceRange ToBeRemoved); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CXRewriter_overwriteChangedFiles", ExactSpelling = true)] + public static extern int CXRewriter_overwriteChangedFiles([NativeTypeName("CXRewriter")] void* Rew); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CXRewriter_writeMainFileToStdOut", ExactSpelling = true)] + public static extern void CXRewriter_writeMainFileToStdOut([NativeTypeName("CXRewriter")] void* Rew); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_CXRewriter_dispose", ExactSpelling = true)] + public static extern void CXRewriter_dispose([NativeTypeName("CXRewriter")] void* Rew); } } diff --git a/sources/ClangSharp/Interop/clangsharp.cs b/sources/ClangSharp/Interop/clangsharp.cs index 826b8a59..a601596b 100644 --- a/sources/ClangSharp/Interop/clangsharp.cs +++ b/sources/ClangSharp/Interop/clangsharp.cs @@ -281,14 +281,6 @@ public static partial class clangsharp [return: NativeTypeName("unsigned int")] public static extern uint Cursor_getHasExplicitTemplateArgs(CXCursor C); - [DllImport("libClangSharp", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clangsharp_Cursor_getHasExternalStorage", ExactSpelling = true)] - [return: NativeTypeName("unsigned int")] - public static extern uint Cursor_getHasExternalStorage(CXCursor C); - - [DllImport("libClangSharp", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clangsharp_Cursor_getHasGlobalStorage", ExactSpelling = true)] - [return: NativeTypeName("unsigned int")] - public static extern uint Cursor_getHasGlobalStorage(CXCursor C); - [DllImport("libClangSharp", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clangsharp_Cursor_getHasImplicitReturnZero", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint Cursor_getHasImplicitReturnZero(CXCursor C); diff --git a/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj b/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj index e49a1cd5..cba10d66 100644 --- a/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj +++ b/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj @@ -38,7 +38,7 @@ C:\Program Files\LLVM\include - /usr/lib/llvm-11/include + /usr/lib/llvm-12/include diff --git a/sources/ClangSharpPInvokeGenerator/CustomHelpBuilder.cs b/sources/ClangSharpPInvokeGenerator/CustomHelpBuilder.cs index c477f439..5e7187e4 100644 --- a/sources/ClangSharpPInvokeGenerator/CustomHelpBuilder.cs +++ b/sources/ClangSharpPInvokeGenerator/CustomHelpBuilder.cs @@ -3,183 +3,38 @@ // Portions of this code are ported from https://github.com/dotnet/command-line-api // The original source is Copyright © .NET Foundation and Contributor. All rigts reserved. Licensed under the MIT License (MIT). -using System; -using System.Collections.Generic; using System.CommandLine; using System.CommandLine.Help; using System.CommandLine.IO; -using System.Linq; namespace ClangSharp { internal sealed class CustomHelpBuilder : HelpBuilder { - public CustomHelpBuilder(IConsole console, int? columnGutter = null, int? indentationSize = null, int? maxWidth = null) - : base(console, columnGutter, indentationSize, maxWidth) + public CustomHelpBuilder(IConsole console, int maxWidth = int.MaxValue) + : base(console, maxWidth) { } - public void Write(IReadOnlyCollection<(string Name, string Description)> options) + public void Write(IOption option) { - if (options.Count == 0) - { - return; - } - - AppendHeading("Options:"); - Indent(); - - var table = CreateTable(options, (option) => new string[2] { - option.Name, - option.Description, - }); - - var columnWidths = ColumnWidths(table); - AppendTable(table, columnWidths); - - Outdent(); - AppendBlankLine(); + Write(string.Join(", ", option.Aliases)); + Write("\t"); + Write(option.Description); + WriteLine(); } - private void AppendBlankLine() => Console.Out.WriteLine(); - - private void AppendHeading(string heading) - { - if (heading is null) - { - throw new ArgumentNullException(nameof(heading)); - } - - AppendLine(heading); - } + public void Write(string value) => Console.Out.Write(value); - private void AppendLine(string text, int? offset = null) + public void Write(params HelpItem[] helpItems) { - if (string.IsNullOrEmpty(text)) - { - Console.Out.WriteLine(); - return; - } - - AppendPadding(offset); - Console.Out.WriteLine(text); + WriteLine("Options:"); + RenderAsColumns(helpItems); + WriteLine(); } - private void AppendPadding(int? offset = null) - { - var padding = GetPadding(offset ?? CurrentIndentation); - Console.Out.Write(padding); - } - - private void AppendRow(IEnumerable row, IReadOnlyList columnWidths) - { - var array = row.Select((string element, int index) => SplitText(element, columnWidths[index])).ToArray(); - var num = array.Max((IReadOnlyList lines) => lines.Count); - - for (var i = 0; i < num; i++) - { - var num2 = 0; - var num3 = 0; - - AppendPadding(CurrentIndentation); - - for (var j = 0; j < array.Length; j++) - { - var readOnlyList = array[j]; - - if (i < readOnlyList.Count) - { - var text = readOnlyList[i]; - - if (!string.IsNullOrEmpty(text)) - { - var num4 = num2 - num3; - AppendText(text, num4); - num3 += num4 + text.Length; - } - } - - num2 += columnWidths[j] + ColumnGutter; - } + public void WriteLine() => Console.Out.WriteLine(); - AppendBlankLine(); - } - } - - - private void AppendTable(IEnumerable> table, IReadOnlyList columnWidths) - { - foreach (var item in table) - { - AppendRow(item, columnWidths); - } - } - - private void AppendText(string text, int? offset = null) - { - AppendPadding(offset); - Console.Out.Write(text ?? ""); - } - - private IReadOnlyList ColumnWidths(IEnumerable> table) - { - if (!table.Any()) - { - return Array.Empty(); - } - - var count = table.First().Count; - var num = -1; - var array = new int[count]; - for (var j = 0; j < count; j++) - { - array[j] = num; - } - - var array2 = new int[count]; - int i; - for (i = 0; i < count; i++) - { - array2[i] = table.Max((IReadOnlyList row) => row[i].Length); - } - - var num2 = array2.Count((int width) => width > 0); - var num3 = GetAvailableWidth() - (ColumnGutter * (num2 - 1)); - if (num3 - num2 < 0 || num2 == 0) - { - return array2; - } - - var num4 = num2; - var num5 = 0; - var num6 = 5; - while (num4 > 0) - { - var num7 = (num3 - array.Where((int width) => width > 0).Sum()) / num4; - var flag = num4 == num5 || num6 <= 1; - for (var k = 0; k < count; k++) - { - if (array[k] == num) - { - var num8 = array2[k]; - if (flag) - { - num8 = Math.Min(num8, num7); - } - - if (num8 <= num7) - { - array[k] = num8; - } - } - } - - num5 = num4; - num4 = array.Count((int width) => width < 0); - num6--; - } - - return array; - } + public void WriteLine(string value) => Console.Out.WriteLine(value); } } diff --git a/sources/ClangSharpPInvokeGenerator/Program.cs b/sources/ClangSharpPInvokeGenerator/Program.cs index e38775e3..a4786bab 100644 --- a/sources/ClangSharpPInvokeGenerator/Program.cs +++ b/sources/ClangSharpPInvokeGenerator/Program.cs @@ -19,62 +19,62 @@ public class Program private static RootCommand s_rootCommand; private static Option s_configOption; - private static readonly (string Name, string Description)[] s_configOptions = new (string Name, string Description)[] + private static readonly HelpItem[] s_configOptions = new HelpItem[] { - ("?, h, help", "Show help and usage information for -c, --config"), + new HelpItem("?, h, help", "Show help and usage information for -c, --config"), - ("", ""), // Codegen Options + // Codegen Options - ("compatible-codegen", "Bindings should be generated with .NET Standard 2.0 compatibility. Setting this disables preview code generation."), - ("latest-codegen", "Bindings should be generated for the latest stable version of .NET/C#. This is currently .NET 5/C# 9."), - ("preview-codegen", "Bindings should be generated for the latest preview version of .NET/C#. This is currently .NET 6/C# 10."), + new HelpItem("compatible-codegen", "Bindings should be generated with .NET Standard 2.0 compatibility. Setting this disables preview code generation."), + new HelpItem("latest-codegen", "Bindings should be generated for the latest stable version of .NET/C#. This is currently .NET 5/C# 9."), + new HelpItem("preview-codegen", "Bindings should be generated for the latest preview version of .NET/C#. This is currently .NET 6/C# 10."), - ("", ""), // File Options + // File Options - ("single-file", "Bindings should be generated to a single output file. This is the default."), - ("multi-file", "Bindings should be generated so there is approximately one type per file."), + new HelpItem("single-file", "Bindings should be generated to a single output file. This is the default."), + new HelpItem("multi-file", "Bindings should be generated so there is approximately one type per file."), - ("", ""), // Type Options + // Type Options - ("unix-types", "Bindings should be generated assuming Unix defaults. This is the default on Unix platforms."), - ("windows-types", "Bindings should be generated assuming Windows defaults. This is the default on Windows platforms."), + new HelpItem("unix-types", "Bindings should be generated assuming Unix defaults. This is the default on Unix platforms."), + new HelpItem("windows-types", "Bindings should be generated assuming Windows defaults. This is the default on Windows platforms."), - ("", ""), // Exclusion Options + // Exclusion Options - ("exclude-anonymous-field-helpers", "The helper ref properties generated for fields in nested anonymous structs and unions should not be generated."), - ("exclude-com-proxies", "Types recognized as COM proxies should not have bindings generated. Thes are currently function declarations ending with _UserFree, _UserMarshal, _UserSize, _UserUnmarshal, _Proxy, or _Stub."), - ("exclude-default-remappings", "Default remappings for well known types should not be added. This currently includes intptr_t, ptrdiff_t, size_t, and uintptr_t"), - ("exclude-empty-records", "Bindings for records that contain no members should not be generated. These are commonly encountered for opaque handle like types such as HWND."), - ("exclude-enum-operators", "Bindings for operators over enum types should not be generated. These are largely unnecessary in C# as the operators are available by default."), - ("exclude-fnptr-codegen", "Generated bindings for latest or preview codegen should not use function pointers."), - ("exclude-funcs-with-body", "Bindings for functions with bodies should not be generated."), - ("preview-codegen-nint", "Generated bindings for latest or preview codegen should not use nint or nuint."), - ("exclude-using-statics-for-enums", "Enum usages should be fully qualified and should not include a corresponding 'using static EnumName;'"), + new HelpItem("exclude-anonymous-field-helpers", "The helper ref properties generated for fields in nested anonymous structs and unions should not be generated."), + new HelpItem("exclude-com-proxies", "Types recognized as COM proxies should not have bindings generated. Thes are currently function declarations ending with _UserFree, _UserMarshal, _UserSize, _UserUnmarshal, _Proxy, or _Stub."), + new HelpItem("exclude-default-remappings", "Default remappings for well known types should not be added. This currently includes intptr_t, ptrdiff_t, size_t, and uintptr_t"), + new HelpItem("exclude-empty-records", "Bindings for records that contain no members should not be generated. These are commonly encountered for opaque handle like types such as HWND."), + new HelpItem("exclude-enum-operators", "Bindings for operators over enum types should not be generated. These are largely unnecessary in C# as the operators are available by default."), + new HelpItem("exclude-fnptr-codegen", "Generated bindings for latest or preview codegen should not use function pointers."), + new HelpItem("exclude-funcs-with-body", "Bindings for functions with bodies should not be generated."), + new HelpItem("preview-codegen-nint", "Generated bindings for latest or preview codegen should not use nint or nuint."), + new HelpItem("exclude-using-statics-for-enums", "Enum usages should be fully qualified and should not include a corresponding 'using static EnumName;'"), - ("", ""), // VTBL Options + // VTBL Options - ("explicit-vtbls", "VTBLs should have an explicit type generated with named fields per entry."), - ("implicit-vtbls", "VTBLs should be implicit to reduce metadata bloat. This is the current default"), + new HelpItem("explicit-vtbls", "VTBLs should have an explicit type generated with named fields per entry."), + new HelpItem("implicit-vtbls", "VTBLs should be implicit to reduce metadata bloat. This is the current default"), - ("", ""), // Test Options + // Test Options - ("generate-tests-nunit", "Basic tests validating size, blittability, and associated metadata should be generated for NUnit."), - ("generate-tests-xunit", "Basic tests validating size, blittability, and associated metadata should be generated for XUnit."), + new HelpItem("generate-tests-nunit", "Basic tests validating size, blittability, and associated metadata should be generated for NUnit."), + new HelpItem("generate-tests-xunit", "Basic tests validating size, blittability, and associated metadata should be generated for XUnit."), - ("", ""), // Generation Options + // Generation Options - ("generate-aggressive-inlining", "[MethodImpl(MethodImplOptions.AggressiveInlining)] should be added to generated helper functions."), - ("generate-cpp-attributes", "[CppAttributeList(\"\")] should be generated to document the encountered C++ attributes."), - ("generate-macro-bindings", "Bindings for macro-definitions should be generated. This currently only works with value like macros and not function-like ones."), - ("generate-native-inheritance-attribute", "[NativeInheritance(\"\")] attribute should be generated to document the encountered C++ base type."), - ("generate-template-bindings", "Bindings for template-definitions should be generated. This is currently experimental."), - ("generate-vtbl-index-attribute", "[VtblIndex(#)] attribute should be generated to document the underlying VTBL index for a helper method."), + new HelpItem("generate-aggressive-inlining", "[MethodImpl(MethodImplOptions.AggressiveInlining)] should be added to generated helper functions."), + new HelpItem("generate-cpp-attributes", "[CppAttributeList(\"\")] should be generated to document the encountered C++ attributes."), + new HelpItem("generate-macro-bindings", "Bindings for macro-definitions should be generated. This currently only works with value like macros and not function-like ones."), + new HelpItem("generate-native-inheritance-attribute", "[NativeInheritance(\"\")] attribute should be generated to document the encountered C++ base type."), + new HelpItem("generate-template-bindings", "Bindings for template-definitions should be generated. This is currently experimental."), + new HelpItem("generate-vtbl-index-attribute", "[VtblIndex(#)] attribute should be generated to document the underlying VTBL index for a helper method."), - ("", ""), // Logging Options + // Logging Options - ("log-exclusions", "A list of excluded declaration types should be generated. This will also log if the exclusion was due to an exact or partial match."), - ("log-potential-typedef-remappings", "A list of potential typedef remappings should be generated. This can help identify missing remappings."), - ("log-visited-files", "A list of the visited files should be generated. This can help identify traversal issues."), + new HelpItem("log-exclusions", "A list of excluded declaration types should be generated. This will also log if the exclusion was due to an exact or partial match."), + new HelpItem("log-potential-typedef-remappings", "A list of potential typedef remappings should be generated. This can help identify missing remappings."), + new HelpItem("log-visited-files", "A list of the visited files should be generated. This can help identify traversal issues."), }; #pragma warning disable IDE1006 @@ -419,11 +419,9 @@ public static int Run(InvocationContext context) if (printConfigHelp) { var helpBuilder = new CustomHelpBuilder(context.Console); - helpBuilder.Write(s_configOption); - - context.Console.Out.WriteLine(); - context.Console.Out.WriteLine(); + helpBuilder.Write(s_configOption); + helpBuilder.WriteLine(); helpBuilder.Write(s_configOptions); return -1; @@ -607,15 +605,13 @@ private static void ParseKeyValuePairs(string[] keyValuePairs, List erro private static void AddAdditionalOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--additional", "-a" }, "An argument to pass to Clang when parsing the input files.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--additional", "-a" }, + description: "An argument to pass to Clang when parsing the input files.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } @@ -624,360 +620,312 @@ private static void AddConfigOption(RootCommand rootCommand) { if (s_configOption is null) { - s_configOption = new Option(new string[] { "--config", "-c" }, "A configuration option that controls how the bindings are generated. Specify 'help' to see the available options.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - s_configOption.Argument.SetDefaultValue(Array.Empty()); + s_configOption = new Option( + aliases: new string[] { "--config", "-c" }, + description: "A configuration option that controls how the bindings are generated. Specify 'help' to see the available options.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); } rootCommand.AddOption(s_configOption); } private static void AddDefineMacroOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--define-macro", "-D" }, "Define to (or 1 if omitted).") - { - Argument = new Argument("=") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--define-macro", "-D" }, + description: "Define to (or 1 if omitted).", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddExcludeOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--exclude", "-e" }, "A declaration name to exclude from binding generation.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--exclude", "-e" }, + description: "A declaration name to exclude from binding generation.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddFileOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--file", "-f" }, "A file to parse and generate bindings for.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--file", "-f" }, + description: "A file to parse and generate bindings for.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddFileDirectoryOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--file-directory", "-F" }, "The base path for files to parse.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue(string.Empty); + var option = new Option( + aliases: new string[] { "--file-directory", "-F" }, + description: "The base path for files to parse.", + argumentType: typeof(string), + getDefaultValue: () => string.Empty, + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddHeaderOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--headerFile", "-h" }, "A file which contains the header to prefix every generated file with.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue(string.Empty); + var option = new Option( + aliases: new string[] { "--headerFile", "-h" }, + description: "A file which contains the header to prefix every generated file with.", + argumentType: typeof(string), + getDefaultValue: () => string.Empty, + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddIncludeDirectoryOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--include-directory", "-I" }, "Add directory to include search path.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--include-directory", "-I" }, + description: "Add directory to include search path.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddLanguageOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--language", "-x" }, "Treat subsequent input files as having type .") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue("c++"); + var option = new Option( + aliases: new string[] { "--language", "-x" }, + description: "Treat subsequent input files as having type .", + argumentType: typeof(string), + getDefaultValue: () => "c++", + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddLibraryOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--libraryPath", "-l" }, "The string to use in the DllImport attribute used when generating bindings.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue(string.Empty); + var option = new Option( + aliases: new string[] { "--libraryPath", "-l" }, + description: "The string to use in the DllImport attribute used when generating bindings.", + argumentType: typeof(string), + getDefaultValue: () => string.Empty, + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddMethodClassNameOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--methodClassName", "-m" }, "The name of the static class that will contain the generated method bindings.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue("Methods"); + var option = new Option( + aliases: new string[] { "--methodClassName", "-m" }, + description: "The name of the static class that will contain the generated method bindings.", + argumentType: typeof(string), + getDefaultValue: () => "Methods", + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddNamespaceOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--namespace", "-n" }, "The namespace in which to place the generated bindings.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue(string.Empty); + var option = new Option( + aliases: new string[] { "--namespace", "-n" }, + description: "The namespace in which to place the generated bindings.", + argumentType: typeof(string), + getDefaultValue: () => string.Empty, + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddOutputOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--output", "-o" }, "The output location to write the generated bindings to.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue(string.Empty); + var option = new Option( + aliases: new string[] { "--output", "-o" }, + description: "The output location to write the generated bindings to.", + argumentType: typeof(string), + getDefaultValue: () => string.Empty, + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddPrefixStripOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--prefixStrip", "-p" }, "The prefix to strip from the generated method bindings.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue(string.Empty); + var option = new Option( + aliases: new string[] { "--prefixStrip", "-p" }, + description: "The prefix to strip from the generated method bindings.", + argumentType: typeof(string), + getDefaultValue: () => string.Empty, + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddRemapOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--remap", "-r" }, "A declaration name to be remapped to another name during binding generation.") - { - Argument = new Argument("=") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--remap", "-r" }, + description: "A declaration name to be remapped to another name during binding generation.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddStdOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--std", "-std" }, "Language standard to compile for.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue("c++17"); + var option = new Option( + aliases: new string[] { "--std", "-std" }, + description: "Language standard to compile for.", + argumentType: typeof(string), + getDefaultValue: () => "c++17", + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddTestOutputOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--test-output", "-to" }, "The output location to write the generated tests to.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.ExactlyOne, - } - }; - option.Argument.SetDefaultValue(string.Empty); + var option = new Option( + aliases: new string[] { "--test-output", "-to" }, + description: "The output location to write the generated tests to.", + argumentType: typeof(string), + getDefaultValue: () => string.Empty, + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } private static void AddTraverseOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--traverse", "-t" }, "A file name included either directly or indirectly by -f that should be traversed during binding generation.") - { - Argument = new Argument("") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--traverse", "-t" }, + description: "A file name included either directly or indirectly by -f that should be traversed during binding generation.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddWithAttributeOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--with-attribute", "-wa" }, "An attribute to be added to the given remapped declaration name during binding generation.") - { - Argument = new Argument("=") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--with-attribute", "-wa" }, + description: "An attribute to be added to the given remapped declaration name during binding generation.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddWithCallConvOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--with-callconv", "-wcc" }, "A calling convention to be used for the given declaration during binding generation.") - { - Argument = new Argument("=") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--with-callconv", "-wcc" }, + description: "A calling convention to be used for the given declaration during binding generation.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddWithLibraryPathOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--with-librarypath", "-wlb" }, "A library path to be used for the given declaration during binding generation.") - { - Argument = new Argument("=") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--with-librarypath", "-wlb" }, + description: "A library path to be used for the given declaration during binding generation.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddWithSetLastErrorOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--with-setlasterror", "-wsle" }, "Add the SetLastError=true modifier to a given DllImport or UnmanagedFunctionPointer.") - { - Argument = new Argument("=") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--with-setlasterror", "-wsle" }, + description: "Add the SetLastError=true modifier to a given DllImport or UnmanagedFunctionPointer.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddWithTypeOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--with-type", "-wt" }, "A type to be used for the given enum declaration during binding generation.") - { - Argument = new Argument("=") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--with-type", "-wt" }, + description: "A type to be used for the given enum declaration during binding generation.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddWithUsingOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--with-using", "-wu" }, "A using directive to be included for the given remapped declaration name during binding generation.") - { - Argument = new Argument("=") - { - ArgumentType = typeof(string), - Arity = ArgumentArity.OneOrMore, - } - }; - option.Argument.SetDefaultValue(Array.Empty()); + var option = new Option( + aliases: new string[] { "--with-using", "-wu" }, + description: "A using directive to be included for the given remapped declaration name during binding generation.", + argumentType: typeof(string), + getDefaultValue: Array.Empty, + arity: ArgumentArity.OneOrMore + ); rootCommand.AddOption(option); } private static void AddOutputModeOption(RootCommand rootCommand) { - var option = new Option(new string[] { "--output-mode", "-om" }, "The mode describing how the information collected from the headers are presented in the resultant bindings.") - { - Argument = new Argument("") - { - ArgumentType = typeof(PInvokeGeneratorOutputMode), - Arity = ArgumentArity.ExactlyOne - } - }; - option.Argument.SetDefaultValue(PInvokeGeneratorOutputMode.CSharp); + var option = new Option( + aliases: new string[] { "--output-mode", "-om" }, + description: "The mode describing how the information collected from the headers are presented in the resultant bindings.", + argumentType: typeof(PInvokeGeneratorOutputMode), + getDefaultValue: () => PInvokeGeneratorOutputMode.CSharp, + arity: ArgumentArity.ExactlyOne + ); rootCommand.AddOption(option); } diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt index da464f24..3116677b 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt @@ -1,4 +1,4 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang.rsp b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang.rsp index c21ecd2e..76e1e778 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang.rsp +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang.rsp @@ -18,6 +18,7 @@ clang-c/ExternC.h clang-c/FatalErrorHandler.h clang-c/Index.h clang-c/Platform.h +clang-c/Rewrite.h --headerFile ./Properties/GenerateClang-LICENSE.txt --methodClassName diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt index 39f48af5..1d0ec5b2 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt @@ -1,4 +1,4 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM.rsp b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM.rsp index 37e6db70..da2e4d0c 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM.rsp +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM.rsp @@ -23,11 +23,11 @@ llvm-c/ExternC.h llvm-c/Initialization.h llvm-c/IRReader.h llvm-c/Linker.h -llvm-c/LinkTimeOptimizer.h +llvm-c/LLJIT.h llvm-c/lto.h llvm-c/Object.h llvm-c/Orc.h -llvm-c/OrcBindings.h +llvm-c/OrcEE.h llvm-c/Remarks.h llvm-c/Support.h llvm-c/Target.h @@ -56,3 +56,10 @@ LLVM --remap __AnonymousEnum_Core_L445_C1=LLVMAttributeIndex __AnonymousEnum_DebugInfo_L131_C1=LLVMMetadataKind +--with-attribute +LLVMDIFlags=Flags +LLVMJITSymbolGenericFlags=Flags +LLVMOrcJITDylibLookupFlags=Flags +LLVMOrcSymbolLookupFlags=Flags +--with-type +LLVMJITSymbolGenericFlags=uint diff --git a/sources/libClangSharp/CIndexDiagnostic.cpp b/sources/libClangSharp/CIndexDiagnostic.cpp index 8d78cae4..6eda92af 100644 --- a/sources/libClangSharp/CIndexDiagnostic.cpp +++ b/sources/libClangSharp/CIndexDiagnostic.cpp @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "CIndexDiagnostic.h" diff --git a/sources/libClangSharp/CIndexDiagnostic.h b/sources/libClangSharp/CIndexDiagnostic.h index 14dd16cb..3c341031 100644 --- a/sources/libClangSharp/CIndexDiagnostic.h +++ b/sources/libClangSharp/CIndexDiagnostic.h @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CINDEXDIAGNOSTIC_H diff --git a/sources/libClangSharp/CXCursor.cpp b/sources/libClangSharp/CXCursor.cpp index e90fe3df..075a6aa0 100644 --- a/sources/libClangSharp/CXCursor.cpp +++ b/sources/libClangSharp/CXCursor.cpp @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "ClangSharp.h" diff --git a/sources/libClangSharp/CXCursor.h b/sources/libClangSharp/CXCursor.h index 39375b7e..9c177364 100644 --- a/sources/libClangSharp/CXCursor.h +++ b/sources/libClangSharp/CXCursor.h @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXCURSOR_H diff --git a/sources/libClangSharp/CXLoadedDiagnostic.cpp b/sources/libClangSharp/CXLoadedDiagnostic.cpp index bc1fe9ae..4438c3ed 100644 --- a/sources/libClangSharp/CXLoadedDiagnostic.cpp +++ b/sources/libClangSharp/CXLoadedDiagnostic.cpp @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "CXLoadedDiagnostic.h" diff --git a/sources/libClangSharp/CXLoadedDiagnostic.h b/sources/libClangSharp/CXLoadedDiagnostic.h index a7c9c09e..78e28b71 100644 --- a/sources/libClangSharp/CXLoadedDiagnostic.h +++ b/sources/libClangSharp/CXLoadedDiagnostic.h @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXLOADEDDIAGNOSTIC_H diff --git a/sources/libClangSharp/CXSourceLocation.cpp b/sources/libClangSharp/CXSourceLocation.cpp index 17471bce..24476ce3 100644 --- a/sources/libClangSharp/CXSourceLocation.cpp +++ b/sources/libClangSharp/CXSourceLocation.cpp @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "ClangSharp.h" diff --git a/sources/libClangSharp/CXSourceLocation.h b/sources/libClangSharp/CXSourceLocation.h index 7b5242e2..0702e532 100644 --- a/sources/libClangSharp/CXSourceLocation.h +++ b/sources/libClangSharp/CXSourceLocation.h @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXSOURCELOCATION_H diff --git a/sources/libClangSharp/CXString.cpp b/sources/libClangSharp/CXString.cpp index 4c96d0b5..ad99911a 100644 --- a/sources/libClangSharp/CXString.cpp +++ b/sources/libClangSharp/CXString.cpp @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "CXString.h" diff --git a/sources/libClangSharp/CXString.h b/sources/libClangSharp/CXString.h index f018696e..ee92fc87 100644 --- a/sources/libClangSharp/CXString.h +++ b/sources/libClangSharp/CXString.h @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXSTRING_H diff --git a/sources/libClangSharp/CXTranslationUnit.cpp b/sources/libClangSharp/CXTranslationUnit.cpp index 12ff66c3..8a56777a 100644 --- a/sources/libClangSharp/CXTranslationUnit.cpp +++ b/sources/libClangSharp/CXTranslationUnit.cpp @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "CXTranslationUnit.h" diff --git a/sources/libClangSharp/CXTranslationUnit.h b/sources/libClangSharp/CXTranslationUnit.h index 3ededd5f..bc1feeb3 100644 --- a/sources/libClangSharp/CXTranslationUnit.h +++ b/sources/libClangSharp/CXTranslationUnit.h @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXTRANSLATIONUNIT_H diff --git a/sources/libClangSharp/CXType.cpp b/sources/libClangSharp/CXType.cpp index 42c27c58..4f9bd78f 100644 --- a/sources/libClangSharp/CXType.cpp +++ b/sources/libClangSharp/CXType.cpp @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "ClangSharp.h" diff --git a/sources/libClangSharp/CXType.h b/sources/libClangSharp/CXType.h index cc212138..00122b2b 100644 --- a/sources/libClangSharp/CXType.h +++ b/sources/libClangSharp/CXType.h @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXTYPE_H diff --git a/sources/libClangSharp/ClangSharp.cpp b/sources/libClangSharp/ClangSharp.cpp index 0ffd435f..3a134e7f 100644 --- a/sources/libClangSharp/ClangSharp.cpp +++ b/sources/libClangSharp/ClangSharp.cpp @@ -101,7 +101,7 @@ CXCursor clangsharp_Cursor_getArgument(CXCursor C, unsigned i) { } if (const CXXUnresolvedConstructExpr* CXXUCE = dyn_cast(S)) { - if (i < CXXUCE->arg_size()) { + if (i < CXXUCE->getNumArgs()) { return MakeCXCursor(CXXUCE->getArg(i), getCursorDecl(C), getCursorTU(C)); } } @@ -1490,30 +1490,6 @@ unsigned clangsharp_Cursor_getHasExplicitTemplateArgs(CXCursor C) { return 0; } -unsigned clangsharp_Cursor_getHasExternalStorage(CXCursor C) { - if (isDeclOrTU(C.kind)) { - const Decl* D = getCursorDecl(C); - - if (const VarDecl* VD = dyn_cast(D)) { - return VD->hasExternalStorage(); - } - } - - return 0; -} - -unsigned clangsharp_Cursor_getHasGlobalStorage(CXCursor C) { - if (isDeclOrTU(C.kind)) { - const Decl* D = getCursorDecl(C); - - if (const VarDecl* VD = dyn_cast(D)) { - return VD->hasGlobalStorage(); - } - } - - return 0; -} - unsigned clangsharp_Cursor_getHasImplicitReturnZero(CXCursor C) { if (isDeclOrTU(C.kind)) { const Decl* D = getCursorDecl(C); @@ -3016,7 +2992,7 @@ int clangsharp_Cursor_getNumArguments(CXCursor C) { } if (const CXXUnresolvedConstructExpr* CXXUCE = dyn_cast(S)) { - return CXXUCE->arg_size(); + return CXXUCE->getNumArgs(); } if (const ExprWithCleanups* EWC = dyn_cast(S)) { diff --git a/sources/libClangSharp/ClangSharp.h b/sources/libClangSharp/ClangSharp.h index 6b280747..9a018a99 100644 --- a/sources/libClangSharp/ClangSharp.h +++ b/sources/libClangSharp/ClangSharp.h @@ -108,6 +108,7 @@ enum CX_ExprDependence { CX_ED_TypeInstantiation = clang::ExprDependenceScope::TypeInstantiation, CX_ED_ValueInstantiation = clang::ExprDependenceScope::ValueInstantiation, CX_ED_TypeValueInstantiation = clang::ExprDependenceScope::TypeValueInstantiation, + CX_ED_ErrorDependent = clang::ExprDependenceScope::ErrorDependent, }; enum CX_FloatingSemantics { @@ -387,10 +388,6 @@ CLANGSHARP_LINKAGE unsigned clangsharp_Cursor_getHasElseStorage(CXCursor C); CLANGSHARP_LINKAGE unsigned clangsharp_Cursor_getHasExplicitTemplateArgs(CXCursor C); -CLANGSHARP_LINKAGE unsigned clangsharp_Cursor_getHasExternalStorage(CXCursor C); - -CLANGSHARP_LINKAGE unsigned clangsharp_Cursor_getHasGlobalStorage(CXCursor C); - CLANGSHARP_LINKAGE unsigned clangsharp_Cursor_getHasImplicitReturnZero(CXCursor C); CLANGSHARP_LINKAGE unsigned clangsharp_Cursor_getHasInheritedDefaultArg(CXCursor C); diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCodeCompleteResultsTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCodeCompleteResultsTests.cs index 0cdf557b..f3e0f413 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCodeCompleteResultsTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCodeCompleteResultsTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXCodeCompleteResultsTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXCodeCompleteResults), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXCodeCompleteResults), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXCodeCompleteResults).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXCodeCompleteResults).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCommentTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCommentTests.cs index 8e370eb3..3972437d 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCommentTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCommentTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXCommentTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXComment), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXComment), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXComment).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXComment).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCompletionResultTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCompletionResultTests.cs index e18cf8eb..e92b8e8b 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCompletionResultTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCompletionResultTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXCompletionResultTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXCompletionResult), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXCompletionResult), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXCompletionResult).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXCompletionResult).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCursorAndRangeVisitorTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCursorAndRangeVisitorTests.cs index 203c321a..635a2006 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCursorAndRangeVisitorTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCursorAndRangeVisitorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXCursorAndRangeVisitorTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXCursorAndRangeVisitor), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXCursorAndRangeVisitor), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXCursorAndRangeVisitor).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXCursorAndRangeVisitor).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCursorSetImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCursorSetImplTests.cs index bca0865a..d95e1e47 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCursorSetImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCursorSetImplTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; @@ -13,14 +13,23 @@ public static unsafe class CXCursorSetImplTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXCursorSetImpl), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXCursorSetImpl), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXCursorSetImpl).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXCursorSetImpl).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] - public static void SizeOfTest() => Assert.Equal(1, sizeof(CXCursorSetImpl)); + public static void SizeOfTest() + { + Assert.Equal(1, sizeof(CXCursorSetImpl)); + } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCursorTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCursorTests.cs index b763a79b..904d74ce 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCursorTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCursorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXCursorTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXCursor), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXCursor), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXCursor).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXCursor).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXFileUniqueIDTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXFileUniqueIDTests.cs index d5186520..bd72b6f0 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXFileUniqueIDTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXFileUniqueIDTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; @@ -13,14 +13,23 @@ public static unsafe class CXFileUniqueIDTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXFileUniqueID), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXFileUniqueID), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXFileUniqueID).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXFileUniqueID).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] - public static void SizeOfTest() => Assert.Equal(24, sizeof(CXFileUniqueID)); + public static void SizeOfTest() + { + Assert.Equal(24, sizeof(CXFileUniqueID)); + } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxAttrInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxAttrInfoTests.cs index 4337a4d6..f37310ea 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxAttrInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxAttrInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxAttrInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxAttrInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxAttrInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxAttrInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxAttrInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxBaseClassInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxBaseClassInfoTests.cs index 057c56a9..51d12d62 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxBaseClassInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxBaseClassInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxBaseClassInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxBaseClassInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxBaseClassInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxBaseClassInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxBaseClassInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxCXXClassDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxCXXClassDeclInfoTests.cs index 8cd323bc..9751078c 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxCXXClassDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxCXXClassDeclInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxCXXClassDeclInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxCXXClassDeclInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxCXXClassDeclInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxCXXClassDeclInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxCXXClassDeclInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxContainerInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxContainerInfoTests.cs index 27adb815..1c94a626 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxContainerInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxContainerInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxContainerInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxContainerInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxContainerInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxContainerInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxContainerInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxDeclInfoTests.cs index 485a625f..1b310433 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxDeclInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxDeclInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxDeclInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxDeclInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxDeclInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxDeclInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityInfoTests.cs index ec97fb2a..809b84ef 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxEntityInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxEntityInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxEntityInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxEntityInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxEntityInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityRefInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityRefInfoTests.cs index 4f6b23cc..9f4628d8 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityRefInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityRefInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxEntityRefInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxEntityRefInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxEntityRefInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxEntityRefInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxEntityRefInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxIBOutletCollectionAttrInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxIBOutletCollectionAttrInfoTests.cs index aaab8c97..3e1b3904 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxIBOutletCollectionAttrInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxIBOutletCollectionAttrInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxIBOutletCollectionAttrInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxIBOutletCollectionAttrInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxIBOutletCollectionAttrInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxIBOutletCollectionAttrInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxIBOutletCollectionAttrInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxImportedASTFileInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxImportedASTFileInfoTests.cs index b996fc62..87d7b3b2 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxImportedASTFileInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxImportedASTFileInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxImportedASTFileInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxImportedASTFileInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxImportedASTFileInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxImportedASTFileInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxImportedASTFileInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxIncludedFileInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxIncludedFileInfoTests.cs index 8d3f2b51..77c44fb9 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxIncludedFileInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxIncludedFileInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxIncludedFileInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxIncludedFileInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxIncludedFileInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxIncludedFileInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxIncludedFileInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxLocTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxLocTests.cs index b3244e0a..bd7527a4 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxLocTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxLocTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxLocTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxLoc), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxLoc), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxLoc).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxLoc).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCCategoryDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCCategoryDeclInfoTests.cs index 084bd9fe..2f1a231b 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCCategoryDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCCategoryDeclInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxObjCCategoryDeclInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxObjCCategoryDeclInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxObjCCategoryDeclInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxObjCCategoryDeclInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxObjCCategoryDeclInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCContainerDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCContainerDeclInfoTests.cs index a0fa9c59..542da976 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCContainerDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCContainerDeclInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxObjCContainerDeclInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxObjCContainerDeclInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxObjCContainerDeclInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxObjCContainerDeclInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxObjCContainerDeclInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCInterfaceDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCInterfaceDeclInfoTests.cs index 439dc820..2bf58a63 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCInterfaceDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCInterfaceDeclInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxObjCInterfaceDeclInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxObjCInterfaceDeclInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxObjCInterfaceDeclInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxObjCInterfaceDeclInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxObjCInterfaceDeclInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCPropertyDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCPropertyDeclInfoTests.cs index cb59d148..1aff2ecb 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCPropertyDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCPropertyDeclInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxObjCPropertyDeclInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxObjCPropertyDeclInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxObjCPropertyDeclInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxObjCPropertyDeclInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxObjCPropertyDeclInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefInfoTests.cs index 7be1f6cb..f7ad8510 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxObjCProtocolRefInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxObjCProtocolRefInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxObjCProtocolRefInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxObjCProtocolRefInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxObjCProtocolRefInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefListInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefListInfoTests.cs index a53a67ba..3f7eac37 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefListInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefListInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXIdxObjCProtocolRefListInfoTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXIdxObjCProtocolRefListInfo), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXIdxObjCProtocolRefListInfo), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXIdxObjCProtocolRefListInfo).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXIdxObjCProtocolRefListInfo).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXModuleMapDescriptorImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXModuleMapDescriptorImplTests.cs index 3d64d51c..2758f58e 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXModuleMapDescriptorImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXModuleMapDescriptorImplTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; @@ -13,14 +13,23 @@ public static unsafe class CXModuleMapDescriptorImplTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXModuleMapDescriptorImpl), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXModuleMapDescriptorImpl), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXModuleMapDescriptorImpl).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXModuleMapDescriptorImpl).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] - public static void SizeOfTest() => Assert.Equal(1, sizeof(CXModuleMapDescriptorImpl)); + public static void SizeOfTest() + { + Assert.Equal(1, sizeof(CXModuleMapDescriptorImpl)); + } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXPlatformAvailabilityTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXPlatformAvailabilityTests.cs index baa4789b..49cd8990 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXPlatformAvailabilityTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXPlatformAvailabilityTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXPlatformAvailabilityTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXPlatformAvailability), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXPlatformAvailability), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXPlatformAvailability).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXPlatformAvailability).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXSourceLocationTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXSourceLocationTests.cs index de618e7e..ab297b3a 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXSourceLocationTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXSourceLocationTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXSourceLocationTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXSourceLocation), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXSourceLocation), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXSourceLocation).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXSourceLocation).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeListTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeListTests.cs index 03e69616..a156cad0 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeListTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeListTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXSourceRangeListTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXSourceRangeList), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXSourceRangeList), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXSourceRangeList).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXSourceRangeList).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeTests.cs index e8e2cca6..e97516d1 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXSourceRangeTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXSourceRange), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXSourceRange), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXSourceRange).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXSourceRange).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXStringSetTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXStringSetTests.cs index a23d8ede..133c5f53 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXStringSetTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXStringSetTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXStringSetTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXStringSet), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXStringSet), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXStringSet).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXStringSet).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXStringTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXStringTests.cs index b28c5b32..9a72b7ab 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXStringTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXStringTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXStringTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXString), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXString), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXString).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXString).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageEntryTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageEntryTests.cs index 079758d0..3efba374 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageEntryTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageEntryTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXTUResourceUsageEntryTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXTUResourceUsageEntry), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXTUResourceUsageEntry), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXTUResourceUsageEntry).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXTUResourceUsageEntry).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageTests.cs index 27093aae..6577fcb1 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXTUResourceUsageTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXTUResourceUsage), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXTUResourceUsage), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXTUResourceUsage).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXTUResourceUsage).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTargetInfoImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTargetInfoImplTests.cs index cc7e9f45..035061b7 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTargetInfoImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTargetInfoImplTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; @@ -13,14 +13,23 @@ public static unsafe class CXTargetInfoImplTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXTargetInfoImpl), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXTargetInfoImpl), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXTargetInfoImpl).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXTargetInfoImpl).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] - public static void SizeOfTest() => Assert.Equal(1, sizeof(CXTargetInfoImpl)); + public static void SizeOfTest() + { + Assert.Equal(1, sizeof(CXTargetInfoImpl)); + } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTokenTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTokenTests.cs index ed57bec3..07f5ee1c 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTokenTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTokenTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXTokenTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXToken), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXToken), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXToken).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXToken).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTranslationUnitImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTranslationUnitImplTests.cs index 64c7c5f4..29995153 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTranslationUnitImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTranslationUnitImplTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; @@ -13,14 +13,23 @@ public static unsafe class CXTranslationUnitImplTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXTranslationUnitImpl), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXTranslationUnitImpl), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXTranslationUnitImpl).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXTranslationUnitImpl).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] - public static void SizeOfTest() => Assert.Equal(1, sizeof(CXTranslationUnitImpl)); + public static void SizeOfTest() + { + Assert.Equal(1, sizeof(CXTranslationUnitImpl)); + } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTypeTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTypeTests.cs index 4ba8b704..940db7c4 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTypeTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTypeTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXTypeTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXType), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXType), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXType).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXType).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXUnsavedFileTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXUnsavedFileTests.cs index 430aad2e..00c077cd 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXUnsavedFileTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXUnsavedFileTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class CXUnsavedFileTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXUnsavedFile), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXUnsavedFile), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXUnsavedFile).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXUnsavedFile).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXVersionTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXVersionTests.cs index 657019f8..ed2ced56 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXVersionTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXVersionTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; @@ -13,14 +13,23 @@ public static unsafe class CXVersionTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXVersion), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXVersion), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXVersion).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXVersion).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] - public static void SizeOfTest() => Assert.Equal(12, sizeof(CXVersion)); + public static void SizeOfTest() + { + Assert.Equal(12, sizeof(CXVersion)); + } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXVirtualFileOverlayImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXVirtualFileOverlayImplTests.cs index 28ca825e..a086ea90 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXVirtualFileOverlayImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXVirtualFileOverlayImplTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; @@ -13,14 +13,23 @@ public static unsafe class CXVirtualFileOverlayImplTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(CXVirtualFileOverlayImpl), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CXVirtualFileOverlayImpl), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(CXVirtualFileOverlayImpl).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CXVirtualFileOverlayImpl).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] - public static void SizeOfTest() => Assert.Equal(1, sizeof(CXVirtualFileOverlayImpl)); + public static void SizeOfTest() + { + Assert.Equal(1, sizeof(CXVirtualFileOverlayImpl)); + } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentLocTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentLocTests.cs new file mode 100644 index 00000000..a5229b6d --- /dev/null +++ b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentLocTests.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. +// Ported from https://github.com/microsoft/ClangSharp/blob/main/sources/libClangSharp + +using System; +using System.Runtime.InteropServices; +using Xunit; + +namespace ClangSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class CX_TemplateArgumentLocTests + { + /// Validates that the struct is blittable. + [Fact] + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CX_TemplateArgumentLoc), Marshal.SizeOf()); + } + + /// Validates that the struct has the right . + [Fact] + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CX_TemplateArgumentLoc).IsLayoutSequential); + } + + /// Validates that the struct has the correct size. + [Fact] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.Equal(16, sizeof(CX_TemplateArgumentLoc)); + } + else + { + Assert.Equal(8, sizeof(CX_TemplateArgumentLoc)); + } + } + } +} diff --git a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentTests.cs new file mode 100644 index 00000000..be6d19e5 --- /dev/null +++ b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentTests.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. +// Ported from https://github.com/microsoft/ClangSharp/blob/main/sources/libClangSharp + +using System; +using System.Runtime.InteropServices; +using Xunit; + +namespace ClangSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class CX_TemplateArgumentTests + { + /// Validates that the struct is blittable. + [Fact] + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CX_TemplateArgument), Marshal.SizeOf()); + } + + /// Validates that the struct has the right . + [Fact] + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CX_TemplateArgument).IsLayoutSequential); + } + + /// Validates that the struct has the correct size. + [Fact] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.Equal(24, sizeof(CX_TemplateArgument)); + } + else + { + Assert.Equal(16, sizeof(CX_TemplateArgument)); + } + } + } +} diff --git a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateNameTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateNameTests.cs new file mode 100644 index 00000000..4cc54473 --- /dev/null +++ b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateNameTests.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. +// Ported from https://github.com/microsoft/ClangSharp/blob/main/sources/libClangSharp + +using System; +using System.Runtime.InteropServices; +using Xunit; + +namespace ClangSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class CX_TemplateNameTests + { + /// Validates that the struct is blittable. + [Fact] + public static void IsBlittableTest() + { + Assert.Equal(sizeof(CX_TemplateName), Marshal.SizeOf()); + } + + /// Validates that the struct has the right . + [Fact] + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(CX_TemplateName).IsLayoutSequential); + } + + /// Validates that the struct has the correct size. + [Fact] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.Equal(24, sizeof(CX_TemplateName)); + } + else + { + Assert.Equal(12, sizeof(CX_TemplateName)); + } + } + } +} diff --git a/tests/ClangSharp.UnitTests/InteropTests/IndexerCallbacksTests.cs b/tests/ClangSharp.UnitTests/InteropTests/IndexerCallbacksTests.cs index f0fac36c..d4a11a55 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/IndexerCallbacksTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/IndexerCallbacksTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -14,11 +14,17 @@ public static unsafe class IndexerCallbacksTests { /// Validates that the struct is blittable. [Fact] - public static void IsBlittableTest() => Assert.Equal(sizeof(IndexerCallbacks), Marshal.SizeOf()); + public static void IsBlittableTest() + { + Assert.Equal(sizeof(IndexerCallbacks), Marshal.SizeOf()); + } /// Validates that the struct has the right . [Fact] - public static void IsLayoutSequentialTest() => Assert.True(typeof(IndexerCallbacks).IsLayoutSequential); + public static void IsLayoutSequentialTest() + { + Assert.True(typeof(IndexerCallbacks).IsLayoutSequential); + } /// Validates that the struct has the correct size. [Fact] From 67a5eb8906dde04a8bec95fde273fa1ab0b2e679 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Thu, 27 May 2021 23:55:16 -0700 Subject: [PATCH 2/4] Splitting the main project into ClangSharp and ClangSharp.Interop --- ClangSharp.sln | 7 +++++ .../.editorconfig | 0 .../CXAvailabilityKind.cs | 0 .../CXCallingConv.cs | 0 .../CXChildVisitResult.cs | 0 .../CXCodeCompleteResults.cs | 0 .../CXCodeComplete_Flags.cs | 0 .../CXComment.cs | 0 .../CXCommentInlineCommandRenderKind.cs | 0 .../CXCommentKind.cs | 0 .../CXCommentParamPassDirection.cs | 0 .../CXCompilationDatabase_Error.cs | 0 .../CXCompletionChunkKind.cs | 0 .../CXCompletionContext.cs | 0 .../CXCompletionResult.cs | 0 .../CXCursor.cs | 0 .../CXCursorAndRangeVisitor.cs | 0 .../CXCursorKind.cs | 0 .../CXCursorSetImpl.cs | 0 .../CXCursorVisitor.cs | 0 .../CXCursor_ExceptionSpecificationKind.cs | 0 .../CXDiagnosticDisplayOptions.cs | 0 .../CXDiagnosticSeverity.cs | 0 .../CXErrorCode.cs | 0 .../CXEvalResultKind.cs | 0 .../CXFieldVisitor.cs | 0 .../CXFileUniqueID.cs | 0 .../CXGlobalOptFlags.cs | 0 .../CXIdxAttrInfo.cs | 0 .../CXIdxAttrKind.cs | 0 .../CXIdxBaseClassInfo.cs | 0 .../CXIdxCXXClassDeclInfo.cs | 0 .../CXIdxContainerInfo.cs | 0 .../CXIdxDeclInfo.cs | 0 .../CXIdxDeclInfoFlags.cs | 0 .../CXIdxEntityCXXTemplateKind.cs | 0 .../CXIdxEntityInfo.cs | 0 .../CXIdxEntityKind.cs | 0 .../CXIdxEntityLanguage.cs | 0 .../CXIdxEntityRefInfo.cs | 0 .../CXIdxEntityRefKind.cs | 0 .../CXIdxIBOutletCollectionAttrInfo.cs | 0 .../CXIdxImportedASTFileInfo.cs | 0 .../CXIdxIncludedFileInfo.cs | 0 .../CXIdxLoc.cs | 0 .../CXIdxObjCCategoryDeclInfo.cs | 0 .../CXIdxObjCContainerDeclInfo.cs | 0 .../CXIdxObjCContainerKind.cs | 0 .../CXIdxObjCInterfaceDeclInfo.cs | 0 .../CXIdxObjCPropertyDeclInfo.cs | 0 .../CXIdxObjCProtocolRefInfo.cs | 0 .../CXIdxObjCProtocolRefListInfo.cs | 0 .../CXInclusionVisitor.cs | 0 .../CXIndexOptFlags.cs | 0 .../CXLanguageKind.cs | 0 .../CXLinkageKind.cs | 0 .../CXLoadDiag_Error.cs | 0 .../CXModuleMapDescriptorImpl.cs | 0 .../CXNameRefFlags.cs | 0 .../CXObjCDeclQualifierKind.cs | 0 .../CXObjCPropertyAttrKind.cs | 0 .../CXPlatformAvailability.cs | 0 .../CXPrintingPolicyProperty.cs | 0 .../CXRefQualifierKind.cs | 0 .../CXReparse_Flags.cs | 0 .../CXResult.cs | 0 .../CXSaveError.cs | 0 .../CXSaveTranslationUnit_Flags.cs | 0 .../CXSourceLocation.cs | 0 .../CXSourceRange.cs | 0 .../CXSourceRangeList.cs | 0 .../CXString.cs | 0 .../CXStringSet.cs | 0 .../CXSymbolRole.cs | 0 .../CXTLSKind.cs | 0 .../CXTUResourceUsage.cs | 0 .../CXTUResourceUsageEntry.cs | 0 .../CXTUResourceUsageKind.cs | 0 .../CXTargetInfoImpl.cs | 0 .../CXTemplateArgumentKind.cs | 0 .../Interop => ClangSharp.Interop}/CXToken.cs | 0 .../CXTokenKind.cs | 0 .../CXTranslationUnitImpl.cs | 0 .../CXTranslationUnit_Flags.cs | 0 .../Interop => ClangSharp.Interop}/CXType.cs | 0 .../CXTypeKind.cs | 0 .../CXTypeLayoutError.cs | 0 .../CXTypeNullabilityKind.cs | 0 .../CXUnsavedFile.cs | 0 .../CXVersion.cs | 0 .../CXVirtualFileOverlayImpl.cs | 0 .../CXVisibilityKind.cs | 0 .../CXVisitorResult.cs | 0 .../CX_AtomicOperatorKind.cs | 0 .../CX_AttrKind.cs | 0 .../CX_BinaryOperatorKind.cs | 0 .../CX_CXXAccessSpecifier.cs | 0 .../CX_CapturedRegionKind.cs | 0 .../CX_CastKind.cs | 0 .../CX_CharacterKind.cs | 0 .../CX_ConstructionKind.cs | 0 .../CX_DeclKind.cs | 0 .../CX_ExprDependence.cs | 0 .../CX_FloatingSemantics.cs | 0 .../CX_OverloadedOperatorKind.cs | 0 .../CX_StmtClass.cs | 0 .../CX_StorageClass.cs | 0 .../CX_TemplateArgument.cs | 0 .../CX_TemplateArgumentDependence.cs | 0 .../CX_TemplateArgumentLoc.cs | 0 .../CX_TemplateName.cs | 0 .../CX_TemplateNameKind.cs | 0 .../CX_TemplateSpecializationKind.cs | 0 .../CX_TypeClass.cs | 0 .../CX_UnaryExprOrTypeTrait.cs | 0 .../CX_UnaryOperatorKind.cs | 0 .../CX_VariableCaptureKind.cs | 0 .../ClangSharp.Interop.csproj | 28 +++++++++++++++++++ .../Extensions}/CXClientData.cs | 0 .../Extensions}/CXCodeCompleteResults.cs | 0 .../Extensions}/CXComment.cs | 0 .../Extensions}/CXCompilationDatabase.cs | 0 .../Extensions}/CXCompileCommand.cs | 0 .../Extensions}/CXCompileCommands.cs | 0 .../Extensions}/CXCompletionString.cs | 0 .../Extensions}/CXCursor.cs | 0 .../Extensions}/CXCursorSet.cs | 0 .../Extensions}/CXDiagnostic.cs | 0 .../Extensions}/CXDiagnosticSet.cs | 0 .../Extensions}/CXEvalResult.cs | 0 .../Extensions}/CXFile.cs | 0 .../Extensions}/CXIdxAttrInfo.cs | 0 .../Extensions}/CXIdxClientASTFile.cs | 0 .../Extensions}/CXIdxClientContainer.cs | 0 .../Extensions}/CXIdxClientEntity.cs | 0 .../Extensions}/CXIdxClientFile.cs | 0 .../Extensions}/CXIdxContainerInfo.cs | 0 .../Extensions}/CXIdxDeclInfo.cs | 0 .../Extensions}/CXIdxEntityInfo.cs | 0 .../Extensions}/CXIdxLoc.cs | 0 .../Extensions}/CXIndex.cs | 0 .../Extensions}/CXIndexAction.cs | 0 .../Extensions}/CXModule.cs | 0 .../Extensions}/CXModuleMapDescriptor.cs | 0 .../Extensions}/CXPlatformAvailability.cs | 0 .../Extensions}/CXPrintingPolicy.cs | 0 .../Extensions}/CXRemapping.cs | 0 .../Extensions}/CXSourceLocation.cs | 0 .../Extensions}/CXSourceRange.cs | 0 .../Extensions}/CXSourceRangeList.cs | 0 .../Extensions}/CXString.cs | 0 .../Extensions}/CXStringSet.cs | 0 .../Extensions}/CXTUResourceUsage.cs | 0 .../Extensions}/CXTUResourceUsageEntry.cs | 0 .../Extensions}/CXTargetInfo.cs | 0 .../Extensions}/CXToken.cs | 0 .../Extensions}/CXTranslationUnit.cs | 0 .../Extensions}/CXType.cs | 0 .../Extensions}/CXUnsavedFile.cs | 0 .../Extensions}/CXVirtualFileOverlay.cs | 0 .../Extensions}/CX_TemplateArgument.cs | 0 .../Extensions}/CX_TemplateArgumentLoc.cs | 0 .../Extensions}/CX_TemplateName.cs | 0 .../Extensions}/clang.ResolveLibrary.cs | 0 .../IndexerCallbacks.cs | 0 .../Internals/Index.cs | 0 .../Internals/MarshaledString.cs | 2 +- .../Internals/MarshaledStringArray.cs | 2 +- .../Internals/NativeTypeNameAttribute.cs | 0 .../Internals/Range.cs | 0 .../Internals/SpanExtensions.cs | 2 +- .../Interop => ClangSharp.Interop}/clang.cs | 0 .../clangsharp.cs | 0 sources/ClangSharp/ClangSharp.csproj | 18 +----------- 174 files changed, 39 insertions(+), 20 deletions(-) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/.editorconfig (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXAvailabilityKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCallingConv.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXChildVisitResult.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCodeCompleteResults.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCodeComplete_Flags.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXComment.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCommentInlineCommandRenderKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCommentKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCommentParamPassDirection.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCompilationDatabase_Error.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCompletionChunkKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCompletionContext.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCompletionResult.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCursor.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCursorAndRangeVisitor.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCursorKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCursorSetImpl.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCursorVisitor.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXCursor_ExceptionSpecificationKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXDiagnosticDisplayOptions.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXDiagnosticSeverity.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXErrorCode.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXEvalResultKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXFieldVisitor.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXFileUniqueID.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXGlobalOptFlags.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxAttrInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxAttrKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxBaseClassInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxCXXClassDeclInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxContainerInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxDeclInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxDeclInfoFlags.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxEntityCXXTemplateKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxEntityInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxEntityKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxEntityLanguage.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxEntityRefInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxEntityRefKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxIBOutletCollectionAttrInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxImportedASTFileInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxIncludedFileInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxLoc.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxObjCCategoryDeclInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxObjCContainerDeclInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxObjCContainerKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxObjCInterfaceDeclInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxObjCPropertyDeclInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxObjCProtocolRefInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIdxObjCProtocolRefListInfo.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXInclusionVisitor.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXIndexOptFlags.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXLanguageKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXLinkageKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXLoadDiag_Error.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXModuleMapDescriptorImpl.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXNameRefFlags.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXObjCDeclQualifierKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXObjCPropertyAttrKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXPlatformAvailability.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXPrintingPolicyProperty.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXRefQualifierKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXReparse_Flags.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXResult.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXSaveError.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXSaveTranslationUnit_Flags.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXSourceLocation.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXSourceRange.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXSourceRangeList.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXString.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXStringSet.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXSymbolRole.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTLSKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTUResourceUsage.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTUResourceUsageEntry.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTUResourceUsageKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTargetInfoImpl.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTemplateArgumentKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXToken.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTokenKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTranslationUnitImpl.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTranslationUnit_Flags.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXType.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTypeKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTypeLayoutError.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXTypeNullabilityKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXUnsavedFile.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXVersion.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXVirtualFileOverlayImpl.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXVisibilityKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CXVisitorResult.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_AtomicOperatorKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_AttrKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_BinaryOperatorKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_CXXAccessSpecifier.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_CapturedRegionKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_CastKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_CharacterKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_ConstructionKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_DeclKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_ExprDependence.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_FloatingSemantics.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_OverloadedOperatorKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_StmtClass.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_StorageClass.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_TemplateArgument.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_TemplateArgumentDependence.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_TemplateArgumentLoc.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_TemplateName.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_TemplateNameKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_TemplateSpecializationKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_TypeClass.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_UnaryExprOrTypeTrait.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_UnaryOperatorKind.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/CX_VariableCaptureKind.cs (100%) create mode 100644 sources/ClangSharp.Interop/ClangSharp.Interop.csproj rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXClientData.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXCodeCompleteResults.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXComment.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXCompilationDatabase.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXCompileCommand.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXCompileCommands.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXCompletionString.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXCursor.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXCursorSet.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXDiagnostic.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXDiagnosticSet.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXEvalResult.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXFile.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxAttrInfo.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxClientASTFile.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxClientContainer.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxClientEntity.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxClientFile.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxContainerInfo.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxDeclInfo.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxEntityInfo.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIdxLoc.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIndex.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXIndexAction.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXModule.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXModuleMapDescriptor.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXPlatformAvailability.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXPrintingPolicy.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXRemapping.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXSourceLocation.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXSourceRange.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXSourceRangeList.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXString.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXStringSet.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXTUResourceUsage.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXTUResourceUsageEntry.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXTargetInfo.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXToken.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXTranslationUnit.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXType.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXUnsavedFile.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CXVirtualFileOverlay.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CX_TemplateArgument.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CX_TemplateArgumentLoc.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/CX_TemplateName.cs (100%) rename sources/{ClangSharp/Interop.Extensions => ClangSharp.Interop/Extensions}/clang.ResolveLibrary.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/IndexerCallbacks.cs (100%) rename sources/{ClangSharp => ClangSharp.Interop}/Internals/Index.cs (100%) rename sources/{ClangSharp => ClangSharp.Interop}/Internals/MarshaledString.cs (96%) rename sources/{ClangSharp => ClangSharp.Interop}/Internals/MarshaledStringArray.cs (96%) rename sources/{ClangSharp => ClangSharp.Interop}/Internals/NativeTypeNameAttribute.cs (100%) rename sources/{ClangSharp => ClangSharp.Interop}/Internals/Range.cs (100%) rename sources/{ClangSharp => ClangSharp.Interop}/Internals/SpanExtensions.cs (97%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/clang.cs (100%) rename sources/{ClangSharp/Interop => ClangSharp.Interop}/clangsharp.cs (100%) diff --git a/ClangSharp.sln b/ClangSharp.sln index 9dd2e7a6..83053d3d 100644 --- a/ClangSharp.sln +++ b/ClangSharp.sln @@ -209,6 +209,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.win-a packages\libClangSharp\libClangSharp.runtime.win-arm64\libClangSharp.runtime.win-arm64.nuspec = packages\libClangSharp\libClangSharp.runtime.win-arm64\libClangSharp.runtime.win-arm64.nuspec EndProjectSection EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClangSharp.Interop", "sources\ClangSharp.Interop\ClangSharp.Interop.csproj", "{AADBAAC3-45F0-484F-BCB2-9809EDF1CA82}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -235,6 +237,10 @@ Global {9D29BA0E-79C6-484E-B630-86A9510F1B74}.Debug|Any CPU.Build.0 = Debug|Any CPU {9D29BA0E-79C6-484E-B630-86A9510F1B74}.Release|Any CPU.ActiveCfg = Release|Any CPU {9D29BA0E-79C6-484E-B630-86A9510F1B74}.Release|Any CPU.Build.0 = Release|Any CPU + {AADBAAC3-45F0-484F-BCB2-9809EDF1CA82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AADBAAC3-45F0-484F-BCB2-9809EDF1CA82}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AADBAAC3-45F0-484F-BCB2-9809EDF1CA82}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AADBAAC3-45F0-484F-BCB2-9809EDF1CA82}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -272,6 +278,7 @@ Global {B3F3A831-DA09-40A2-A25C-DE47A58BB93B} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {D90C3C52-DA8D-44BB-B8B0-3E4EF4CBF4DC} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {69B805C6-230D-49A2-A569-3CAC2EC9F293} = {EDEC2130-DA14-4415-91A3-225733FB61F8} + {AADBAAC3-45F0-484F-BCB2-9809EDF1CA82} = {732BA761-B58E-4C34-9C96-097382A55A7A} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A9D18E0B-5409-457D-B5F3-0E217136BB01} diff --git a/sources/ClangSharp/Interop/.editorconfig b/sources/ClangSharp.Interop/.editorconfig similarity index 100% rename from sources/ClangSharp/Interop/.editorconfig rename to sources/ClangSharp.Interop/.editorconfig diff --git a/sources/ClangSharp/Interop/CXAvailabilityKind.cs b/sources/ClangSharp.Interop/CXAvailabilityKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXAvailabilityKind.cs rename to sources/ClangSharp.Interop/CXAvailabilityKind.cs diff --git a/sources/ClangSharp/Interop/CXCallingConv.cs b/sources/ClangSharp.Interop/CXCallingConv.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCallingConv.cs rename to sources/ClangSharp.Interop/CXCallingConv.cs diff --git a/sources/ClangSharp/Interop/CXChildVisitResult.cs b/sources/ClangSharp.Interop/CXChildVisitResult.cs similarity index 100% rename from sources/ClangSharp/Interop/CXChildVisitResult.cs rename to sources/ClangSharp.Interop/CXChildVisitResult.cs diff --git a/sources/ClangSharp/Interop/CXCodeCompleteResults.cs b/sources/ClangSharp.Interop/CXCodeCompleteResults.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCodeCompleteResults.cs rename to sources/ClangSharp.Interop/CXCodeCompleteResults.cs diff --git a/sources/ClangSharp/Interop/CXCodeComplete_Flags.cs b/sources/ClangSharp.Interop/CXCodeComplete_Flags.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCodeComplete_Flags.cs rename to sources/ClangSharp.Interop/CXCodeComplete_Flags.cs diff --git a/sources/ClangSharp/Interop/CXComment.cs b/sources/ClangSharp.Interop/CXComment.cs similarity index 100% rename from sources/ClangSharp/Interop/CXComment.cs rename to sources/ClangSharp.Interop/CXComment.cs diff --git a/sources/ClangSharp/Interop/CXCommentInlineCommandRenderKind.cs b/sources/ClangSharp.Interop/CXCommentInlineCommandRenderKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCommentInlineCommandRenderKind.cs rename to sources/ClangSharp.Interop/CXCommentInlineCommandRenderKind.cs diff --git a/sources/ClangSharp/Interop/CXCommentKind.cs b/sources/ClangSharp.Interop/CXCommentKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCommentKind.cs rename to sources/ClangSharp.Interop/CXCommentKind.cs diff --git a/sources/ClangSharp/Interop/CXCommentParamPassDirection.cs b/sources/ClangSharp.Interop/CXCommentParamPassDirection.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCommentParamPassDirection.cs rename to sources/ClangSharp.Interop/CXCommentParamPassDirection.cs diff --git a/sources/ClangSharp/Interop/CXCompilationDatabase_Error.cs b/sources/ClangSharp.Interop/CXCompilationDatabase_Error.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCompilationDatabase_Error.cs rename to sources/ClangSharp.Interop/CXCompilationDatabase_Error.cs diff --git a/sources/ClangSharp/Interop/CXCompletionChunkKind.cs b/sources/ClangSharp.Interop/CXCompletionChunkKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCompletionChunkKind.cs rename to sources/ClangSharp.Interop/CXCompletionChunkKind.cs diff --git a/sources/ClangSharp/Interop/CXCompletionContext.cs b/sources/ClangSharp.Interop/CXCompletionContext.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCompletionContext.cs rename to sources/ClangSharp.Interop/CXCompletionContext.cs diff --git a/sources/ClangSharp/Interop/CXCompletionResult.cs b/sources/ClangSharp.Interop/CXCompletionResult.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCompletionResult.cs rename to sources/ClangSharp.Interop/CXCompletionResult.cs diff --git a/sources/ClangSharp/Interop/CXCursor.cs b/sources/ClangSharp.Interop/CXCursor.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCursor.cs rename to sources/ClangSharp.Interop/CXCursor.cs diff --git a/sources/ClangSharp/Interop/CXCursorAndRangeVisitor.cs b/sources/ClangSharp.Interop/CXCursorAndRangeVisitor.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCursorAndRangeVisitor.cs rename to sources/ClangSharp.Interop/CXCursorAndRangeVisitor.cs diff --git a/sources/ClangSharp/Interop/CXCursorKind.cs b/sources/ClangSharp.Interop/CXCursorKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCursorKind.cs rename to sources/ClangSharp.Interop/CXCursorKind.cs diff --git a/sources/ClangSharp/Interop/CXCursorSetImpl.cs b/sources/ClangSharp.Interop/CXCursorSetImpl.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCursorSetImpl.cs rename to sources/ClangSharp.Interop/CXCursorSetImpl.cs diff --git a/sources/ClangSharp/Interop/CXCursorVisitor.cs b/sources/ClangSharp.Interop/CXCursorVisitor.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCursorVisitor.cs rename to sources/ClangSharp.Interop/CXCursorVisitor.cs diff --git a/sources/ClangSharp/Interop/CXCursor_ExceptionSpecificationKind.cs b/sources/ClangSharp.Interop/CXCursor_ExceptionSpecificationKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXCursor_ExceptionSpecificationKind.cs rename to sources/ClangSharp.Interop/CXCursor_ExceptionSpecificationKind.cs diff --git a/sources/ClangSharp/Interop/CXDiagnosticDisplayOptions.cs b/sources/ClangSharp.Interop/CXDiagnosticDisplayOptions.cs similarity index 100% rename from sources/ClangSharp/Interop/CXDiagnosticDisplayOptions.cs rename to sources/ClangSharp.Interop/CXDiagnosticDisplayOptions.cs diff --git a/sources/ClangSharp/Interop/CXDiagnosticSeverity.cs b/sources/ClangSharp.Interop/CXDiagnosticSeverity.cs similarity index 100% rename from sources/ClangSharp/Interop/CXDiagnosticSeverity.cs rename to sources/ClangSharp.Interop/CXDiagnosticSeverity.cs diff --git a/sources/ClangSharp/Interop/CXErrorCode.cs b/sources/ClangSharp.Interop/CXErrorCode.cs similarity index 100% rename from sources/ClangSharp/Interop/CXErrorCode.cs rename to sources/ClangSharp.Interop/CXErrorCode.cs diff --git a/sources/ClangSharp/Interop/CXEvalResultKind.cs b/sources/ClangSharp.Interop/CXEvalResultKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXEvalResultKind.cs rename to sources/ClangSharp.Interop/CXEvalResultKind.cs diff --git a/sources/ClangSharp/Interop/CXFieldVisitor.cs b/sources/ClangSharp.Interop/CXFieldVisitor.cs similarity index 100% rename from sources/ClangSharp/Interop/CXFieldVisitor.cs rename to sources/ClangSharp.Interop/CXFieldVisitor.cs diff --git a/sources/ClangSharp/Interop/CXFileUniqueID.cs b/sources/ClangSharp.Interop/CXFileUniqueID.cs similarity index 100% rename from sources/ClangSharp/Interop/CXFileUniqueID.cs rename to sources/ClangSharp.Interop/CXFileUniqueID.cs diff --git a/sources/ClangSharp/Interop/CXGlobalOptFlags.cs b/sources/ClangSharp.Interop/CXGlobalOptFlags.cs similarity index 100% rename from sources/ClangSharp/Interop/CXGlobalOptFlags.cs rename to sources/ClangSharp.Interop/CXGlobalOptFlags.cs diff --git a/sources/ClangSharp/Interop/CXIdxAttrInfo.cs b/sources/ClangSharp.Interop/CXIdxAttrInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxAttrInfo.cs rename to sources/ClangSharp.Interop/CXIdxAttrInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxAttrKind.cs b/sources/ClangSharp.Interop/CXIdxAttrKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxAttrKind.cs rename to sources/ClangSharp.Interop/CXIdxAttrKind.cs diff --git a/sources/ClangSharp/Interop/CXIdxBaseClassInfo.cs b/sources/ClangSharp.Interop/CXIdxBaseClassInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxBaseClassInfo.cs rename to sources/ClangSharp.Interop/CXIdxBaseClassInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxCXXClassDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxCXXClassDeclInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxCXXClassDeclInfo.cs rename to sources/ClangSharp.Interop/CXIdxCXXClassDeclInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxContainerInfo.cs b/sources/ClangSharp.Interop/CXIdxContainerInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxContainerInfo.cs rename to sources/ClangSharp.Interop/CXIdxContainerInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxDeclInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxDeclInfo.cs rename to sources/ClangSharp.Interop/CXIdxDeclInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxDeclInfoFlags.cs b/sources/ClangSharp.Interop/CXIdxDeclInfoFlags.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxDeclInfoFlags.cs rename to sources/ClangSharp.Interop/CXIdxDeclInfoFlags.cs diff --git a/sources/ClangSharp/Interop/CXIdxEntityCXXTemplateKind.cs b/sources/ClangSharp.Interop/CXIdxEntityCXXTemplateKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxEntityCXXTemplateKind.cs rename to sources/ClangSharp.Interop/CXIdxEntityCXXTemplateKind.cs diff --git a/sources/ClangSharp/Interop/CXIdxEntityInfo.cs b/sources/ClangSharp.Interop/CXIdxEntityInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxEntityInfo.cs rename to sources/ClangSharp.Interop/CXIdxEntityInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxEntityKind.cs b/sources/ClangSharp.Interop/CXIdxEntityKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxEntityKind.cs rename to sources/ClangSharp.Interop/CXIdxEntityKind.cs diff --git a/sources/ClangSharp/Interop/CXIdxEntityLanguage.cs b/sources/ClangSharp.Interop/CXIdxEntityLanguage.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxEntityLanguage.cs rename to sources/ClangSharp.Interop/CXIdxEntityLanguage.cs diff --git a/sources/ClangSharp/Interop/CXIdxEntityRefInfo.cs b/sources/ClangSharp.Interop/CXIdxEntityRefInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxEntityRefInfo.cs rename to sources/ClangSharp.Interop/CXIdxEntityRefInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxEntityRefKind.cs b/sources/ClangSharp.Interop/CXIdxEntityRefKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxEntityRefKind.cs rename to sources/ClangSharp.Interop/CXIdxEntityRefKind.cs diff --git a/sources/ClangSharp/Interop/CXIdxIBOutletCollectionAttrInfo.cs b/sources/ClangSharp.Interop/CXIdxIBOutletCollectionAttrInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxIBOutletCollectionAttrInfo.cs rename to sources/ClangSharp.Interop/CXIdxIBOutletCollectionAttrInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxImportedASTFileInfo.cs b/sources/ClangSharp.Interop/CXIdxImportedASTFileInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxImportedASTFileInfo.cs rename to sources/ClangSharp.Interop/CXIdxImportedASTFileInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxIncludedFileInfo.cs b/sources/ClangSharp.Interop/CXIdxIncludedFileInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxIncludedFileInfo.cs rename to sources/ClangSharp.Interop/CXIdxIncludedFileInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxLoc.cs b/sources/ClangSharp.Interop/CXIdxLoc.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxLoc.cs rename to sources/ClangSharp.Interop/CXIdxLoc.cs diff --git a/sources/ClangSharp/Interop/CXIdxObjCCategoryDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCCategoryDeclInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxObjCCategoryDeclInfo.cs rename to sources/ClangSharp.Interop/CXIdxObjCCategoryDeclInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxObjCContainerDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCContainerDeclInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxObjCContainerDeclInfo.cs rename to sources/ClangSharp.Interop/CXIdxObjCContainerDeclInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxObjCContainerKind.cs b/sources/ClangSharp.Interop/CXIdxObjCContainerKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxObjCContainerKind.cs rename to sources/ClangSharp.Interop/CXIdxObjCContainerKind.cs diff --git a/sources/ClangSharp/Interop/CXIdxObjCInterfaceDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCInterfaceDeclInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxObjCInterfaceDeclInfo.cs rename to sources/ClangSharp.Interop/CXIdxObjCInterfaceDeclInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxObjCPropertyDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCPropertyDeclInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxObjCPropertyDeclInfo.cs rename to sources/ClangSharp.Interop/CXIdxObjCPropertyDeclInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxObjCProtocolRefInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCProtocolRefInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxObjCProtocolRefInfo.cs rename to sources/ClangSharp.Interop/CXIdxObjCProtocolRefInfo.cs diff --git a/sources/ClangSharp/Interop/CXIdxObjCProtocolRefListInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCProtocolRefListInfo.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIdxObjCProtocolRefListInfo.cs rename to sources/ClangSharp.Interop/CXIdxObjCProtocolRefListInfo.cs diff --git a/sources/ClangSharp/Interop/CXInclusionVisitor.cs b/sources/ClangSharp.Interop/CXInclusionVisitor.cs similarity index 100% rename from sources/ClangSharp/Interop/CXInclusionVisitor.cs rename to sources/ClangSharp.Interop/CXInclusionVisitor.cs diff --git a/sources/ClangSharp/Interop/CXIndexOptFlags.cs b/sources/ClangSharp.Interop/CXIndexOptFlags.cs similarity index 100% rename from sources/ClangSharp/Interop/CXIndexOptFlags.cs rename to sources/ClangSharp.Interop/CXIndexOptFlags.cs diff --git a/sources/ClangSharp/Interop/CXLanguageKind.cs b/sources/ClangSharp.Interop/CXLanguageKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXLanguageKind.cs rename to sources/ClangSharp.Interop/CXLanguageKind.cs diff --git a/sources/ClangSharp/Interop/CXLinkageKind.cs b/sources/ClangSharp.Interop/CXLinkageKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXLinkageKind.cs rename to sources/ClangSharp.Interop/CXLinkageKind.cs diff --git a/sources/ClangSharp/Interop/CXLoadDiag_Error.cs b/sources/ClangSharp.Interop/CXLoadDiag_Error.cs similarity index 100% rename from sources/ClangSharp/Interop/CXLoadDiag_Error.cs rename to sources/ClangSharp.Interop/CXLoadDiag_Error.cs diff --git a/sources/ClangSharp/Interop/CXModuleMapDescriptorImpl.cs b/sources/ClangSharp.Interop/CXModuleMapDescriptorImpl.cs similarity index 100% rename from sources/ClangSharp/Interop/CXModuleMapDescriptorImpl.cs rename to sources/ClangSharp.Interop/CXModuleMapDescriptorImpl.cs diff --git a/sources/ClangSharp/Interop/CXNameRefFlags.cs b/sources/ClangSharp.Interop/CXNameRefFlags.cs similarity index 100% rename from sources/ClangSharp/Interop/CXNameRefFlags.cs rename to sources/ClangSharp.Interop/CXNameRefFlags.cs diff --git a/sources/ClangSharp/Interop/CXObjCDeclQualifierKind.cs b/sources/ClangSharp.Interop/CXObjCDeclQualifierKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXObjCDeclQualifierKind.cs rename to sources/ClangSharp.Interop/CXObjCDeclQualifierKind.cs diff --git a/sources/ClangSharp/Interop/CXObjCPropertyAttrKind.cs b/sources/ClangSharp.Interop/CXObjCPropertyAttrKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXObjCPropertyAttrKind.cs rename to sources/ClangSharp.Interop/CXObjCPropertyAttrKind.cs diff --git a/sources/ClangSharp/Interop/CXPlatformAvailability.cs b/sources/ClangSharp.Interop/CXPlatformAvailability.cs similarity index 100% rename from sources/ClangSharp/Interop/CXPlatformAvailability.cs rename to sources/ClangSharp.Interop/CXPlatformAvailability.cs diff --git a/sources/ClangSharp/Interop/CXPrintingPolicyProperty.cs b/sources/ClangSharp.Interop/CXPrintingPolicyProperty.cs similarity index 100% rename from sources/ClangSharp/Interop/CXPrintingPolicyProperty.cs rename to sources/ClangSharp.Interop/CXPrintingPolicyProperty.cs diff --git a/sources/ClangSharp/Interop/CXRefQualifierKind.cs b/sources/ClangSharp.Interop/CXRefQualifierKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXRefQualifierKind.cs rename to sources/ClangSharp.Interop/CXRefQualifierKind.cs diff --git a/sources/ClangSharp/Interop/CXReparse_Flags.cs b/sources/ClangSharp.Interop/CXReparse_Flags.cs similarity index 100% rename from sources/ClangSharp/Interop/CXReparse_Flags.cs rename to sources/ClangSharp.Interop/CXReparse_Flags.cs diff --git a/sources/ClangSharp/Interop/CXResult.cs b/sources/ClangSharp.Interop/CXResult.cs similarity index 100% rename from sources/ClangSharp/Interop/CXResult.cs rename to sources/ClangSharp.Interop/CXResult.cs diff --git a/sources/ClangSharp/Interop/CXSaveError.cs b/sources/ClangSharp.Interop/CXSaveError.cs similarity index 100% rename from sources/ClangSharp/Interop/CXSaveError.cs rename to sources/ClangSharp.Interop/CXSaveError.cs diff --git a/sources/ClangSharp/Interop/CXSaveTranslationUnit_Flags.cs b/sources/ClangSharp.Interop/CXSaveTranslationUnit_Flags.cs similarity index 100% rename from sources/ClangSharp/Interop/CXSaveTranslationUnit_Flags.cs rename to sources/ClangSharp.Interop/CXSaveTranslationUnit_Flags.cs diff --git a/sources/ClangSharp/Interop/CXSourceLocation.cs b/sources/ClangSharp.Interop/CXSourceLocation.cs similarity index 100% rename from sources/ClangSharp/Interop/CXSourceLocation.cs rename to sources/ClangSharp.Interop/CXSourceLocation.cs diff --git a/sources/ClangSharp/Interop/CXSourceRange.cs b/sources/ClangSharp.Interop/CXSourceRange.cs similarity index 100% rename from sources/ClangSharp/Interop/CXSourceRange.cs rename to sources/ClangSharp.Interop/CXSourceRange.cs diff --git a/sources/ClangSharp/Interop/CXSourceRangeList.cs b/sources/ClangSharp.Interop/CXSourceRangeList.cs similarity index 100% rename from sources/ClangSharp/Interop/CXSourceRangeList.cs rename to sources/ClangSharp.Interop/CXSourceRangeList.cs diff --git a/sources/ClangSharp/Interop/CXString.cs b/sources/ClangSharp.Interop/CXString.cs similarity index 100% rename from sources/ClangSharp/Interop/CXString.cs rename to sources/ClangSharp.Interop/CXString.cs diff --git a/sources/ClangSharp/Interop/CXStringSet.cs b/sources/ClangSharp.Interop/CXStringSet.cs similarity index 100% rename from sources/ClangSharp/Interop/CXStringSet.cs rename to sources/ClangSharp.Interop/CXStringSet.cs diff --git a/sources/ClangSharp/Interop/CXSymbolRole.cs b/sources/ClangSharp.Interop/CXSymbolRole.cs similarity index 100% rename from sources/ClangSharp/Interop/CXSymbolRole.cs rename to sources/ClangSharp.Interop/CXSymbolRole.cs diff --git a/sources/ClangSharp/Interop/CXTLSKind.cs b/sources/ClangSharp.Interop/CXTLSKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTLSKind.cs rename to sources/ClangSharp.Interop/CXTLSKind.cs diff --git a/sources/ClangSharp/Interop/CXTUResourceUsage.cs b/sources/ClangSharp.Interop/CXTUResourceUsage.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTUResourceUsage.cs rename to sources/ClangSharp.Interop/CXTUResourceUsage.cs diff --git a/sources/ClangSharp/Interop/CXTUResourceUsageEntry.cs b/sources/ClangSharp.Interop/CXTUResourceUsageEntry.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTUResourceUsageEntry.cs rename to sources/ClangSharp.Interop/CXTUResourceUsageEntry.cs diff --git a/sources/ClangSharp/Interop/CXTUResourceUsageKind.cs b/sources/ClangSharp.Interop/CXTUResourceUsageKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTUResourceUsageKind.cs rename to sources/ClangSharp.Interop/CXTUResourceUsageKind.cs diff --git a/sources/ClangSharp/Interop/CXTargetInfoImpl.cs b/sources/ClangSharp.Interop/CXTargetInfoImpl.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTargetInfoImpl.cs rename to sources/ClangSharp.Interop/CXTargetInfoImpl.cs diff --git a/sources/ClangSharp/Interop/CXTemplateArgumentKind.cs b/sources/ClangSharp.Interop/CXTemplateArgumentKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTemplateArgumentKind.cs rename to sources/ClangSharp.Interop/CXTemplateArgumentKind.cs diff --git a/sources/ClangSharp/Interop/CXToken.cs b/sources/ClangSharp.Interop/CXToken.cs similarity index 100% rename from sources/ClangSharp/Interop/CXToken.cs rename to sources/ClangSharp.Interop/CXToken.cs diff --git a/sources/ClangSharp/Interop/CXTokenKind.cs b/sources/ClangSharp.Interop/CXTokenKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTokenKind.cs rename to sources/ClangSharp.Interop/CXTokenKind.cs diff --git a/sources/ClangSharp/Interop/CXTranslationUnitImpl.cs b/sources/ClangSharp.Interop/CXTranslationUnitImpl.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTranslationUnitImpl.cs rename to sources/ClangSharp.Interop/CXTranslationUnitImpl.cs diff --git a/sources/ClangSharp/Interop/CXTranslationUnit_Flags.cs b/sources/ClangSharp.Interop/CXTranslationUnit_Flags.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTranslationUnit_Flags.cs rename to sources/ClangSharp.Interop/CXTranslationUnit_Flags.cs diff --git a/sources/ClangSharp/Interop/CXType.cs b/sources/ClangSharp.Interop/CXType.cs similarity index 100% rename from sources/ClangSharp/Interop/CXType.cs rename to sources/ClangSharp.Interop/CXType.cs diff --git a/sources/ClangSharp/Interop/CXTypeKind.cs b/sources/ClangSharp.Interop/CXTypeKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTypeKind.cs rename to sources/ClangSharp.Interop/CXTypeKind.cs diff --git a/sources/ClangSharp/Interop/CXTypeLayoutError.cs b/sources/ClangSharp.Interop/CXTypeLayoutError.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTypeLayoutError.cs rename to sources/ClangSharp.Interop/CXTypeLayoutError.cs diff --git a/sources/ClangSharp/Interop/CXTypeNullabilityKind.cs b/sources/ClangSharp.Interop/CXTypeNullabilityKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXTypeNullabilityKind.cs rename to sources/ClangSharp.Interop/CXTypeNullabilityKind.cs diff --git a/sources/ClangSharp/Interop/CXUnsavedFile.cs b/sources/ClangSharp.Interop/CXUnsavedFile.cs similarity index 100% rename from sources/ClangSharp/Interop/CXUnsavedFile.cs rename to sources/ClangSharp.Interop/CXUnsavedFile.cs diff --git a/sources/ClangSharp/Interop/CXVersion.cs b/sources/ClangSharp.Interop/CXVersion.cs similarity index 100% rename from sources/ClangSharp/Interop/CXVersion.cs rename to sources/ClangSharp.Interop/CXVersion.cs diff --git a/sources/ClangSharp/Interop/CXVirtualFileOverlayImpl.cs b/sources/ClangSharp.Interop/CXVirtualFileOverlayImpl.cs similarity index 100% rename from sources/ClangSharp/Interop/CXVirtualFileOverlayImpl.cs rename to sources/ClangSharp.Interop/CXVirtualFileOverlayImpl.cs diff --git a/sources/ClangSharp/Interop/CXVisibilityKind.cs b/sources/ClangSharp.Interop/CXVisibilityKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CXVisibilityKind.cs rename to sources/ClangSharp.Interop/CXVisibilityKind.cs diff --git a/sources/ClangSharp/Interop/CXVisitorResult.cs b/sources/ClangSharp.Interop/CXVisitorResult.cs similarity index 100% rename from sources/ClangSharp/Interop/CXVisitorResult.cs rename to sources/ClangSharp.Interop/CXVisitorResult.cs diff --git a/sources/ClangSharp/Interop/CX_AtomicOperatorKind.cs b/sources/ClangSharp.Interop/CX_AtomicOperatorKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_AtomicOperatorKind.cs rename to sources/ClangSharp.Interop/CX_AtomicOperatorKind.cs diff --git a/sources/ClangSharp/Interop/CX_AttrKind.cs b/sources/ClangSharp.Interop/CX_AttrKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_AttrKind.cs rename to sources/ClangSharp.Interop/CX_AttrKind.cs diff --git a/sources/ClangSharp/Interop/CX_BinaryOperatorKind.cs b/sources/ClangSharp.Interop/CX_BinaryOperatorKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_BinaryOperatorKind.cs rename to sources/ClangSharp.Interop/CX_BinaryOperatorKind.cs diff --git a/sources/ClangSharp/Interop/CX_CXXAccessSpecifier.cs b/sources/ClangSharp.Interop/CX_CXXAccessSpecifier.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_CXXAccessSpecifier.cs rename to sources/ClangSharp.Interop/CX_CXXAccessSpecifier.cs diff --git a/sources/ClangSharp/Interop/CX_CapturedRegionKind.cs b/sources/ClangSharp.Interop/CX_CapturedRegionKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_CapturedRegionKind.cs rename to sources/ClangSharp.Interop/CX_CapturedRegionKind.cs diff --git a/sources/ClangSharp/Interop/CX_CastKind.cs b/sources/ClangSharp.Interop/CX_CastKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_CastKind.cs rename to sources/ClangSharp.Interop/CX_CastKind.cs diff --git a/sources/ClangSharp/Interop/CX_CharacterKind.cs b/sources/ClangSharp.Interop/CX_CharacterKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_CharacterKind.cs rename to sources/ClangSharp.Interop/CX_CharacterKind.cs diff --git a/sources/ClangSharp/Interop/CX_ConstructionKind.cs b/sources/ClangSharp.Interop/CX_ConstructionKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_ConstructionKind.cs rename to sources/ClangSharp.Interop/CX_ConstructionKind.cs diff --git a/sources/ClangSharp/Interop/CX_DeclKind.cs b/sources/ClangSharp.Interop/CX_DeclKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_DeclKind.cs rename to sources/ClangSharp.Interop/CX_DeclKind.cs diff --git a/sources/ClangSharp/Interop/CX_ExprDependence.cs b/sources/ClangSharp.Interop/CX_ExprDependence.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_ExprDependence.cs rename to sources/ClangSharp.Interop/CX_ExprDependence.cs diff --git a/sources/ClangSharp/Interop/CX_FloatingSemantics.cs b/sources/ClangSharp.Interop/CX_FloatingSemantics.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_FloatingSemantics.cs rename to sources/ClangSharp.Interop/CX_FloatingSemantics.cs diff --git a/sources/ClangSharp/Interop/CX_OverloadedOperatorKind.cs b/sources/ClangSharp.Interop/CX_OverloadedOperatorKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_OverloadedOperatorKind.cs rename to sources/ClangSharp.Interop/CX_OverloadedOperatorKind.cs diff --git a/sources/ClangSharp/Interop/CX_StmtClass.cs b/sources/ClangSharp.Interop/CX_StmtClass.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_StmtClass.cs rename to sources/ClangSharp.Interop/CX_StmtClass.cs diff --git a/sources/ClangSharp/Interop/CX_StorageClass.cs b/sources/ClangSharp.Interop/CX_StorageClass.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_StorageClass.cs rename to sources/ClangSharp.Interop/CX_StorageClass.cs diff --git a/sources/ClangSharp/Interop/CX_TemplateArgument.cs b/sources/ClangSharp.Interop/CX_TemplateArgument.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_TemplateArgument.cs rename to sources/ClangSharp.Interop/CX_TemplateArgument.cs diff --git a/sources/ClangSharp/Interop/CX_TemplateArgumentDependence.cs b/sources/ClangSharp.Interop/CX_TemplateArgumentDependence.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_TemplateArgumentDependence.cs rename to sources/ClangSharp.Interop/CX_TemplateArgumentDependence.cs diff --git a/sources/ClangSharp/Interop/CX_TemplateArgumentLoc.cs b/sources/ClangSharp.Interop/CX_TemplateArgumentLoc.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_TemplateArgumentLoc.cs rename to sources/ClangSharp.Interop/CX_TemplateArgumentLoc.cs diff --git a/sources/ClangSharp/Interop/CX_TemplateName.cs b/sources/ClangSharp.Interop/CX_TemplateName.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_TemplateName.cs rename to sources/ClangSharp.Interop/CX_TemplateName.cs diff --git a/sources/ClangSharp/Interop/CX_TemplateNameKind.cs b/sources/ClangSharp.Interop/CX_TemplateNameKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_TemplateNameKind.cs rename to sources/ClangSharp.Interop/CX_TemplateNameKind.cs diff --git a/sources/ClangSharp/Interop/CX_TemplateSpecializationKind.cs b/sources/ClangSharp.Interop/CX_TemplateSpecializationKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_TemplateSpecializationKind.cs rename to sources/ClangSharp.Interop/CX_TemplateSpecializationKind.cs diff --git a/sources/ClangSharp/Interop/CX_TypeClass.cs b/sources/ClangSharp.Interop/CX_TypeClass.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_TypeClass.cs rename to sources/ClangSharp.Interop/CX_TypeClass.cs diff --git a/sources/ClangSharp/Interop/CX_UnaryExprOrTypeTrait.cs b/sources/ClangSharp.Interop/CX_UnaryExprOrTypeTrait.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_UnaryExprOrTypeTrait.cs rename to sources/ClangSharp.Interop/CX_UnaryExprOrTypeTrait.cs diff --git a/sources/ClangSharp/Interop/CX_UnaryOperatorKind.cs b/sources/ClangSharp.Interop/CX_UnaryOperatorKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_UnaryOperatorKind.cs rename to sources/ClangSharp.Interop/CX_UnaryOperatorKind.cs diff --git a/sources/ClangSharp/Interop/CX_VariableCaptureKind.cs b/sources/ClangSharp.Interop/CX_VariableCaptureKind.cs similarity index 100% rename from sources/ClangSharp/Interop/CX_VariableCaptureKind.cs rename to sources/ClangSharp.Interop/CX_VariableCaptureKind.cs diff --git a/sources/ClangSharp.Interop/ClangSharp.Interop.csproj b/sources/ClangSharp.Interop/ClangSharp.Interop.csproj new file mode 100644 index 00000000..8ce46c21 --- /dev/null +++ b/sources/ClangSharp.Interop/ClangSharp.Interop.csproj @@ -0,0 +1,28 @@ + + + + + net5.0;netcoreapp3.1;netstandard2.0 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sources/ClangSharp/Interop.Extensions/CXClientData.cs b/sources/ClangSharp.Interop/Extensions/CXClientData.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXClientData.cs rename to sources/ClangSharp.Interop/Extensions/CXClientData.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXCodeCompleteResults.cs b/sources/ClangSharp.Interop/Extensions/CXCodeCompleteResults.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXCodeCompleteResults.cs rename to sources/ClangSharp.Interop/Extensions/CXCodeCompleteResults.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXComment.cs b/sources/ClangSharp.Interop/Extensions/CXComment.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXComment.cs rename to sources/ClangSharp.Interop/Extensions/CXComment.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXCompilationDatabase.cs b/sources/ClangSharp.Interop/Extensions/CXCompilationDatabase.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXCompilationDatabase.cs rename to sources/ClangSharp.Interop/Extensions/CXCompilationDatabase.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXCompileCommand.cs b/sources/ClangSharp.Interop/Extensions/CXCompileCommand.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXCompileCommand.cs rename to sources/ClangSharp.Interop/Extensions/CXCompileCommand.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXCompileCommands.cs b/sources/ClangSharp.Interop/Extensions/CXCompileCommands.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXCompileCommands.cs rename to sources/ClangSharp.Interop/Extensions/CXCompileCommands.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXCompletionString.cs b/sources/ClangSharp.Interop/Extensions/CXCompletionString.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXCompletionString.cs rename to sources/ClangSharp.Interop/Extensions/CXCompletionString.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXCursor.cs b/sources/ClangSharp.Interop/Extensions/CXCursor.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXCursor.cs rename to sources/ClangSharp.Interop/Extensions/CXCursor.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXCursorSet.cs b/sources/ClangSharp.Interop/Extensions/CXCursorSet.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXCursorSet.cs rename to sources/ClangSharp.Interop/Extensions/CXCursorSet.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXDiagnostic.cs b/sources/ClangSharp.Interop/Extensions/CXDiagnostic.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXDiagnostic.cs rename to sources/ClangSharp.Interop/Extensions/CXDiagnostic.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXDiagnosticSet.cs b/sources/ClangSharp.Interop/Extensions/CXDiagnosticSet.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXDiagnosticSet.cs rename to sources/ClangSharp.Interop/Extensions/CXDiagnosticSet.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXEvalResult.cs b/sources/ClangSharp.Interop/Extensions/CXEvalResult.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXEvalResult.cs rename to sources/ClangSharp.Interop/Extensions/CXEvalResult.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXFile.cs b/sources/ClangSharp.Interop/Extensions/CXFile.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXFile.cs rename to sources/ClangSharp.Interop/Extensions/CXFile.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxAttrInfo.cs b/sources/ClangSharp.Interop/Extensions/CXIdxAttrInfo.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxAttrInfo.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxAttrInfo.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxClientASTFile.cs b/sources/ClangSharp.Interop/Extensions/CXIdxClientASTFile.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxClientASTFile.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxClientASTFile.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxClientContainer.cs b/sources/ClangSharp.Interop/Extensions/CXIdxClientContainer.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxClientContainer.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxClientContainer.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxClientEntity.cs b/sources/ClangSharp.Interop/Extensions/CXIdxClientEntity.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxClientEntity.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxClientEntity.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxClientFile.cs b/sources/ClangSharp.Interop/Extensions/CXIdxClientFile.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxClientFile.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxClientFile.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxContainerInfo.cs b/sources/ClangSharp.Interop/Extensions/CXIdxContainerInfo.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxContainerInfo.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxContainerInfo.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxDeclInfo.cs b/sources/ClangSharp.Interop/Extensions/CXIdxDeclInfo.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxDeclInfo.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxDeclInfo.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxEntityInfo.cs b/sources/ClangSharp.Interop/Extensions/CXIdxEntityInfo.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxEntityInfo.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxEntityInfo.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIdxLoc.cs b/sources/ClangSharp.Interop/Extensions/CXIdxLoc.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIdxLoc.cs rename to sources/ClangSharp.Interop/Extensions/CXIdxLoc.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIndex.cs b/sources/ClangSharp.Interop/Extensions/CXIndex.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIndex.cs rename to sources/ClangSharp.Interop/Extensions/CXIndex.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXIndexAction.cs b/sources/ClangSharp.Interop/Extensions/CXIndexAction.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXIndexAction.cs rename to sources/ClangSharp.Interop/Extensions/CXIndexAction.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXModule.cs b/sources/ClangSharp.Interop/Extensions/CXModule.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXModule.cs rename to sources/ClangSharp.Interop/Extensions/CXModule.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXModuleMapDescriptor.cs b/sources/ClangSharp.Interop/Extensions/CXModuleMapDescriptor.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXModuleMapDescriptor.cs rename to sources/ClangSharp.Interop/Extensions/CXModuleMapDescriptor.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXPlatformAvailability.cs b/sources/ClangSharp.Interop/Extensions/CXPlatformAvailability.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXPlatformAvailability.cs rename to sources/ClangSharp.Interop/Extensions/CXPlatformAvailability.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXPrintingPolicy.cs b/sources/ClangSharp.Interop/Extensions/CXPrintingPolicy.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXPrintingPolicy.cs rename to sources/ClangSharp.Interop/Extensions/CXPrintingPolicy.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXRemapping.cs b/sources/ClangSharp.Interop/Extensions/CXRemapping.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXRemapping.cs rename to sources/ClangSharp.Interop/Extensions/CXRemapping.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXSourceLocation.cs b/sources/ClangSharp.Interop/Extensions/CXSourceLocation.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXSourceLocation.cs rename to sources/ClangSharp.Interop/Extensions/CXSourceLocation.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXSourceRange.cs b/sources/ClangSharp.Interop/Extensions/CXSourceRange.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXSourceRange.cs rename to sources/ClangSharp.Interop/Extensions/CXSourceRange.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXSourceRangeList.cs b/sources/ClangSharp.Interop/Extensions/CXSourceRangeList.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXSourceRangeList.cs rename to sources/ClangSharp.Interop/Extensions/CXSourceRangeList.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXString.cs b/sources/ClangSharp.Interop/Extensions/CXString.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXString.cs rename to sources/ClangSharp.Interop/Extensions/CXString.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXStringSet.cs b/sources/ClangSharp.Interop/Extensions/CXStringSet.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXStringSet.cs rename to sources/ClangSharp.Interop/Extensions/CXStringSet.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXTUResourceUsage.cs b/sources/ClangSharp.Interop/Extensions/CXTUResourceUsage.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXTUResourceUsage.cs rename to sources/ClangSharp.Interop/Extensions/CXTUResourceUsage.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXTUResourceUsageEntry.cs b/sources/ClangSharp.Interop/Extensions/CXTUResourceUsageEntry.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXTUResourceUsageEntry.cs rename to sources/ClangSharp.Interop/Extensions/CXTUResourceUsageEntry.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXTargetInfo.cs b/sources/ClangSharp.Interop/Extensions/CXTargetInfo.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXTargetInfo.cs rename to sources/ClangSharp.Interop/Extensions/CXTargetInfo.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXToken.cs b/sources/ClangSharp.Interop/Extensions/CXToken.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXToken.cs rename to sources/ClangSharp.Interop/Extensions/CXToken.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXTranslationUnit.cs b/sources/ClangSharp.Interop/Extensions/CXTranslationUnit.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXTranslationUnit.cs rename to sources/ClangSharp.Interop/Extensions/CXTranslationUnit.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXType.cs b/sources/ClangSharp.Interop/Extensions/CXType.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXType.cs rename to sources/ClangSharp.Interop/Extensions/CXType.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXUnsavedFile.cs b/sources/ClangSharp.Interop/Extensions/CXUnsavedFile.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXUnsavedFile.cs rename to sources/ClangSharp.Interop/Extensions/CXUnsavedFile.cs diff --git a/sources/ClangSharp/Interop.Extensions/CXVirtualFileOverlay.cs b/sources/ClangSharp.Interop/Extensions/CXVirtualFileOverlay.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CXVirtualFileOverlay.cs rename to sources/ClangSharp.Interop/Extensions/CXVirtualFileOverlay.cs diff --git a/sources/ClangSharp/Interop.Extensions/CX_TemplateArgument.cs b/sources/ClangSharp.Interop/Extensions/CX_TemplateArgument.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CX_TemplateArgument.cs rename to sources/ClangSharp.Interop/Extensions/CX_TemplateArgument.cs diff --git a/sources/ClangSharp/Interop.Extensions/CX_TemplateArgumentLoc.cs b/sources/ClangSharp.Interop/Extensions/CX_TemplateArgumentLoc.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CX_TemplateArgumentLoc.cs rename to sources/ClangSharp.Interop/Extensions/CX_TemplateArgumentLoc.cs diff --git a/sources/ClangSharp/Interop.Extensions/CX_TemplateName.cs b/sources/ClangSharp.Interop/Extensions/CX_TemplateName.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/CX_TemplateName.cs rename to sources/ClangSharp.Interop/Extensions/CX_TemplateName.cs diff --git a/sources/ClangSharp/Interop.Extensions/clang.ResolveLibrary.cs b/sources/ClangSharp.Interop/Extensions/clang.ResolveLibrary.cs similarity index 100% rename from sources/ClangSharp/Interop.Extensions/clang.ResolveLibrary.cs rename to sources/ClangSharp.Interop/Extensions/clang.ResolveLibrary.cs diff --git a/sources/ClangSharp/Interop/IndexerCallbacks.cs b/sources/ClangSharp.Interop/IndexerCallbacks.cs similarity index 100% rename from sources/ClangSharp/Interop/IndexerCallbacks.cs rename to sources/ClangSharp.Interop/IndexerCallbacks.cs diff --git a/sources/ClangSharp/Internals/Index.cs b/sources/ClangSharp.Interop/Internals/Index.cs similarity index 100% rename from sources/ClangSharp/Internals/Index.cs rename to sources/ClangSharp.Interop/Internals/Index.cs diff --git a/sources/ClangSharp/Internals/MarshaledString.cs b/sources/ClangSharp.Interop/Internals/MarshaledString.cs similarity index 96% rename from sources/ClangSharp/Internals/MarshaledString.cs rename to sources/ClangSharp.Interop/Internals/MarshaledString.cs index efabc34d..0ae567db 100644 --- a/sources/ClangSharp/Internals/MarshaledString.cs +++ b/sources/ClangSharp.Interop/Internals/MarshaledString.cs @@ -6,7 +6,7 @@ namespace ClangSharp.Interop { - internal unsafe struct MarshaledString : IDisposable + public unsafe struct MarshaledString : IDisposable { public MarshaledString(string input) { diff --git a/sources/ClangSharp/Internals/MarshaledStringArray.cs b/sources/ClangSharp.Interop/Internals/MarshaledStringArray.cs similarity index 96% rename from sources/ClangSharp/Internals/MarshaledStringArray.cs rename to sources/ClangSharp.Interop/Internals/MarshaledStringArray.cs index cdedfcb1..d46b2a0a 100644 --- a/sources/ClangSharp/Internals/MarshaledStringArray.cs +++ b/sources/ClangSharp.Interop/Internals/MarshaledStringArray.cs @@ -4,7 +4,7 @@ namespace ClangSharp.Interop { - internal unsafe ref struct MarshaledStringArray + public unsafe ref struct MarshaledStringArray { private MarshaledString[] _values; diff --git a/sources/ClangSharp/Internals/NativeTypeNameAttribute.cs b/sources/ClangSharp.Interop/Internals/NativeTypeNameAttribute.cs similarity index 100% rename from sources/ClangSharp/Internals/NativeTypeNameAttribute.cs rename to sources/ClangSharp.Interop/Internals/NativeTypeNameAttribute.cs diff --git a/sources/ClangSharp/Internals/Range.cs b/sources/ClangSharp.Interop/Internals/Range.cs similarity index 100% rename from sources/ClangSharp/Internals/Range.cs rename to sources/ClangSharp.Interop/Internals/Range.cs diff --git a/sources/ClangSharp/Internals/SpanExtensions.cs b/sources/ClangSharp.Interop/Internals/SpanExtensions.cs similarity index 97% rename from sources/ClangSharp/Internals/SpanExtensions.cs rename to sources/ClangSharp.Interop/Internals/SpanExtensions.cs index a0349234..a7939e82 100644 --- a/sources/ClangSharp/Internals/SpanExtensions.cs +++ b/sources/ClangSharp.Interop/Internals/SpanExtensions.cs @@ -5,7 +5,7 @@ namespace ClangSharp.Interop { - internal static unsafe class SpanExtensions + public static unsafe class SpanExtensions { public static string AsString(this Span self) => AsString((ReadOnlySpan)self); diff --git a/sources/ClangSharp/Interop/clang.cs b/sources/ClangSharp.Interop/clang.cs similarity index 100% rename from sources/ClangSharp/Interop/clang.cs rename to sources/ClangSharp.Interop/clang.cs diff --git a/sources/ClangSharp/Interop/clangsharp.cs b/sources/ClangSharp.Interop/clangsharp.cs similarity index 100% rename from sources/ClangSharp/Interop/clangsharp.cs rename to sources/ClangSharp.Interop/clangsharp.cs diff --git a/sources/ClangSharp/ClangSharp.csproj b/sources/ClangSharp/ClangSharp.csproj index 410c085d..f74af481 100644 --- a/sources/ClangSharp/ClangSharp.csproj +++ b/sources/ClangSharp/ClangSharp.csproj @@ -5,24 +5,8 @@ net5.0;netcoreapp3.1;netstandard2.0 - - - - - - - - - - - - - - - - - + From 6b1093344cd2c8ffd010719f06e68fad11aae6f3 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Fri, 28 May 2021 00:29:58 -0700 Subject: [PATCH 3/4] Enable long file paths before cloning win32metadata --- scripts/build.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 0d473013..82bb8f84 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -86,6 +86,7 @@ function Test-Win32Metadata { $win32MetadataDir = Join-Path -Path $ArtifactsDir -ChildPath "win32metadata" if (!(Test-Path -Path "$win32MetadataDir")) { + & git config --system core.longpaths true & git clone "https://github.com/microsoft/win32metadata" "$win32MetadataDir" } pushd "$win32MetadataDir" From 94dd71065eb5392bf8fff5b60de5fcb5fe22e43f Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Fri, 28 May 2021 01:21:04 -0700 Subject: [PATCH 4/4] Add ClangSharpPInvokeGenerator to the path when testing win32metadata --- scripts/build.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 82bb8f84..254ca1a1 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -99,10 +99,9 @@ function Test-Win32Metadata { & git submodule update --init --recursive $win32MetadataToolsDir = Join-Path -Path $win32MetadataDir -ChildPath "tools" - $clangSharpPInvokeGeneratorOutputDir = Join-Path -Path $ArtifactsDir -ChildPath "bin\sources\ClangSharpPInvokeGenerator\$configuration\netcoreapp3.1" - $clangSharpPInvokeGeneratorBinaries = (Get-ChildItem -Path "$clangSharpPInvokeGeneratorOutputDir" -File).FullName - Copy-Item -Path $clangSharpPInvokeGeneratorBinaries -Destination "$win32MetadataToolsDir" + $clangSharpPInvokeGeneratorOutputDir = Join-Path -Path $ArtifactsDir -ChildPath "bin\sources\ClangSharpPInvokeGenerator\$configuration\netcoreapp3.1" + $env:PATH="$clangSharpPInvokeGeneratorOutputDir;$env:PATH" $generateMetadataSourcePs1 = Join-Path -Path $win32MetadataDir -ChildPath "scripts\GenerateMetadataSource.ps1" & "$generateMetadataSourcePs1"