diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ed9517c..1d215dc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,11 +48,11 @@ jobs: ./artifacts/pkg/**/* ./artifacts/tst/**/* if-no-files-found: error - macos-x64: + macos-arm64: runs-on: ${{ matrix.os }}-latest strategy: matrix: - architecture: [ x64 ] + architecture: [ arm64 ] configuration: [ debug, release ] os: [ macos ] steps: @@ -153,7 +153,7 @@ jobs: publish-nightlies-azure: runs-on: ubuntu-latest if: ${{ github.event_name == 'push' }} - needs: [ windows-x64, linux-x64, macos-x64, sign-nuget-preview, sign-nuget-release ] + needs: [ windows-x64, linux-x64, macos-arm64, sign-nuget-preview, sign-nuget-release ] steps: - uses: actions/download-artifact@v4 with: @@ -169,7 +169,7 @@ jobs: publish-nightlies-github: runs-on: ubuntu-latest if: false - needs: [ windows-x64, linux-x64, macos-x64, sign-nuget-preview, sign-nuget-release ] + needs: [ windows-x64, linux-x64, macos-arm64, sign-nuget-preview, sign-nuget-release ] steps: - uses: actions/download-artifact@v4 with: diff --git a/CMakeLists.txt b/CMakeLists.txt index 047dec3d..8175a78b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.13) -project(ClangSharp VERSION 18.1.3) +project(ClangSharp VERSION 20.1.2) set(CMAKE_CXX_STANDARD 17) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) diff --git a/Directory.Build.props b/Directory.Build.props index 39a8f51d..4a822fa1 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -47,7 +47,7 @@ 17.0.0 ClangSharp ClangSharp - 18.1.0.4 + 20.1.2 rc1 pr diff --git a/Directory.Packages.props b/Directory.Packages.props index 6704befd..0c1271a9 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -12,11 +12,11 @@ - - - - - + + + + + diff --git a/README.md b/README.md index 795e325a..570848c8 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ A convenience package which provides the native libClang library for several pla A helper package which exposes many Clang APIs missing from libClang is provided here: https://www.nuget.org/packages/libClangSharp -**NOTE:** libclang and libClangSharp are meta-packages which point to the platform-specific runtime packages ([e.g.](https://www.nuget.org/packages/libClangSharp.runtime.win-x64/18.1.3); see others owned by [tannergooding](https://www.nuget.org/profiles/tannergooding)). Several manual steps may be required to use them, see discussion in [#46](https://github.com/dotnet/ClangSharp/issues/46) and [#118](https://github.com/dotnet/ClangSharp/issues/118). +**NOTE:** libclang and libClangSharp are meta-packages which point to the platform-specific runtime packages ([e.g.](https://www.nuget.org/packages/libClangSharp.runtime.win-x64/20.1.2); see others owned by [tannergooding](https://www.nuget.org/profiles/tannergooding)). Several manual steps may be required to use them, see discussion in [#46](https://github.com/dotnet/ClangSharp/issues/46) and [#118](https://github.com/dotnet/ClangSharp/issues/118). Nightly packages are available via the NuGet Feed URL: https://pkgs.clangsharp.dev/index.json @@ -77,7 +77,7 @@ To successfully build `libClangSharp` you must first build Clang (https://clang. The process done on Windows is roughly: ```cmd -git clone --single-branch --branch llvmorg-18.1.3 https://github.com/llvm/llvm-project +git clone --single-branch --branch llvmorg-20.1.2 https://github.com/llvm/llvm-project cd llvm-project mkdir artifacts/bin cd artifacts/bin @@ -101,7 +101,7 @@ You can then open `libClangSharp.sln` in Visual Studio, change the configuration The process done on Linux is roughly: ```bash -git clone --single-branch --branch llvmorg-18.1.3 https://github.com/llvm/llvm-project +git clone --single-branch --branch llvmorg-20.1.2 https://github.com/llvm/llvm-project cd llvm-project mkdir -p artifacts/bin cd artifacts/bin @@ -133,7 +133,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 18.1.0 +dotnet tool install --global ClangSharpPInvokeGenerator --version 20.1.2 ClangSharpPInvokeGenerator @generate.rsp ``` 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 3396ab28..460b0606 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 - 18.1.3.1 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.linux-x64/libClangSharp.runtime.linux-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.linux-x64/libClangSharp.runtime.linux-x64.nuspec index 4a4dff09..1ea7b854 100644 --- a/packages/libClangSharp/libClangSharp.runtime.linux-x64/libClangSharp.runtime.linux-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.linux-x64/libClangSharp.runtime.linux-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.linux-x64 - 18.1.3.1 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.osx-arm64/libClangSharp.runtime.osx-arm64.nuspec b/packages/libClangSharp/libClangSharp.runtime.osx-arm64/libClangSharp.runtime.osx-arm64.nuspec index 640f6a12..1b64e045 100644 --- a/packages/libClangSharp/libClangSharp.runtime.osx-arm64/libClangSharp.runtime.osx-arm64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.osx-arm64/libClangSharp.runtime.osx-arm64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.osx-arm64 - 18.1.3.1 + 20.1.2 .NET Foundation and Contributors .NET Foundation 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 deleted file mode 100644 index 42f41600..00000000 --- a/packages/libClangSharp/libClangSharp.runtime.osx-x64/libClangSharp.runtime.osx-x64.nuspec +++ /dev/null @@ -1,20 +0,0 @@ - - - - libClangSharp.runtime.osx-x64 - 18.1.3.1 - .NET Foundation and Contributors - .NET Foundation and Contributors - true - MIT - https://github.com/dotnet/clangsharp - osx x64 native library for libClangSharp. - Copyright © .NET Foundation 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 index f3c2fda8..e133ee34 100644 --- a/packages/libClangSharp/libClangSharp.runtime.win-arm64/libClangSharp.runtime.win-arm64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.win-arm64/libClangSharp.runtime.win-arm64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.win-arm64 - 18.1.3.1 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true 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 728a54bd..19c92c46 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 - 18.1.3.1 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp/libClangSharp.nuspec b/packages/libClangSharp/libClangSharp/libClangSharp.nuspec index abc1c087..a74da320 100644 --- a/packages/libClangSharp/libClangSharp/libClangSharp.nuspec +++ b/packages/libClangSharp/libClangSharp/libClangSharp.nuspec @@ -2,7 +2,7 @@ libClangSharp - 18.1.3.1 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp/runtime.json b/packages/libClangSharp/libClangSharp/runtime.json index 0d562838..1e1c054a 100644 --- a/packages/libClangSharp/libClangSharp/runtime.json +++ b/packages/libClangSharp/libClangSharp/runtime.json @@ -2,32 +2,27 @@ "runtimes": { "linux-arm64": { "libClangSharp": { - "libClangSharp.runtime.linux-arm64": "18.1.3.1" + "libClangSharp.runtime.linux-arm64": "20.1.2" } }, "linux-x64": { "libClangSharp": { - "libClangSharp.runtime.linux-x64": "18.1.3.1" + "libClangSharp.runtime.linux-x64": "20.1.2" } }, "osx-arm64": { "libClangSharp": { - "libClangSharp.runtime.osx-arm64": "18.1.3.1" - } - }, - "osx-x64": { - "libClangSharp": { - "libClangSharp.runtime.osx-x64": "18.1.3.1" + "libClangSharp.runtime.osx-arm64": "20.1.2" } }, "win-arm64": { "libClangSharp": { - "libClangSharp.runtime.win-arm64": "18.1.3.1" + "libClangSharp.runtime.win-arm64": "20.1.2" } }, "win-x64": { "libClangSharp": { - "libClangSharp.runtime.win-x64": "18.1.3.1" + "libClangSharp.runtime.win-x64": "20.1.2" } } } 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 503bd138..8184b9c1 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,7 +2,7 @@ libclang.runtime.linux-arm64 - 18.1.3.2 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp linux arm64 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang.runtime.linux-x64/libclang.runtime.linux-x64.nuspec b/packages/libclang/libclang.runtime.linux-x64/libclang.runtime.linux-x64.nuspec index 3c428c7a..dc6fce53 100644 --- a/packages/libclang/libclang.runtime.linux-x64/libclang.runtime.linux-x64.nuspec +++ b/packages/libclang/libclang.runtime.linux-x64/libclang.runtime.linux-x64.nuspec @@ -2,7 +2,7 @@ libclang.runtime.linux-x64 - 18.1.3.2 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp linux x64 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang.runtime.osx-arm64/libclang.runtime.osx-arm64.nuspec b/packages/libclang/libclang.runtime.osx-arm64/libclang.runtime.osx-arm64.nuspec index 8baa43b3..e6221d5d 100644 --- a/packages/libclang/libclang.runtime.osx-arm64/libclang.runtime.osx-arm64.nuspec +++ b/packages/libclang/libclang.runtime.osx-arm64/libclang.runtime.osx-arm64.nuspec @@ -2,7 +2,7 @@ libclang.runtime.osx-arm64 - 18.1.3 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp osx arm64 native library for libclang. 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 deleted file mode 100644 index 79dd4e31..00000000 --- a/packages/libclang/libclang.runtime.osx-x64/libclang.runtime.osx-x64.nuspec +++ /dev/null @@ -1,19 +0,0 @@ - - - - libclang.runtime.osx-x64 - 18.1.3 - .NET Foundation and Contributors - .NET Foundation and Contributors - true - Apache-2.0 WITH LLVM-exception - https://github.com/dotnet/clangsharp - osx x64 native library for libclang. - Copyright © LLVM Project - - - - - - - diff --git a/packages/libclang/libclang.runtime.win-arm64/libclang.runtime.win-arm64.nuspec b/packages/libclang/libclang.runtime.win-arm64/libclang.runtime.win-arm64.nuspec index 2facf612..88e92023 100644 --- a/packages/libclang/libclang.runtime.win-arm64/libclang.runtime.win-arm64.nuspec +++ b/packages/libclang/libclang.runtime.win-arm64/libclang.runtime.win-arm64.nuspec @@ -2,7 +2,7 @@ libclang.runtime.win-arm64 - 18.1.3.1 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp 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 df20a858..a032f9d0 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,7 +2,7 @@ libclang.runtime.win-x64 - 18.1.3.2 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp win x64 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang/libclang.nuspec b/packages/libclang/libclang/libclang.nuspec index 17113d9e..087f647d 100644 --- a/packages/libclang/libclang/libclang.nuspec +++ b/packages/libclang/libclang/libclang.nuspec @@ -2,7 +2,7 @@ libclang - 18.1.3.2 + 20.1.2 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp Multi-platform native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang/runtime.json b/packages/libclang/libclang/runtime.json index 6ef3f32b..b4d12cee 100644 --- a/packages/libclang/libclang/runtime.json +++ b/packages/libclang/libclang/runtime.json @@ -2,32 +2,27 @@ "runtimes": { "linux-arm64": { "libclang": { - "libclang.runtime.linux-arm64": "18.1.3.2" + "libclang.runtime.linux-arm64": "20.1.2" } }, "linux-x64": { "libclang": { - "libclang.runtime.linux-x64": "18.1.3.2" + "libclang.runtime.linux-x64": "20.1.2" } }, "osx-arm64": { "libclang": { - "libclang.runtime.osx-arm64": "18.1.3" - } - }, - "osx-x64": { - "libclang": { - "libclang.runtime.osx-x64": "18.1.3" + "libclang.runtime.osx-arm64": "20.1.2" } }, "win-arm64": { "libclang": { - "libclang.runtime.win-arm64": "18.1.3.1" + "libclang.runtime.win-arm64": "20.1.2" } }, "win-x64": { "libclang": { - "libclang.runtime.win-x64": "18.1.3.2" + "libclang.runtime.win-x64": "20.1.2" } } } diff --git a/sources/ClangSharp.Interop/Extensions/CXCursor.cs b/sources/ClangSharp.Interop/Extensions/CXCursor.cs index 11963608..e767d1e1 100644 --- a/sources/ClangSharp.Interop/Extensions/CXCursor.cs +++ b/sources/ClangSharp.Interop/Extensions/CXCursor.cs @@ -61,7 +61,9 @@ public readonly string AttrKindSpelling return AttrKind switch { CX_AttrKind_Invalid => "Invalid", CX_AttrKind_AddressSpace => "AddressSpace", + CX_AttrKind_Allocating => "Allocating", CX_AttrKind_AnnotateType => "AnnotateType", + CX_AttrKind_ArmAgnostic => "ArmAgnostic", CX_AttrKind_ArmIn => "ArmIn", CX_AttrKind_ArmInOut => "ArmInOut", CX_AttrKind_ArmMveStrictPolymorphism => "ArmMveStrictPolymorphism", @@ -70,10 +72,16 @@ public readonly string AttrKindSpelling CX_AttrKind_ArmStreaming => "ArmStreaming", CX_AttrKind_ArmStreamingCompatible => "ArmStreamingCompatible", CX_AttrKind_BTFTypeTag => "BTFTypeTag", + CX_AttrKind_Blocking => "Blocking", CX_AttrKind_CmseNSCall => "CmseNSCall", + CX_AttrKind_HLSLContainedType => "HLSLContainedType", CX_AttrKind_HLSLGroupSharedAddressSpace => "HLSLGroupSharedAddressSpace", - CX_AttrKind_HLSLParamModifier => "HLSLParamModifier", + CX_AttrKind_HLSLROV => "HLSLROV", + CX_AttrKind_HLSLRawBuffer => "HLSLRawBuffer", + CX_AttrKind_HLSLResourceClass => "HLSLResourceClass", CX_AttrKind_NoDeref => "NoDeref", + CX_AttrKind_NonAllocating => "NonAllocating", + CX_AttrKind_NonBlocking => "NonBlocking", CX_AttrKind_ObjCGC => "ObjCGC", CX_AttrKind_ObjCInertUnsafeUnretained => "ObjCInertUnsafeUnretained", CX_AttrKind_ObjCKindOf => "ObjCKindOf", @@ -89,12 +97,14 @@ public readonly string AttrKindSpelling CX_AttrKind_SPtr => "SPtr", CX_AttrKind_TypeNonNull => "TypeNonNull", CX_AttrKind_TypeNullUnspecified => "TypeNullUnspecified", - CX_AttrKind_TypeNullable => "TypeNullable", CX_AttrKind_TypeNullableResult => "TypeNullableResult", CX_AttrKind_UPtr => "UPtr", CX_AttrKind_WebAssemblyFuncref => "WebAssemblyFuncref", + CX_AttrKind_CXXAssume => "CXXAssume", CX_AttrKind_CodeAlign => "CodeAlign", CX_AttrKind_FallThrough => "FallThrough", + CX_AttrKind_HLSLControlFlowHint => "HLSLControlFlowHint", + CX_AttrKind_HLSLLoopHint => "HLSLLoopHint", CX_AttrKind_Likely => "Likely", CX_AttrKind_MustTail => "MustTail", CX_AttrKind_OpenCLUnrollHint => "OpenCLUnrollHint", @@ -109,9 +119,12 @@ public readonly string AttrKindSpelling CX_AttrKind_AcquireHandle => "AcquireHandle", CX_AttrKind_AnyX86NoCfCheck => "AnyX86NoCfCheck", CX_AttrKind_CDecl => "CDecl", + CX_AttrKind_CountedBy => "CountedBy", + CX_AttrKind_CountedByOrNull => "CountedByOrNull", CX_AttrKind_FastCall => "FastCall", CX_AttrKind_IntelOclBicc => "IntelOclBicc", CX_AttrKind_LifetimeBound => "LifetimeBound", + CX_AttrKind_LifetimeCaptureBy => "LifetimeCaptureBy", CX_AttrKind_M68kRTD => "M68kRTD", CX_AttrKind_MSABI => "MSABI", CX_AttrKind_NSReturnsRetained => "NSReturnsRetained", @@ -120,18 +133,25 @@ public readonly string AttrKindSpelling CX_AttrKind_Pcs => "Pcs", CX_AttrKind_PreserveAll => "PreserveAll", CX_AttrKind_PreserveMost => "PreserveMost", + CX_AttrKind_PreserveNone => "PreserveNone", + CX_AttrKind_RISCVVectorCC => "RISCVVectorCC", CX_AttrKind_RegCall => "RegCall", + CX_AttrKind_SizedBy => "SizedBy", + CX_AttrKind_SizedByOrNull => "SizedByOrNull", CX_AttrKind_StdCall => "StdCall", CX_AttrKind_SwiftAsyncCall => "SwiftAsyncCall", + CX_AttrKind_SwiftAttr => "SwiftAttr", CX_AttrKind_SwiftCall => "SwiftCall", CX_AttrKind_SysVABI => "SysVABI", CX_AttrKind_ThisCall => "ThisCall", + CX_AttrKind_TypeNullable => "TypeNullable", CX_AttrKind_VectorCall => "VectorCall", + CX_AttrKind_Annotate => "Annotate", + CX_AttrKind_HLSLParamModifier => "HLSLParamModifier", CX_AttrKind_SwiftAsyncContext => "SwiftAsyncContext", CX_AttrKind_SwiftContext => "SwiftContext", CX_AttrKind_SwiftErrorResult => "SwiftErrorResult", CX_AttrKind_SwiftIndirectResult => "SwiftIndirectResult", - CX_AttrKind_Annotate => "Annotate", CX_AttrKind_CFConsumed => "CFConsumed", CX_AttrKind_CarriesDependency => "CarriesDependency", CX_AttrKind_NSConsumed => "NSConsumed", @@ -140,9 +160,13 @@ public readonly string AttrKindSpelling CX_AttrKind_PassObjectSize => "PassObjectSize", CX_AttrKind_ReleaseHandle => "ReleaseHandle", CX_AttrKind_UseHandle => "UseHandle", + CX_AttrKind_HLSLPackOffset => "HLSLPackOffset", CX_AttrKind_HLSLSV_DispatchThreadID => "HLSLSV_DispatchThreadID", + CX_AttrKind_HLSLSV_GroupID => "HLSLSV_GroupID", CX_AttrKind_HLSLSV_GroupIndex => "HLSLSV_GroupIndex", + CX_AttrKind_HLSLSV_GroupThreadID => "HLSLSV_GroupThreadID", CX_AttrKind_AMDGPUFlatWorkGroupSize => "AMDGPUFlatWorkGroupSize", + CX_AttrKind_AMDGPUMaxNumWorkGroups => "AMDGPUMaxNumWorkGroups", CX_AttrKind_AMDGPUNumSGPR => "AMDGPUNumSGPR", CX_AttrKind_AMDGPUNumVGPR => "AMDGPUNumVGPR", CX_AttrKind_AMDGPUWavesPerEU => "AMDGPUWavesPerEU", @@ -172,9 +196,9 @@ public readonly string AttrKindSpelling CX_AttrKind_AssertExclusiveLock => "AssertExclusiveLock", CX_AttrKind_AssertSharedLock => "AssertSharedLock", CX_AttrKind_AssumeAligned => "AssumeAligned", - CX_AttrKind_Assumption => "Assumption", CX_AttrKind_Availability => "Availability", CX_AttrKind_AvailableOnlyInDefaultEvalMethod => "AvailableOnlyInDefaultEvalMethod", + CX_AttrKind_BPFFastCall => "BPFFastCall", CX_AttrKind_BPFPreserveAccessIndex => "BPFPreserveAccessIndex", CX_AttrKind_BPFPreserveStaticOffset => "BPFPreserveStaticOffset", CX_AttrKind_BTFDeclTag => "BTFDeclTag", @@ -194,6 +218,7 @@ public readonly string AttrKindSpelling CX_AttrKind_CUDADeviceBuiltinSurfaceType => "CUDADeviceBuiltinSurfaceType", CX_AttrKind_CUDADeviceBuiltinTextureType => "CUDADeviceBuiltinTextureType", CX_AttrKind_CUDAGlobal => "CUDAGlobal", + CX_AttrKind_CUDAGridConstant => "CUDAGridConstant", CX_AttrKind_CUDAHost => "CUDAHost", CX_AttrKind_CUDAInvalidTarget => "CUDAInvalidTarget", CX_AttrKind_CUDALaunchBounds => "CUDALaunchBounds", @@ -204,6 +229,7 @@ public readonly string AttrKindSpelling CX_AttrKind_Capability => "Capability", CX_AttrKind_CapturedRecord => "CapturedRecord", CX_AttrKind_Cleanup => "Cleanup", + CX_AttrKind_ClspvLibclcBuiltin => "ClspvLibclcBuiltin", CX_AttrKind_CmseNSEntry => "CmseNSEntry", CX_AttrKind_CodeModel => "CodeModel", CX_AttrKind_CodeSeg => "CodeSeg", @@ -216,12 +242,13 @@ public readonly string AttrKindSpelling CX_AttrKind_ConsumableAutoCast => "ConsumableAutoCast", CX_AttrKind_ConsumableSetOnRead => "ConsumableSetOnRead", CX_AttrKind_Convergent => "Convergent", + CX_AttrKind_CoroAwaitElidable => "CoroAwaitElidable", + CX_AttrKind_CoroAwaitElidableArgument => "CoroAwaitElidableArgument", CX_AttrKind_CoroDisableLifetimeBound => "CoroDisableLifetimeBound", CX_AttrKind_CoroLifetimeBound => "CoroLifetimeBound", CX_AttrKind_CoroOnlyDestroyWhenComplete => "CoroOnlyDestroyWhenComplete", CX_AttrKind_CoroReturnType => "CoroReturnType", CX_AttrKind_CoroWrapper => "CoroWrapper", - CX_AttrKind_CountedBy => "CountedBy", CX_AttrKind_DLLExport => "DLLExport", CX_AttrKind_DLLExportStaticLocal => "DLLExportStaticLocal", CX_AttrKind_DLLImport => "DLLImport", @@ -240,6 +267,7 @@ public readonly string AttrKindSpelling CX_AttrKind_Error => "Error", CX_AttrKind_ExcludeFromExplicitInstantiation => "ExcludeFromExplicitInstantiation", CX_AttrKind_ExclusiveTrylockFunction => "ExclusiveTrylockFunction", + CX_AttrKind_ExplicitInit => "ExplicitInit", CX_AttrKind_ExternalSourceSymbol => "ExternalSourceSymbol", CX_AttrKind_Final => "Final", CX_AttrKind_FlagEnum => "FlagEnum", @@ -255,7 +283,9 @@ public readonly string AttrKindSpelling CX_AttrKind_HLSLResource => "HLSLResource", CX_AttrKind_HLSLResourceBinding => "HLSLResourceBinding", CX_AttrKind_HLSLShader => "HLSLShader", + CX_AttrKind_HLSLWaveSize => "HLSLWaveSize", CX_AttrKind_Hot => "Hot", + CX_AttrKind_HybridPatchable => "HybridPatchable", CX_AttrKind_IBAction => "IBAction", CX_AttrKind_IBOutlet => "IBOutlet", CX_AttrKind_IBOutletCollection => "IBOutletCollection", @@ -293,6 +323,7 @@ public readonly string AttrKindSpelling CX_AttrKind_Naked => "Naked", CX_AttrKind_NoAlias => "NoAlias", CX_AttrKind_NoCommon => "NoCommon", + CX_AttrKind_NoConvergent => "NoConvergent", CX_AttrKind_NoDebug => "NoDebug", CX_AttrKind_NoDestroy => "NoDestroy", CX_AttrKind_NoDuplicate => "NoDuplicate", @@ -303,15 +334,18 @@ public readonly string AttrKindSpelling CX_AttrKind_NoRandomizeLayout => "NoRandomizeLayout", CX_AttrKind_NoReturn => "NoReturn", CX_AttrKind_NoSanitize => "NoSanitize", + CX_AttrKind_NoSpecializations => "NoSpecializations", CX_AttrKind_NoSpeculativeLoadHardening => "NoSpeculativeLoadHardening", CX_AttrKind_NoSplitStack => "NoSplitStack", CX_AttrKind_NoStackProtector => "NoStackProtector", CX_AttrKind_NoThreadSafetyAnalysis => "NoThreadSafetyAnalysis", CX_AttrKind_NoThrow => "NoThrow", + CX_AttrKind_NoTrivialAutoVarInit => "NoTrivialAutoVarInit", CX_AttrKind_NoUniqueAddress => "NoUniqueAddress", CX_AttrKind_NoUwtable => "NoUwtable", CX_AttrKind_NotTailCalled => "NotTailCalled", CX_AttrKind_OMPAllocateDecl => "OMPAllocateDecl", + CX_AttrKind_OMPAssume => "OMPAssume", CX_AttrKind_OMPCaptureNoInit => "OMPCaptureNoInit", CX_AttrKind_OMPDeclareTargetDecl => "OMPDeclareTargetDecl", CX_AttrKind_OMPDeclareVariant => "OMPDeclareVariant", @@ -369,6 +403,7 @@ public readonly string AttrKindSpelling CX_AttrKind_ReturnsNonNull => "ReturnsNonNull", CX_AttrKind_ReturnsTwice => "ReturnsTwice", CX_AttrKind_SYCLKernel => "SYCLKernel", + CX_AttrKind_SYCLKernelEntryPoint => "SYCLKernelEntryPoint", CX_AttrKind_SYCLSpecialClass => "SYCLSpecialClass", CX_AttrKind_ScopedLockable => "ScopedLockable", CX_AttrKind_Section => "Section", @@ -383,7 +418,6 @@ public readonly string AttrKindSpelling CX_AttrKind_SwiftAsync => "SwiftAsync", CX_AttrKind_SwiftAsyncError => "SwiftAsyncError", CX_AttrKind_SwiftAsyncName => "SwiftAsyncName", - CX_AttrKind_SwiftAttr => "SwiftAttr", CX_AttrKind_SwiftBridge => "SwiftBridge", CX_AttrKind_SwiftBridgedTypedef => "SwiftBridgedTypedef", CX_AttrKind_SwiftError => "SwiftError", @@ -409,6 +443,7 @@ public readonly string AttrKindSpelling CX_AttrKind_Used => "Used", CX_AttrKind_UsingIfExists => "UsingIfExists", CX_AttrKind_Uuid => "Uuid", + CX_AttrKind_VTablePointerAuthentication => "VTablePointerAuthentication", CX_AttrKind_VecReturn => "VecReturn", CX_AttrKind_VecTypeHint => "VecTypeHint", CX_AttrKind_Visibility => "Visibility", @@ -451,7 +486,6 @@ public readonly string AttrKindSpelling CX_AttrKind_ObjCRuntimeVisible => "ObjCRuntimeVisible", CX_AttrKind_OpenCLAccess => "OpenCLAccess", CX_AttrKind_Overloadable => "Overloadable", - CX_AttrKind_RenderScriptKernel => "RenderScriptKernel", CX_AttrKind_SwiftObjCMembers => "SwiftObjCMembers", CX_AttrKind_SwiftVersionedAddition => "SwiftVersionedAddition", CX_AttrKind_SwiftVersionedRemoval => "SwiftVersionedRemoval", @@ -1381,7 +1415,7 @@ public readonly string StmtClassSpelling CX_StmtClass_ObjCArrayLiteral => "ObjCArrayLiteral", CX_StmtClass_OMPIteratorExpr => "OMPIteratorExpr", CX_StmtClass_OMPArrayShapingExpr => "OMPArrayShapingExpr", - CX_StmtClass_OMPArraySectionExpr => "OMPArraySectionExpr", + CX_StmtClass_ArraySectionExpr => "ArraySectionExpr", CX_StmtClass_NoInitExpr => "NoInitExpr", CX_StmtClass_MemberExpr => "MemberExpr", CX_StmtClass_MatrixSubscriptExpr => "MatrixSubscriptExpr", @@ -1439,6 +1473,7 @@ public readonly string StmtClassSpelling CX_StmtClass_CXXRewrittenBinaryOperator => "CXXRewrittenBinaryOperator", CX_StmtClass_CXXPseudoDestructorExpr => "CXXPseudoDestructorExpr", CX_StmtClass_CXXParenListInitExpr => "CXXParenListInitExpr", + CX_StmtClass_PackIndexingExpr => "PackIndexingExpr", CX_StmtClass_CXXNullPtrLiteralExpr => "CXXNullPtrLiteralExpr", CX_StmtClass_CXXNoexceptExpr => "CXXNoexceptExpr", CX_StmtClass_CXXNewExpr => "CXXNewExpr", diff --git a/sources/ClangSharp.Interop/Manual/CXAPISetImpl.cs b/sources/ClangSharp.Interop/Manual/CXAPISetImpl.cs index 3a31c17d..612f51cd 100644 --- a/sources/ClangSharp.Interop/Manual/CXAPISetImpl.cs +++ b/sources/ClangSharp.Interop/Manual/CXAPISetImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/Manual/CXCursorSetImpl.cs b/sources/ClangSharp.Interop/Manual/CXCursorSetImpl.cs index 13ee87e4..11d42ea3 100644 --- a/sources/ClangSharp.Interop/Manual/CXCursorSetImpl.cs +++ b/sources/ClangSharp.Interop/Manual/CXCursorSetImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/Manual/CXCursorVisitor.cs b/sources/ClangSharp.Interop/Manual/CXCursorVisitor.cs index e4a1aeda..84a4ebed 100644 --- a/sources/ClangSharp.Interop/Manual/CXCursorVisitor.cs +++ b/sources/ClangSharp.Interop/Manual/CXCursorVisitor.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/Manual/CXFieldVisitor.cs b/sources/ClangSharp.Interop/Manual/CXFieldVisitor.cs index bf4f22de..8806d8a2 100644 --- a/sources/ClangSharp.Interop/Manual/CXFieldVisitor.cs +++ b/sources/ClangSharp.Interop/Manual/CXFieldVisitor.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/Manual/CXInclusionVisitor.cs b/sources/ClangSharp.Interop/Manual/CXInclusionVisitor.cs index 318e7588..6c2a355b 100644 --- a/sources/ClangSharp.Interop/Manual/CXInclusionVisitor.cs +++ b/sources/ClangSharp.Interop/Manual/CXInclusionVisitor.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/Manual/CXModuleMapDescriptorImpl.cs b/sources/ClangSharp.Interop/Manual/CXModuleMapDescriptorImpl.cs index 398c18c0..bb24b593 100644 --- a/sources/ClangSharp.Interop/Manual/CXModuleMapDescriptorImpl.cs +++ b/sources/ClangSharp.Interop/Manual/CXModuleMapDescriptorImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/Manual/CXTargetInfoImpl.cs b/sources/ClangSharp.Interop/Manual/CXTargetInfoImpl.cs index 68102601..27af3182 100644 --- a/sources/ClangSharp.Interop/Manual/CXTargetInfoImpl.cs +++ b/sources/ClangSharp.Interop/Manual/CXTargetInfoImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/Manual/CXTranslationUnitImpl.cs b/sources/ClangSharp.Interop/Manual/CXTranslationUnitImpl.cs index fe344762..b1f182a8 100644 --- a/sources/ClangSharp.Interop/Manual/CXTranslationUnitImpl.cs +++ b/sources/ClangSharp.Interop/Manual/CXTranslationUnitImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/Manual/CXVirtualFileOverlayImpl.cs b/sources/ClangSharp.Interop/Manual/CXVirtualFileOverlayImpl.cs index 49e9b937..063f079c 100644 --- a/sources/ClangSharp.Interop/Manual/CXVirtualFileOverlayImpl.cs +++ b/sources/ClangSharp.Interop/Manual/CXVirtualFileOverlayImpl.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXAvailabilityKind.cs b/sources/ClangSharp.Interop/clang/CXAvailabilityKind.cs index 8957cf6e..d12d154d 100644 --- a/sources/ClangSharp.Interop/clang/CXAvailabilityKind.cs +++ b/sources/ClangSharp.Interop/clang/CXAvailabilityKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXBinaryOperatorKind.cs b/sources/ClangSharp.Interop/clang/CXBinaryOperatorKind.cs index 6b49fc03..9a82a8a7 100644 --- a/sources/ClangSharp.Interop/clang/CXBinaryOperatorKind.cs +++ b/sources/ClangSharp.Interop/clang/CXBinaryOperatorKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCallingConv.cs b/sources/ClangSharp.Interop/clang/CXCallingConv.cs index c54eb79f..363b8de9 100644 --- a/sources/ClangSharp.Interop/clang/CXCallingConv.cs +++ b/sources/ClangSharp.Interop/clang/CXCallingConv.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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; @@ -28,6 +28,8 @@ public enum CXCallingConv CXCallingConv_SwiftAsync = 17, CXCallingConv_AArch64SVEPCS = 18, CXCallingConv_M68kRTD = 19, + CXCallingConv_PreserveNone = 20, + CXCallingConv_RISCVVectorCall = 21, CXCallingConv_Invalid = 100, CXCallingConv_Unexposed = 200, } diff --git a/sources/ClangSharp.Interop/clang/CXChildVisitResult.cs b/sources/ClangSharp.Interop/clang/CXChildVisitResult.cs index 703f2628..fec57984 100644 --- a/sources/ClangSharp.Interop/clang/CXChildVisitResult.cs +++ b/sources/ClangSharp.Interop/clang/CXChildVisitResult.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXChoice.cs b/sources/ClangSharp.Interop/clang/CXChoice.cs index 4b1f9269..92214e7b 100644 --- a/sources/ClangSharp.Interop/clang/CXChoice.cs +++ b/sources/ClangSharp.Interop/clang/CXChoice.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCodeCompleteResults.cs b/sources/ClangSharp.Interop/clang/CXCodeCompleteResults.cs index db791bf3..2182d5dd 100644 --- a/sources/ClangSharp.Interop/clang/CXCodeCompleteResults.cs +++ b/sources/ClangSharp.Interop/clang/CXCodeCompleteResults.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCodeComplete_Flags.cs b/sources/ClangSharp.Interop/clang/CXCodeComplete_Flags.cs index 531a940f..8cadfc19 100644 --- a/sources/ClangSharp.Interop/clang/CXCodeComplete_Flags.cs +++ b/sources/ClangSharp.Interop/clang/CXCodeComplete_Flags.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXComment.cs b/sources/ClangSharp.Interop/clang/CXComment.cs index cb17ef6c..70f16530 100644 --- a/sources/ClangSharp.Interop/clang/CXComment.cs +++ b/sources/ClangSharp.Interop/clang/CXComment.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCommentInlineCommandRenderKind.cs b/sources/ClangSharp.Interop/clang/CXCommentInlineCommandRenderKind.cs index a0a66953..e5cd9292 100644 --- a/sources/ClangSharp.Interop/clang/CXCommentInlineCommandRenderKind.cs +++ b/sources/ClangSharp.Interop/clang/CXCommentInlineCommandRenderKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCommentKind.cs b/sources/ClangSharp.Interop/clang/CXCommentKind.cs index 3ec91725..db9b1594 100644 --- a/sources/ClangSharp.Interop/clang/CXCommentKind.cs +++ b/sources/ClangSharp.Interop/clang/CXCommentKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCommentParamPassDirection.cs b/sources/ClangSharp.Interop/clang/CXCommentParamPassDirection.cs index 4ba704d3..20f89f03 100644 --- a/sources/ClangSharp.Interop/clang/CXCommentParamPassDirection.cs +++ b/sources/ClangSharp.Interop/clang/CXCommentParamPassDirection.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCompilationDatabase_Error.cs b/sources/ClangSharp.Interop/clang/CXCompilationDatabase_Error.cs index 9be2b02d..738908f5 100644 --- a/sources/ClangSharp.Interop/clang/CXCompilationDatabase_Error.cs +++ b/sources/ClangSharp.Interop/clang/CXCompilationDatabase_Error.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCompletionChunkKind.cs b/sources/ClangSharp.Interop/clang/CXCompletionChunkKind.cs index ea3a04eb..0282ea5f 100644 --- a/sources/ClangSharp.Interop/clang/CXCompletionChunkKind.cs +++ b/sources/ClangSharp.Interop/clang/CXCompletionChunkKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCompletionContext.cs b/sources/ClangSharp.Interop/clang/CXCompletionContext.cs index a5558c5b..017094fc 100644 --- a/sources/ClangSharp.Interop/clang/CXCompletionContext.cs +++ b/sources/ClangSharp.Interop/clang/CXCompletionContext.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCompletionResult.cs b/sources/ClangSharp.Interop/clang/CXCompletionResult.cs index a21df104..69772ba2 100644 --- a/sources/ClangSharp.Interop/clang/CXCompletionResult.cs +++ b/sources/ClangSharp.Interop/clang/CXCompletionResult.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCursor.cs b/sources/ClangSharp.Interop/clang/CXCursor.cs index 074538d8..5fcdeecf 100644 --- a/sources/ClangSharp.Interop/clang/CXCursor.cs +++ b/sources/ClangSharp.Interop/clang/CXCursor.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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.CompilerServices; diff --git a/sources/ClangSharp.Interop/clang/CXCursorAndRangeVisitor.cs b/sources/ClangSharp.Interop/clang/CXCursorAndRangeVisitor.cs index 2ac3caff..1efa3078 100644 --- a/sources/ClangSharp.Interop/clang/CXCursorAndRangeVisitor.cs +++ b/sources/ClangSharp.Interop/clang/CXCursorAndRangeVisitor.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXCursorKind.cs b/sources/ClangSharp.Interop/clang/CXCursorKind.cs index 42a586b2..532cf187 100644 --- a/sources/ClangSharp.Interop/clang/CXCursorKind.cs +++ b/sources/ClangSharp.Interop/clang/CXCursorKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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; @@ -115,7 +115,7 @@ public enum CXCursorKind CXCursor_LambdaExpr = 144, CXCursor_ObjCBoolLiteralExpr = 145, CXCursor_ObjCSelfExpr = 146, - CXCursor_OMPArraySectionExpr = 147, + CXCursor_ArraySectionExpr = 147, CXCursor_ObjCAvailabilityCheckExpr = 148, CXCursor_FixedPointLiteral = 149, CXCursor_OMPArrayShapingExpr = 150, @@ -124,7 +124,8 @@ public enum CXCursorKind CXCursor_ConceptSpecializationExpr = 153, CXCursor_RequiresExpr = 154, CXCursor_CXXParenListInitExpr = 155, - CXCursor_LastExpr = CXCursor_CXXParenListInitExpr, + CXCursor_PackIndexingExpr = 156, + CXCursor_LastExpr = CXCursor_PackIndexingExpr, CXCursor_FirstStmt = 200, CXCursor_UnexposedStmt = 200, CXCursor_LabelStmt = 201, @@ -234,7 +235,22 @@ public enum CXCursorKind CXCursor_OMPParallelMaskedTaskLoopSimdDirective = 304, CXCursor_OMPErrorDirective = 305, CXCursor_OMPScopeDirective = 306, - CXCursor_LastStmt = CXCursor_OMPScopeDirective, + CXCursor_OMPReverseDirective = 307, + CXCursor_OMPInterchangeDirective = 308, + CXCursor_OMPAssumeDirective = 309, + CXCursor_OpenACCComputeConstruct = 320, + CXCursor_OpenACCLoopConstruct = 321, + CXCursor_OpenACCCombinedConstruct = 322, + CXCursor_OpenACCDataConstruct = 323, + CXCursor_OpenACCEnterDataConstruct = 324, + CXCursor_OpenACCExitDataConstruct = 325, + CXCursor_OpenACCHostDataConstruct = 326, + CXCursor_OpenACCWaitConstruct = 327, + CXCursor_OpenACCInitConstruct = 328, + CXCursor_OpenACCShutdownConstruct = 329, + CXCursor_OpenACCSetConstruct = 330, + CXCursor_OpenACCUpdateConstruct = 331, + CXCursor_LastStmt = CXCursor_OpenACCUpdateConstruct, CXCursor_TranslationUnit = 350, CXCursor_FirstAttr = 400, CXCursor_UnexposedAttr = 400, diff --git a/sources/ClangSharp.Interop/clang/CXCursor_ExceptionSpecificationKind.cs b/sources/ClangSharp.Interop/clang/CXCursor_ExceptionSpecificationKind.cs index 5c1d53fb..aa55f164 100644 --- a/sources/ClangSharp.Interop/clang/CXCursor_ExceptionSpecificationKind.cs +++ b/sources/ClangSharp.Interop/clang/CXCursor_ExceptionSpecificationKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXDiagnosticDisplayOptions.cs b/sources/ClangSharp.Interop/clang/CXDiagnosticDisplayOptions.cs index a1f3752d..c648dcd6 100644 --- a/sources/ClangSharp.Interop/clang/CXDiagnosticDisplayOptions.cs +++ b/sources/ClangSharp.Interop/clang/CXDiagnosticDisplayOptions.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXDiagnosticSeverity.cs b/sources/ClangSharp.Interop/clang/CXDiagnosticSeverity.cs index f580c249..e9249172 100644 --- a/sources/ClangSharp.Interop/clang/CXDiagnosticSeverity.cs +++ b/sources/ClangSharp.Interop/clang/CXDiagnosticSeverity.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXErrorCode.cs b/sources/ClangSharp.Interop/clang/CXErrorCode.cs index 1e4023ae..b0c2c1d9 100644 --- a/sources/ClangSharp.Interop/clang/CXErrorCode.cs +++ b/sources/ClangSharp.Interop/clang/CXErrorCode.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXEvalResultKind.cs b/sources/ClangSharp.Interop/clang/CXEvalResultKind.cs index dc000cfc..0bd792bc 100644 --- a/sources/ClangSharp.Interop/clang/CXEvalResultKind.cs +++ b/sources/ClangSharp.Interop/clang/CXEvalResultKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXFileUniqueID.cs b/sources/ClangSharp.Interop/clang/CXFileUniqueID.cs index 08541baa..5f7d908d 100644 --- a/sources/ClangSharp.Interop/clang/CXFileUniqueID.cs +++ b/sources/ClangSharp.Interop/clang/CXFileUniqueID.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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.CompilerServices; diff --git a/sources/ClangSharp.Interop/clang/CXGlobalOptFlags.cs b/sources/ClangSharp.Interop/clang/CXGlobalOptFlags.cs index ddea536b..46da52be 100644 --- a/sources/ClangSharp.Interop/clang/CXGlobalOptFlags.cs +++ b/sources/ClangSharp.Interop/clang/CXGlobalOptFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxAttrInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxAttrInfo.cs index 3def5799..8682ae90 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxAttrInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxAttrInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxAttrKind.cs b/sources/ClangSharp.Interop/clang/CXIdxAttrKind.cs index f461126b..ee79d830 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxAttrKind.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxAttrKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxBaseClassInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxBaseClassInfo.cs index 0dcee248..991c3521 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxBaseClassInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxBaseClassInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxCXXClassDeclInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxCXXClassDeclInfo.cs index b9d7472c..2ef567b2 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxCXXClassDeclInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxCXXClassDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxContainerInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxContainerInfo.cs index 4f7c4f3f..159f66c1 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxContainerInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxContainerInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxDeclInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxDeclInfo.cs index ad8a7b1a..849e7947 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxDeclInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxDeclInfoFlags.cs b/sources/ClangSharp.Interop/clang/CXIdxDeclInfoFlags.cs index 15bcfabc..229a7c9d 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxDeclInfoFlags.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxDeclInfoFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxEntityCXXTemplateKind.cs b/sources/ClangSharp.Interop/clang/CXIdxEntityCXXTemplateKind.cs index 9da7c26f..7e622172 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxEntityCXXTemplateKind.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxEntityCXXTemplateKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxEntityInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxEntityInfo.cs index 82304b8b..5f712b9e 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxEntityInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxEntityInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxEntityKind.cs b/sources/ClangSharp.Interop/clang/CXIdxEntityKind.cs index ca3cc6e9..adf4f7cc 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxEntityKind.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxEntityKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxEntityLanguage.cs b/sources/ClangSharp.Interop/clang/CXIdxEntityLanguage.cs index 0fde7af2..123de8ab 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxEntityLanguage.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxEntityLanguage.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxEntityRefInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxEntityRefInfo.cs index d60d98bf..45d0ed79 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxEntityRefInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxEntityRefInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxEntityRefKind.cs b/sources/ClangSharp.Interop/clang/CXIdxEntityRefKind.cs index 3f1daa21..a271f72a 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxEntityRefKind.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxEntityRefKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxIBOutletCollectionAttrInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxIBOutletCollectionAttrInfo.cs index 786daf83..398b6300 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxIBOutletCollectionAttrInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxIBOutletCollectionAttrInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxImportedASTFileInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxImportedASTFileInfo.cs index d0b1ba35..4fc5480d 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxImportedASTFileInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxImportedASTFileInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxIncludedFileInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxIncludedFileInfo.cs index 9de436d2..42f9654e 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxIncludedFileInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxIncludedFileInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxLoc.cs b/sources/ClangSharp.Interop/clang/CXIdxLoc.cs index 2309fc5b..d9194845 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxLoc.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxLoc.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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.CompilerServices; diff --git a/sources/ClangSharp.Interop/clang/CXIdxObjCCategoryDeclInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxObjCCategoryDeclInfo.cs index ed95f7b1..60bae0f4 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxObjCCategoryDeclInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxObjCCategoryDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxObjCContainerDeclInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxObjCContainerDeclInfo.cs index 580e5caa..6f2fea81 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxObjCContainerDeclInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxObjCContainerDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxObjCContainerKind.cs b/sources/ClangSharp.Interop/clang/CXIdxObjCContainerKind.cs index d92df8f7..2260185d 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxObjCContainerKind.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxObjCContainerKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxObjCInterfaceDeclInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxObjCInterfaceDeclInfo.cs index 61b95173..9eecef17 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxObjCInterfaceDeclInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxObjCInterfaceDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxObjCPropertyDeclInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxObjCPropertyDeclInfo.cs index 65edc889..0591027a 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxObjCPropertyDeclInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxObjCPropertyDeclInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxObjCProtocolRefInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxObjCProtocolRefInfo.cs index e8ca74cd..c3a90497 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxObjCProtocolRefInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxObjCProtocolRefInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIdxObjCProtocolRefListInfo.cs b/sources/ClangSharp.Interop/clang/CXIdxObjCProtocolRefListInfo.cs index cb02880d..9270b920 100644 --- a/sources/ClangSharp.Interop/clang/CXIdxObjCProtocolRefListInfo.cs +++ b/sources/ClangSharp.Interop/clang/CXIdxObjCProtocolRefListInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIndexOptFlags.cs b/sources/ClangSharp.Interop/clang/CXIndexOptFlags.cs index 3c2dd327..b4e41413 100644 --- a/sources/ClangSharp.Interop/clang/CXIndexOptFlags.cs +++ b/sources/ClangSharp.Interop/clang/CXIndexOptFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXIndexOptions.cs b/sources/ClangSharp.Interop/clang/CXIndexOptions.cs index 859e06c8..48f1d577 100644 --- a/sources/ClangSharp.Interop/clang/CXIndexOptions.cs +++ b/sources/ClangSharp.Interop/clang/CXIndexOptions.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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.CompilerServices; diff --git a/sources/ClangSharp.Interop/clang/CXLanguageKind.cs b/sources/ClangSharp.Interop/clang/CXLanguageKind.cs index 790fd346..b27a35c0 100644 --- a/sources/ClangSharp.Interop/clang/CXLanguageKind.cs +++ b/sources/ClangSharp.Interop/clang/CXLanguageKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXLinkageKind.cs b/sources/ClangSharp.Interop/clang/CXLinkageKind.cs index cbb05f8f..21dad4ee 100644 --- a/sources/ClangSharp.Interop/clang/CXLinkageKind.cs +++ b/sources/ClangSharp.Interop/clang/CXLinkageKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXLoadDiag_Error.cs b/sources/ClangSharp.Interop/clang/CXLoadDiag_Error.cs index f142982b..e9500782 100644 --- a/sources/ClangSharp.Interop/clang/CXLoadDiag_Error.cs +++ b/sources/ClangSharp.Interop/clang/CXLoadDiag_Error.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXNameRefFlags.cs b/sources/ClangSharp.Interop/clang/CXNameRefFlags.cs index b6293159..c7b3479b 100644 --- a/sources/ClangSharp.Interop/clang/CXNameRefFlags.cs +++ b/sources/ClangSharp.Interop/clang/CXNameRefFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXObjCDeclQualifierKind.cs b/sources/ClangSharp.Interop/clang/CXObjCDeclQualifierKind.cs index ff264cc8..468a4755 100644 --- a/sources/ClangSharp.Interop/clang/CXObjCDeclQualifierKind.cs +++ b/sources/ClangSharp.Interop/clang/CXObjCDeclQualifierKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXObjCPropertyAttrKind.cs b/sources/ClangSharp.Interop/clang/CXObjCPropertyAttrKind.cs index 0ec758d4..b75706da 100644 --- a/sources/ClangSharp.Interop/clang/CXObjCPropertyAttrKind.cs +++ b/sources/ClangSharp.Interop/clang/CXObjCPropertyAttrKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXPlatformAvailability.cs b/sources/ClangSharp.Interop/clang/CXPlatformAvailability.cs index 2f39fd87..3061a5d4 100644 --- a/sources/ClangSharp.Interop/clang/CXPlatformAvailability.cs +++ b/sources/ClangSharp.Interop/clang/CXPlatformAvailability.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXPrintingPolicyProperty.cs b/sources/ClangSharp.Interop/clang/CXPrintingPolicyProperty.cs index d983f321..af01b92a 100644 --- a/sources/ClangSharp.Interop/clang/CXPrintingPolicyProperty.cs +++ b/sources/ClangSharp.Interop/clang/CXPrintingPolicyProperty.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXRefQualifierKind.cs b/sources/ClangSharp.Interop/clang/CXRefQualifierKind.cs index ffa81942..e9a684bd 100644 --- a/sources/ClangSharp.Interop/clang/CXRefQualifierKind.cs +++ b/sources/ClangSharp.Interop/clang/CXRefQualifierKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXReparse_Flags.cs b/sources/ClangSharp.Interop/clang/CXReparse_Flags.cs index bfcad337..4f063c26 100644 --- a/sources/ClangSharp.Interop/clang/CXReparse_Flags.cs +++ b/sources/ClangSharp.Interop/clang/CXReparse_Flags.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXResult.cs b/sources/ClangSharp.Interop/clang/CXResult.cs index 0806c12f..b5fc88ef 100644 --- a/sources/ClangSharp.Interop/clang/CXResult.cs +++ b/sources/ClangSharp.Interop/clang/CXResult.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXSaveError.cs b/sources/ClangSharp.Interop/clang/CXSaveError.cs index 553d709a..12a8b2f6 100644 --- a/sources/ClangSharp.Interop/clang/CXSaveError.cs +++ b/sources/ClangSharp.Interop/clang/CXSaveError.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXSaveTranslationUnit_Flags.cs b/sources/ClangSharp.Interop/clang/CXSaveTranslationUnit_Flags.cs index 07bdc501..d4b398f6 100644 --- a/sources/ClangSharp.Interop/clang/CXSaveTranslationUnit_Flags.cs +++ b/sources/ClangSharp.Interop/clang/CXSaveTranslationUnit_Flags.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXSourceLocation.cs b/sources/ClangSharp.Interop/clang/CXSourceLocation.cs index 2f613f31..3134152c 100644 --- a/sources/ClangSharp.Interop/clang/CXSourceLocation.cs +++ b/sources/ClangSharp.Interop/clang/CXSourceLocation.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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.CompilerServices; diff --git a/sources/ClangSharp.Interop/clang/CXSourceRange.cs b/sources/ClangSharp.Interop/clang/CXSourceRange.cs index fcdb87c3..09124d32 100644 --- a/sources/ClangSharp.Interop/clang/CXSourceRange.cs +++ b/sources/ClangSharp.Interop/clang/CXSourceRange.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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.CompilerServices; diff --git a/sources/ClangSharp.Interop/clang/CXSourceRangeList.cs b/sources/ClangSharp.Interop/clang/CXSourceRangeList.cs index 991b2a33..015691cf 100644 --- a/sources/ClangSharp.Interop/clang/CXSourceRangeList.cs +++ b/sources/ClangSharp.Interop/clang/CXSourceRangeList.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXString.cs b/sources/ClangSharp.Interop/clang/CXString.cs index 3b871724..63ba5c14 100644 --- a/sources/ClangSharp.Interop/clang/CXString.cs +++ b/sources/ClangSharp.Interop/clang/CXString.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXStringSet.cs b/sources/ClangSharp.Interop/clang/CXStringSet.cs index edaa94d0..64d8e53d 100644 --- a/sources/ClangSharp.Interop/clang/CXStringSet.cs +++ b/sources/ClangSharp.Interop/clang/CXStringSet.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXSymbolRole.cs b/sources/ClangSharp.Interop/clang/CXSymbolRole.cs index c9acc0e8..b96c7040 100644 --- a/sources/ClangSharp.Interop/clang/CXSymbolRole.cs +++ b/sources/ClangSharp.Interop/clang/CXSymbolRole.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXTLSKind.cs b/sources/ClangSharp.Interop/clang/CXTLSKind.cs index 81aa2fda..e0e678a2 100644 --- a/sources/ClangSharp.Interop/clang/CXTLSKind.cs +++ b/sources/ClangSharp.Interop/clang/CXTLSKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXTUResourceUsage.cs b/sources/ClangSharp.Interop/clang/CXTUResourceUsage.cs index f0a74664..e929e89f 100644 --- a/sources/ClangSharp.Interop/clang/CXTUResourceUsage.cs +++ b/sources/ClangSharp.Interop/clang/CXTUResourceUsage.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXTUResourceUsageEntry.cs b/sources/ClangSharp.Interop/clang/CXTUResourceUsageEntry.cs index fb2fc8ec..958967e7 100644 --- a/sources/ClangSharp.Interop/clang/CXTUResourceUsageEntry.cs +++ b/sources/ClangSharp.Interop/clang/CXTUResourceUsageEntry.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXTUResourceUsageKind.cs b/sources/ClangSharp.Interop/clang/CXTUResourceUsageKind.cs index 423bfe71..f19fadf7 100644 --- a/sources/ClangSharp.Interop/clang/CXTUResourceUsageKind.cs +++ b/sources/ClangSharp.Interop/clang/CXTUResourceUsageKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXTemplateArgumentKind.cs b/sources/ClangSharp.Interop/clang/CXTemplateArgumentKind.cs index 1375e56b..0fc7cb36 100644 --- a/sources/ClangSharp.Interop/clang/CXTemplateArgumentKind.cs +++ b/sources/ClangSharp.Interop/clang/CXTemplateArgumentKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXToken.cs b/sources/ClangSharp.Interop/clang/CXToken.cs index c7729f34..3a1da283 100644 --- a/sources/ClangSharp.Interop/clang/CXToken.cs +++ b/sources/ClangSharp.Interop/clang/CXToken.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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.CompilerServices; diff --git a/sources/ClangSharp.Interop/clang/CXTokenKind.cs b/sources/ClangSharp.Interop/clang/CXTokenKind.cs index 48170e30..1d9ae19c 100644 --- a/sources/ClangSharp.Interop/clang/CXTokenKind.cs +++ b/sources/ClangSharp.Interop/clang/CXTokenKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXTranslationUnit_Flags.cs b/sources/ClangSharp.Interop/clang/CXTranslationUnit_Flags.cs index 57ec6324..33ddd3c6 100644 --- a/sources/ClangSharp.Interop/clang/CXTranslationUnit_Flags.cs +++ b/sources/ClangSharp.Interop/clang/CXTranslationUnit_Flags.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXType.cs b/sources/ClangSharp.Interop/clang/CXType.cs index ba107bfd..447288d8 100644 --- a/sources/ClangSharp.Interop/clang/CXType.cs +++ b/sources/ClangSharp.Interop/clang/CXType.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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.CompilerServices; diff --git a/sources/ClangSharp.Interop/clang/CXTypeKind.cs b/sources/ClangSharp.Interop/clang/CXTypeKind.cs index ce97a87a..710c1c7c 100644 --- a/sources/ClangSharp.Interop/clang/CXTypeKind.cs +++ b/sources/ClangSharp.Interop/clang/CXTypeKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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; @@ -133,4 +133,6 @@ public enum CXTypeKind CXType_ExtVector = 176, CXType_Atomic = 177, CXType_BTFTagAttributed = 178, + CXType_HLSLResource = 179, + CXType_HLSLAttributedResource = 180, } diff --git a/sources/ClangSharp.Interop/clang/CXTypeLayoutError.cs b/sources/ClangSharp.Interop/clang/CXTypeLayoutError.cs index 963e824b..13e9ef80 100644 --- a/sources/ClangSharp.Interop/clang/CXTypeLayoutError.cs +++ b/sources/ClangSharp.Interop/clang/CXTypeLayoutError.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXTypeNullabilityKind.cs b/sources/ClangSharp.Interop/clang/CXTypeNullabilityKind.cs index 58f5075b..b181dd1c 100644 --- a/sources/ClangSharp.Interop/clang/CXTypeNullabilityKind.cs +++ b/sources/ClangSharp.Interop/clang/CXTypeNullabilityKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXUnaryOperatorKind.cs b/sources/ClangSharp.Interop/clang/CXUnaryOperatorKind.cs index e4abc5eb..51ee1741 100644 --- a/sources/ClangSharp.Interop/clang/CXUnaryOperatorKind.cs +++ b/sources/ClangSharp.Interop/clang/CXUnaryOperatorKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXUnsavedFile.cs b/sources/ClangSharp.Interop/clang/CXUnsavedFile.cs index a4c5130e..f32048da 100644 --- a/sources/ClangSharp.Interop/clang/CXUnsavedFile.cs +++ b/sources/ClangSharp.Interop/clang/CXUnsavedFile.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXVersion.cs b/sources/ClangSharp.Interop/clang/CXVersion.cs index c04fefd2..88cf9ede 100644 --- a/sources/ClangSharp.Interop/clang/CXVersion.cs +++ b/sources/ClangSharp.Interop/clang/CXVersion.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXVisibilityKind.cs b/sources/ClangSharp.Interop/clang/CXVisibilityKind.cs index 9901eba3..b49c89d4 100644 --- a/sources/ClangSharp.Interop/clang/CXVisibilityKind.cs +++ b/sources/ClangSharp.Interop/clang/CXVisibilityKind.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CXVisitorResult.cs b/sources/ClangSharp.Interop/clang/CXVisitorResult.cs index 0af560b7..5abbdcc5 100644 --- a/sources/ClangSharp.Interop/clang/CXVisitorResult.cs +++ b/sources/ClangSharp.Interop/clang/CXVisitorResult.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CX_BinaryOperatorKind.cs b/sources/ClangSharp.Interop/clang/CX_BinaryOperatorKind.cs new file mode 100644 index 00000000..650102f0 --- /dev/null +++ b/sources/ClangSharp.Interop/clang/CX_BinaryOperatorKind.cs @@ -0,0 +1,45 @@ +// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 enum CX_BinaryOperatorKind +{ + CX_BO_Invalid = 0, + CX_BO_PtrMemD = 1, + CX_BO_PtrMemI = 2, + CX_BO_Mul = 3, + CX_BO_Div = 4, + CX_BO_Rem = 5, + CX_BO_Add = 6, + CX_BO_Sub = 7, + CX_BO_Shl = 8, + CX_BO_Shr = 9, + CX_BO_Cmp = 10, + CX_BO_LT = 11, + CX_BO_GT = 12, + CX_BO_LE = 13, + CX_BO_GE = 14, + CX_BO_EQ = 15, + CX_BO_NE = 16, + CX_BO_And = 17, + CX_BO_Xor = 18, + CX_BO_Or = 19, + CX_BO_LAnd = 20, + CX_BO_LOr = 21, + CX_BO_Assign = 22, + CX_BO_MulAssign = 23, + CX_BO_DivAssign = 24, + CX_BO_RemAssign = 25, + CX_BO_AddAssign = 26, + CX_BO_SubAssign = 27, + CX_BO_ShlAssign = 28, + CX_BO_ShrAssign = 29, + CX_BO_AndAssign = 30, + CX_BO_XorAssign = 31, + CX_BO_OrAssign = 32, + CX_BO_Comma = 33, + CX_BO_LAST = CX_BO_Comma, +} diff --git a/sources/ClangSharp.Interop/clang/CX_CXXAccessSpecifier.cs b/sources/ClangSharp.Interop/clang/CX_CXXAccessSpecifier.cs index 104284df..861e0eaf 100644 --- a/sources/ClangSharp.Interop/clang/CX_CXXAccessSpecifier.cs +++ b/sources/ClangSharp.Interop/clang/CX_CXXAccessSpecifier.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/CX_StorageClass.cs b/sources/ClangSharp.Interop/clang/CX_StorageClass.cs index 53854116..fd9388d0 100644 --- a/sources/ClangSharp.Interop/clang/CX_StorageClass.cs +++ b/sources/ClangSharp.Interop/clang/CX_StorageClass.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/IndexerCallbacks.cs b/sources/ClangSharp.Interop/clang/IndexerCallbacks.cs index 9c461643..84600c29 100644 --- a/sources/ClangSharp.Interop/clang/IndexerCallbacks.cs +++ b/sources/ClangSharp.Interop/clang/IndexerCallbacks.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/clang/clang.cs b/sources/ClangSharp.Interop/clang/clang.cs index 5d1d1abb..66a93eaf 100644 --- a/sources/ClangSharp.Interop/clang/clang.cs +++ b/sources/ClangSharp.Interop/clang/clang.cs @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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; @@ -194,6 +194,10 @@ public static unsafe partial class @clang [return: NativeTypeName("unsigned int")] public static extern uint equalLocations(CXSourceLocation loc1, CXSourceLocation loc2); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_isBeforeInTranslationUnit", ExactSpelling = true)] + [return: NativeTypeName("unsigned int")] + public static extern uint isBeforeInTranslationUnit(CXSourceLocation loc1, CXSourceLocation loc2); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Location_isInSystemHeader", ExactSpelling = true)] public static extern int Location_isInSystemHeader(CXSourceLocation location); @@ -893,10 +897,21 @@ public static unsafe partial class @clang [return: NativeTypeName("unsigned int")] public static extern uint isVirtualBase(CXCursor param0); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getOffsetOfBase", ExactSpelling = true)] + [return: NativeTypeName("long long")] + public static extern long getOffsetOfBase(CXCursor Parent, CXCursor Base); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCXXAccessSpecifier", ExactSpelling = true)] [return: NativeTypeName("enum CX_CXXAccessSpecifier")] public static extern CX_CXXAccessSpecifier getCXXAccessSpecifier(CXCursor param0); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getBinaryOpcode", ExactSpelling = true)] + [return: NativeTypeName("enum CX_BinaryOperatorKind")] + public static extern CX_BinaryOperatorKind Cursor_getBinaryOpcode(CXCursor C); + + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getBinaryOpcodeStr", ExactSpelling = true)] + public static extern CXString Cursor_getBinaryOpcodeStr([NativeTypeName("enum CX_BinaryOperatorKind")] CX_BinaryOperatorKind Op); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_Cursor_getStorageClass", ExactSpelling = true)] [return: NativeTypeName("enum CX_StorageClass")] public static extern CX_StorageClass Cursor_getStorageClass(CXCursor param0); @@ -963,6 +978,9 @@ public static unsafe partial class @clang [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCursorPrettyPrinted", ExactSpelling = true)] public static extern CXString getCursorPrettyPrinted(CXCursor Cursor, [NativeTypeName("CXPrintingPolicy")] void* Policy); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getTypePrettyPrinted", ExactSpelling = true)] + public static extern CXString getTypePrettyPrinted(CXType CT, [NativeTypeName("CXPrintingPolicy")] void* cxPolicy); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getCursorDisplayName", ExactSpelling = true)] public static extern CXString getCursorDisplayName(CXCursor param0); @@ -1399,6 +1417,10 @@ public static unsafe partial class @clang [return: NativeTypeName("unsigned int")] public static extern uint Type_visitFields(CXType T, [NativeTypeName("CXFieldVisitor")] delegate* unmanaged[Cdecl] visitor, [NativeTypeName("CXClientData")] void* client_data); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_visitCXXBaseClasses", ExactSpelling = true)] + [return: NativeTypeName("unsigned int")] + public static extern uint visitCXXBaseClasses(CXType T, [NativeTypeName("CXFieldVisitor")] delegate* unmanaged[Cdecl] visitor, [NativeTypeName("CXClientData")] void* client_data); + [DllImport("libclang", CallingConvention = CallingConvention.Cdecl, EntryPoint = "clang_getBinaryOperatorKindSpelling", ExactSpelling = true)] public static extern CXString getBinaryOperatorKindSpelling([NativeTypeName("enum CXBinaryOperatorKind")] CXBinaryOperatorKind kind); diff --git a/sources/ClangSharp.Interop/clangsharp/CX_AtomicOperatorKind.cs b/sources/ClangSharp.Interop/clangsharp/CX_AtomicOperatorKind.cs index 8afe0084..94781f63 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_AtomicOperatorKind.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_AtomicOperatorKind.cs @@ -6,91 +6,93 @@ namespace ClangSharp.Interop; public enum CX_AtomicOperatorKind { CX_AO_Invalid, - CX_AO__c11_atomic_init, - CX_AO__c11_atomic_load, - CX_AO__c11_atomic_store, - CX_AO__c11_atomic_exchange, - CX_AO__c11_atomic_compare_exchange_strong, - CX_AO__c11_atomic_compare_exchange_weak, - CX_AO__c11_atomic_fetch_add, - CX_AO__c11_atomic_fetch_sub, - CX_AO__c11_atomic_fetch_and, - CX_AO__c11_atomic_fetch_or, - CX_AO__c11_atomic_fetch_xor, - CX_AO__c11_atomic_fetch_nand, - CX_AO__c11_atomic_fetch_max, - CX_AO__c11_atomic_fetch_min, - CX_AO__atomic_load, - CX_AO__atomic_load_n, - CX_AO__atomic_store, - CX_AO__atomic_store_n, - CX_AO__atomic_exchange, - CX_AO__atomic_exchange_n, + CX_AO__atomic_add_fetch, + CX_AO__atomic_and_fetch, + CX_AO__atomic_clear, CX_AO__atomic_compare_exchange, CX_AO__atomic_compare_exchange_n, + CX_AO__atomic_exchange, + CX_AO__atomic_exchange_n, CX_AO__atomic_fetch_add, - CX_AO__atomic_fetch_sub, CX_AO__atomic_fetch_and, + CX_AO__atomic_fetch_max, + CX_AO__atomic_fetch_min, + CX_AO__atomic_fetch_nand, CX_AO__atomic_fetch_or, + CX_AO__atomic_fetch_sub, CX_AO__atomic_fetch_xor, - CX_AO__atomic_fetch_nand, - CX_AO__atomic_add_fetch, - CX_AO__atomic_sub_fetch, - CX_AO__atomic_and_fetch, - CX_AO__atomic_or_fetch, - CX_AO__atomic_xor_fetch, + CX_AO__atomic_load, + CX_AO__atomic_load_n, CX_AO__atomic_max_fetch, CX_AO__atomic_min_fetch, CX_AO__atomic_nand_fetch, - CX_AO__scoped_atomic_load, - CX_AO__scoped_atomic_load_n, - CX_AO__scoped_atomic_store, - CX_AO__scoped_atomic_store_n, - CX_AO__scoped_atomic_exchange, - CX_AO__scoped_atomic_exchange_n, + CX_AO__atomic_or_fetch, + CX_AO__atomic_store, + CX_AO__atomic_store_n, + CX_AO__atomic_sub_fetch, + CX_AO__atomic_test_and_set, + CX_AO__atomic_xor_fetch, + CX_AO__c11_atomic_compare_exchange_strong, + CX_AO__c11_atomic_compare_exchange_weak, + CX_AO__c11_atomic_exchange, + CX_AO__c11_atomic_fetch_add, + CX_AO__c11_atomic_fetch_and, + CX_AO__c11_atomic_fetch_max, + CX_AO__c11_atomic_fetch_min, + CX_AO__c11_atomic_fetch_nand, + CX_AO__c11_atomic_fetch_or, + CX_AO__c11_atomic_fetch_sub, + CX_AO__c11_atomic_fetch_xor, + CX_AO__c11_atomic_init, + CX_AO__c11_atomic_load, + CX_AO__c11_atomic_store, + CX_AO__hip_atomic_compare_exchange_strong, + CX_AO__hip_atomic_compare_exchange_weak, + CX_AO__hip_atomic_exchange, + CX_AO__hip_atomic_fetch_add, + CX_AO__hip_atomic_fetch_and, + CX_AO__hip_atomic_fetch_max, + CX_AO__hip_atomic_fetch_min, + CX_AO__hip_atomic_fetch_or, + CX_AO__hip_atomic_fetch_sub, + CX_AO__hip_atomic_fetch_xor, + CX_AO__hip_atomic_load, + CX_AO__hip_atomic_store, + CX_AO__opencl_atomic_compare_exchange_strong, + CX_AO__opencl_atomic_compare_exchange_weak, + CX_AO__opencl_atomic_exchange, + CX_AO__opencl_atomic_fetch_add, + CX_AO__opencl_atomic_fetch_and, + CX_AO__opencl_atomic_fetch_max, + CX_AO__opencl_atomic_fetch_min, + CX_AO__opencl_atomic_fetch_or, + CX_AO__opencl_atomic_fetch_sub, + CX_AO__opencl_atomic_fetch_xor, + CX_AO__opencl_atomic_init, + CX_AO__opencl_atomic_load, + CX_AO__opencl_atomic_store, + CX_AO__scoped_atomic_add_fetch, + CX_AO__scoped_atomic_and_fetch, CX_AO__scoped_atomic_compare_exchange, CX_AO__scoped_atomic_compare_exchange_n, + CX_AO__scoped_atomic_exchange, + CX_AO__scoped_atomic_exchange_n, CX_AO__scoped_atomic_fetch_add, - CX_AO__scoped_atomic_fetch_sub, CX_AO__scoped_atomic_fetch_and, + CX_AO__scoped_atomic_fetch_max, + CX_AO__scoped_atomic_fetch_min, + CX_AO__scoped_atomic_fetch_nand, CX_AO__scoped_atomic_fetch_or, + CX_AO__scoped_atomic_fetch_sub, CX_AO__scoped_atomic_fetch_xor, - CX_AO__scoped_atomic_fetch_nand, - CX_AO__scoped_atomic_add_fetch, - CX_AO__scoped_atomic_sub_fetch, - CX_AO__scoped_atomic_and_fetch, - CX_AO__scoped_atomic_or_fetch, - CX_AO__scoped_atomic_xor_fetch, + CX_AO__scoped_atomic_load, + CX_AO__scoped_atomic_load_n, CX_AO__scoped_atomic_max_fetch, CX_AO__scoped_atomic_min_fetch, CX_AO__scoped_atomic_nand_fetch, - CX_AO__scoped_atomic_fetch_min, - CX_AO__scoped_atomic_fetch_max, - CX_AO__opencl_atomic_init, - CX_AO__opencl_atomic_load, - CX_AO__opencl_atomic_store, - CX_AO__opencl_atomic_exchange, - CX_AO__opencl_atomic_compare_exchange_strong, - CX_AO__opencl_atomic_compare_exchange_weak, - CX_AO__opencl_atomic_fetch_add, - CX_AO__opencl_atomic_fetch_sub, - CX_AO__opencl_atomic_fetch_and, - CX_AO__opencl_atomic_fetch_or, - CX_AO__opencl_atomic_fetch_xor, - CX_AO__opencl_atomic_fetch_min, - CX_AO__opencl_atomic_fetch_max, - CX_AO__atomic_fetch_min, - CX_AO__atomic_fetch_max, - CX_AO__hip_atomic_load, - CX_AO__hip_atomic_store, - CX_AO__hip_atomic_compare_exchange_weak, - CX_AO__hip_atomic_compare_exchange_strong, - CX_AO__hip_atomic_exchange, - CX_AO__hip_atomic_fetch_add, - CX_AO__hip_atomic_fetch_sub, - CX_AO__hip_atomic_fetch_and, - CX_AO__hip_atomic_fetch_or, - CX_AO__hip_atomic_fetch_xor, - CX_AO__hip_atomic_fetch_min, - CX_AO__hip_atomic_fetch_max, + CX_AO__scoped_atomic_or_fetch, + CX_AO__scoped_atomic_store, + CX_AO__scoped_atomic_store_n, + CX_AO__scoped_atomic_sub_fetch, + CX_AO__scoped_atomic_xor_fetch, } diff --git a/sources/ClangSharp.Interop/clangsharp/CX_AttrKind.cs b/sources/ClangSharp.Interop/clangsharp/CX_AttrKind.cs index 5468ac8e..a42e0ce2 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_AttrKind.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_AttrKind.cs @@ -7,7 +7,9 @@ public enum CX_AttrKind { CX_AttrKind_Invalid, CX_AttrKind_AddressSpace, + CX_AttrKind_Allocating, CX_AttrKind_AnnotateType, + CX_AttrKind_ArmAgnostic, CX_AttrKind_ArmIn, CX_AttrKind_ArmInOut, CX_AttrKind_ArmMveStrictPolymorphism, @@ -16,10 +18,16 @@ public enum CX_AttrKind CX_AttrKind_ArmStreaming, CX_AttrKind_ArmStreamingCompatible, CX_AttrKind_BTFTypeTag, + CX_AttrKind_Blocking, CX_AttrKind_CmseNSCall, + CX_AttrKind_HLSLContainedType, CX_AttrKind_HLSLGroupSharedAddressSpace, - CX_AttrKind_HLSLParamModifier, + CX_AttrKind_HLSLROV, + CX_AttrKind_HLSLRawBuffer, + CX_AttrKind_HLSLResourceClass, CX_AttrKind_NoDeref, + CX_AttrKind_NonAllocating, + CX_AttrKind_NonBlocking, CX_AttrKind_ObjCGC, CX_AttrKind_ObjCInertUnsafeUnretained, CX_AttrKind_ObjCKindOf, @@ -35,12 +43,14 @@ public enum CX_AttrKind CX_AttrKind_SPtr, CX_AttrKind_TypeNonNull, CX_AttrKind_TypeNullUnspecified, - CX_AttrKind_TypeNullable, CX_AttrKind_TypeNullableResult, CX_AttrKind_UPtr, CX_AttrKind_WebAssemblyFuncref, + CX_AttrKind_CXXAssume, CX_AttrKind_CodeAlign, CX_AttrKind_FallThrough, + CX_AttrKind_HLSLControlFlowHint, + CX_AttrKind_HLSLLoopHint, CX_AttrKind_Likely, CX_AttrKind_MustTail, CX_AttrKind_OpenCLUnrollHint, @@ -55,9 +65,12 @@ public enum CX_AttrKind CX_AttrKind_AcquireHandle, CX_AttrKind_AnyX86NoCfCheck, CX_AttrKind_CDecl, + CX_AttrKind_CountedBy, + CX_AttrKind_CountedByOrNull, CX_AttrKind_FastCall, CX_AttrKind_IntelOclBicc, CX_AttrKind_LifetimeBound, + CX_AttrKind_LifetimeCaptureBy, CX_AttrKind_M68kRTD, CX_AttrKind_MSABI, CX_AttrKind_NSReturnsRetained, @@ -66,18 +79,25 @@ public enum CX_AttrKind CX_AttrKind_Pcs, CX_AttrKind_PreserveAll, CX_AttrKind_PreserveMost, + CX_AttrKind_PreserveNone, + CX_AttrKind_RISCVVectorCC, CX_AttrKind_RegCall, + CX_AttrKind_SizedBy, + CX_AttrKind_SizedByOrNull, CX_AttrKind_StdCall, CX_AttrKind_SwiftAsyncCall, + CX_AttrKind_SwiftAttr, CX_AttrKind_SwiftCall, CX_AttrKind_SysVABI, CX_AttrKind_ThisCall, + CX_AttrKind_TypeNullable, CX_AttrKind_VectorCall, + CX_AttrKind_Annotate, + CX_AttrKind_HLSLParamModifier, CX_AttrKind_SwiftAsyncContext, CX_AttrKind_SwiftContext, CX_AttrKind_SwiftErrorResult, CX_AttrKind_SwiftIndirectResult, - CX_AttrKind_Annotate, CX_AttrKind_CFConsumed, CX_AttrKind_CarriesDependency, CX_AttrKind_NSConsumed, @@ -86,9 +106,13 @@ public enum CX_AttrKind CX_AttrKind_PassObjectSize, CX_AttrKind_ReleaseHandle, CX_AttrKind_UseHandle, + CX_AttrKind_HLSLPackOffset, CX_AttrKind_HLSLSV_DispatchThreadID, + CX_AttrKind_HLSLSV_GroupID, CX_AttrKind_HLSLSV_GroupIndex, + CX_AttrKind_HLSLSV_GroupThreadID, CX_AttrKind_AMDGPUFlatWorkGroupSize, + CX_AttrKind_AMDGPUMaxNumWorkGroups, CX_AttrKind_AMDGPUNumSGPR, CX_AttrKind_AMDGPUNumVGPR, CX_AttrKind_AMDGPUWavesPerEU, @@ -118,9 +142,9 @@ public enum CX_AttrKind CX_AttrKind_AssertExclusiveLock, CX_AttrKind_AssertSharedLock, CX_AttrKind_AssumeAligned, - CX_AttrKind_Assumption, CX_AttrKind_Availability, CX_AttrKind_AvailableOnlyInDefaultEvalMethod, + CX_AttrKind_BPFFastCall, CX_AttrKind_BPFPreserveAccessIndex, CX_AttrKind_BPFPreserveStaticOffset, CX_AttrKind_BTFDeclTag, @@ -140,6 +164,7 @@ public enum CX_AttrKind CX_AttrKind_CUDADeviceBuiltinSurfaceType, CX_AttrKind_CUDADeviceBuiltinTextureType, CX_AttrKind_CUDAGlobal, + CX_AttrKind_CUDAGridConstant, CX_AttrKind_CUDAHost, CX_AttrKind_CUDAInvalidTarget, CX_AttrKind_CUDALaunchBounds, @@ -150,6 +175,7 @@ public enum CX_AttrKind CX_AttrKind_Capability, CX_AttrKind_CapturedRecord, CX_AttrKind_Cleanup, + CX_AttrKind_ClspvLibclcBuiltin, CX_AttrKind_CmseNSEntry, CX_AttrKind_CodeModel, CX_AttrKind_CodeSeg, @@ -162,12 +188,13 @@ public enum CX_AttrKind CX_AttrKind_ConsumableAutoCast, CX_AttrKind_ConsumableSetOnRead, CX_AttrKind_Convergent, + CX_AttrKind_CoroAwaitElidable, + CX_AttrKind_CoroAwaitElidableArgument, CX_AttrKind_CoroDisableLifetimeBound, CX_AttrKind_CoroLifetimeBound, CX_AttrKind_CoroOnlyDestroyWhenComplete, CX_AttrKind_CoroReturnType, CX_AttrKind_CoroWrapper, - CX_AttrKind_CountedBy, CX_AttrKind_DLLExport, CX_AttrKind_DLLExportStaticLocal, CX_AttrKind_DLLImport, @@ -186,6 +213,7 @@ public enum CX_AttrKind CX_AttrKind_Error, CX_AttrKind_ExcludeFromExplicitInstantiation, CX_AttrKind_ExclusiveTrylockFunction, + CX_AttrKind_ExplicitInit, CX_AttrKind_ExternalSourceSymbol, CX_AttrKind_Final, CX_AttrKind_FlagEnum, @@ -201,7 +229,9 @@ public enum CX_AttrKind CX_AttrKind_HLSLResource, CX_AttrKind_HLSLResourceBinding, CX_AttrKind_HLSLShader, + CX_AttrKind_HLSLWaveSize, CX_AttrKind_Hot, + CX_AttrKind_HybridPatchable, CX_AttrKind_IBAction, CX_AttrKind_IBOutlet, CX_AttrKind_IBOutletCollection, @@ -239,6 +269,7 @@ public enum CX_AttrKind CX_AttrKind_Naked, CX_AttrKind_NoAlias, CX_AttrKind_NoCommon, + CX_AttrKind_NoConvergent, CX_AttrKind_NoDebug, CX_AttrKind_NoDestroy, CX_AttrKind_NoDuplicate, @@ -249,15 +280,18 @@ public enum CX_AttrKind CX_AttrKind_NoRandomizeLayout, CX_AttrKind_NoReturn, CX_AttrKind_NoSanitize, + CX_AttrKind_NoSpecializations, CX_AttrKind_NoSpeculativeLoadHardening, CX_AttrKind_NoSplitStack, CX_AttrKind_NoStackProtector, CX_AttrKind_NoThreadSafetyAnalysis, CX_AttrKind_NoThrow, + CX_AttrKind_NoTrivialAutoVarInit, CX_AttrKind_NoUniqueAddress, CX_AttrKind_NoUwtable, CX_AttrKind_NotTailCalled, CX_AttrKind_OMPAllocateDecl, + CX_AttrKind_OMPAssume, CX_AttrKind_OMPCaptureNoInit, CX_AttrKind_OMPDeclareTargetDecl, CX_AttrKind_OMPDeclareVariant, @@ -315,6 +349,7 @@ public enum CX_AttrKind CX_AttrKind_ReturnsNonNull, CX_AttrKind_ReturnsTwice, CX_AttrKind_SYCLKernel, + CX_AttrKind_SYCLKernelEntryPoint, CX_AttrKind_SYCLSpecialClass, CX_AttrKind_ScopedLockable, CX_AttrKind_Section, @@ -329,7 +364,6 @@ public enum CX_AttrKind CX_AttrKind_SwiftAsync, CX_AttrKind_SwiftAsyncError, CX_AttrKind_SwiftAsyncName, - CX_AttrKind_SwiftAttr, CX_AttrKind_SwiftBridge, CX_AttrKind_SwiftBridgedTypedef, CX_AttrKind_SwiftError, @@ -355,6 +389,7 @@ public enum CX_AttrKind CX_AttrKind_Used, CX_AttrKind_UsingIfExists, CX_AttrKind_Uuid, + CX_AttrKind_VTablePointerAuthentication, CX_AttrKind_VecReturn, CX_AttrKind_VecTypeHint, CX_AttrKind_Visibility, @@ -397,7 +432,6 @@ public enum CX_AttrKind CX_AttrKind_ObjCRuntimeVisible, CX_AttrKind_OpenCLAccess, CX_AttrKind_Overloadable, - CX_AttrKind_RenderScriptKernel, CX_AttrKind_SwiftObjCMembers, CX_AttrKind_SwiftVersionedAddition, CX_AttrKind_SwiftVersionedRemoval, @@ -406,7 +440,7 @@ public enum CX_AttrKind CX_AttrKind_LastAttr = CX_AttrKind_Thread, CX_AttrKind_FirstTypeAttr = CX_AttrKind_AddressSpace, CX_AttrKind_LastTypeAttr = CX_AttrKind_WebAssemblyFuncref, - CX_AttrKind_FirstStmtAttr = CX_AttrKind_CodeAlign, + CX_AttrKind_FirstStmtAttr = CX_AttrKind_CXXAssume, CX_AttrKind_LastStmtAttr = CX_AttrKind_Unlikely, CX_AttrKind_FirstDeclOrStmtAttr = CX_AttrKind_AlwaysInline, CX_AttrKind_LastDeclOrStmtAttr = CX_AttrKind_Suppress, @@ -414,10 +448,12 @@ public enum CX_AttrKind CX_AttrKind_LastInheritableAttr = CX_AttrKind_ZeroCallUsedRegs, CX_AttrKind_FirstDeclOrTypeAttr = CX_AttrKind_AArch64SVEPcs, CX_AttrKind_LastDeclOrTypeAttr = CX_AttrKind_VectorCall, - CX_AttrKind_FirstInheritableParamAttr = CX_AttrKind_SwiftAsyncContext, + CX_AttrKind_FirstInheritableParamAttr = CX_AttrKind_Annotate, CX_AttrKind_LastInheritableParamAttr = CX_AttrKind_UseHandle, - CX_AttrKind_FirstParameterABIAttr = CX_AttrKind_SwiftAsyncContext, + CX_AttrKind_FirstInheritableParamOrStmtAttr = CX_AttrKind_Annotate, + CX_AttrKind_LastInheritableParamOrStmtAttr = CX_AttrKind_Annotate, + CX_AttrKind_FirstParameterABIAttr = CX_AttrKind_HLSLParamModifier, CX_AttrKind_LastParameterABIAttr = CX_AttrKind_SwiftIndirectResult, - CX_AttrKind_FirstHLSLAnnotationAttr = CX_AttrKind_HLSLSV_DispatchThreadID, - CX_AttrKind_LastHLSLAnnotationAttr = CX_AttrKind_HLSLSV_GroupIndex, + CX_AttrKind_FirstHLSLAnnotationAttr = CX_AttrKind_HLSLPackOffset, + CX_AttrKind_LastHLSLAnnotationAttr = CX_AttrKind_HLSLSV_GroupThreadID, } diff --git a/sources/ClangSharp.Interop/clangsharp/CX_CastKind.cs b/sources/ClangSharp.Interop/clangsharp/CX_CastKind.cs index 443be8fb..1ddd91d1 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_CastKind.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_CastKind.cs @@ -71,4 +71,6 @@ public enum CX_CastKind CX_CK_ZeroToOCLOpaqueType, CX_CK_AddressSpaceConversion, CX_CK_IntToOCLSampler, + CX_CK_HLSLVectorTruncation, + CX_CK_HLSLArrayRValue, } diff --git a/sources/ClangSharp.Interop/clangsharp/CX_DeclKind.cs b/sources/ClangSharp.Interop/clangsharp/CX_DeclKind.cs index 3e3dbbe6..4b54d0c8 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_DeclKind.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_DeclKind.cs @@ -7,13 +7,14 @@ public enum CX_DeclKind { CX_DeclKind_Invalid, CX_DeclKind_TranslationUnit, + CX_DeclKind_TopLevelStmt, CX_DeclKind_RequiresExprBody, + CX_DeclKind_OutlinedFunction, CX_DeclKind_LinkageSpec, CX_DeclKind_ExternCContext, CX_DeclKind_Export, CX_DeclKind_Captured, CX_DeclKind_Block, - CX_DeclKind_TopLevelStmt, CX_DeclKind_StaticAssert, CX_DeclKind_PragmaDetectMismatch, CX_DeclKind_PragmaComment, diff --git a/sources/ClangSharp.Interop/clangsharp/CX_FloatingSemantics.cs b/sources/ClangSharp.Interop/clangsharp/CX_FloatingSemantics.cs index e76a082d..4cf9f909 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_FloatingSemantics.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_FloatingSemantics.cs @@ -12,12 +12,19 @@ public enum CX_FloatingSemantics CX_FLK_IEEEdouble, CX_FLK_IEEEquad, CX_FLK_PPCDoubleDouble, + CX_FLK_PPCDoubleDoubleLegacy, CX_FLK_Float8E5M2, CX_FLK_Float8E5M2FNUZ, + CX_FLK_Float8E4M3, CX_FLK_Float8E4M3FN, CX_FLK_Float8E4M3FNUZ, CX_FLK_Float8E4M3B11FNUZ, + CX_FLK_Float8E3M4, CX_FLK_FloatTF32, + CX_FLK_Float8E8M0FNU, + CX_FLK_Float6E3M2FN, + CX_FLK_Float6E2M3FN, + CX_FLK_Float4E2M1FN, CX_FLK_x87DoubleExtended, CX_FLK_MaxSemantics = CX_FLK_x87DoubleExtended, } diff --git a/sources/ClangSharp.Interop/clangsharp/CX_StmtClass.cs b/sources/ClangSharp.Interop/clangsharp/CX_StmtClass.cs index 0c5dba6f..3d4cfc6d 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_StmtClass.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_StmtClass.cs @@ -27,11 +27,13 @@ public enum CX_StmtClass CX_StmtClass_PredefinedExpr, CX_StmtClass_ParenListExpr, CX_StmtClass_ParenExpr, + CX_StmtClass_PackIndexingExpr, CX_StmtClass_PackExpansionExpr, CX_StmtClass_UnresolvedMemberExpr, CX_StmtClass_UnresolvedLookupExpr, CX_StmtClass_FirstOverloadExpr = CX_StmtClass_UnresolvedMemberExpr, CX_StmtClass_LastOverloadExpr = CX_StmtClass_UnresolvedLookupExpr, + CX_StmtClass_OpenACCAsteriskSizeExpr, CX_StmtClass_OpaqueValueExpr, CX_StmtClass_OffsetOfExpr, CX_StmtClass_ObjCSubscriptRefExpr, @@ -51,7 +53,6 @@ public enum CX_StmtClass CX_StmtClass_ObjCArrayLiteral, CX_StmtClass_OMPIteratorExpr, CX_StmtClass_OMPArrayShapingExpr, - CX_StmtClass_OMPArraySectionExpr, CX_StmtClass_NoInitExpr, CX_StmtClass_MemberExpr, CX_StmtClass_MatrixSubscriptExpr, @@ -63,6 +64,7 @@ public enum CX_StmtClass CX_StmtClass_InitListExpr, CX_StmtClass_ImplicitValueInitExpr, CX_StmtClass_ImaginaryLiteral, + CX_StmtClass_HLSLOutArgExpr, CX_StmtClass_GenericSelectionExpr, CX_StmtClass_GNUNullExpr, CX_StmtClass_FunctionParmPackExpr, @@ -74,6 +76,7 @@ public enum CX_StmtClass CX_StmtClass_FixedPointLiteral, CX_StmtClass_ExtVectorElementExpr, CX_StmtClass_ExpressionTraitExpr, + CX_StmtClass_EmbedExpr, CX_StmtClass_DesignatedInitUpdateExpr, CX_StmtClass_DesignatedInitExpr, CX_StmtClass_DependentScopeDeclRefExpr, @@ -145,6 +148,7 @@ public enum CX_StmtClass CX_StmtClass_AsTypeExpr, CX_StmtClass_ArrayTypeTraitExpr, CX_StmtClass_ArraySubscriptExpr, + CX_StmtClass_ArraySectionExpr, CX_StmtClass_ArrayInitLoopExpr, CX_StmtClass_ArrayInitIndexExpr, CX_StmtClass_AddrLabelExpr, @@ -162,11 +166,28 @@ public enum CX_StmtClass CX_StmtClass_CaseStmt, CX_StmtClass_FirstSwitchCase = CX_StmtClass_DefaultStmt, CX_StmtClass_LastSwitchCase = CX_StmtClass_CaseStmt, + CX_StmtClass_SYCLKernelCallStmt, CX_StmtClass_SEHTryStmt, CX_StmtClass_SEHLeaveStmt, CX_StmtClass_SEHFinallyStmt, CX_StmtClass_SEHExceptStmt, CX_StmtClass_ReturnStmt, + CX_StmtClass_OpenACCWaitConstruct, + CX_StmtClass_OpenACCUpdateConstruct, + CX_StmtClass_OpenACCShutdownConstruct, + CX_StmtClass_OpenACCSetConstruct, + CX_StmtClass_OpenACCInitConstruct, + CX_StmtClass_OpenACCExitDataConstruct, + CX_StmtClass_OpenACCEnterDataConstruct, + CX_StmtClass_OpenACCLoopConstruct, + CX_StmtClass_OpenACCHostDataConstruct, + CX_StmtClass_OpenACCDataConstruct, + CX_StmtClass_OpenACCComputeConstruct, + CX_StmtClass_OpenACCCombinedConstruct, + CX_StmtClass_FirstOpenACCAssociatedStmtConstruct = CX_StmtClass_OpenACCLoopConstruct, + CX_StmtClass_LastOpenACCAssociatedStmtConstruct = CX_StmtClass_OpenACCCombinedConstruct, + CX_StmtClass_FirstOpenACCConstructStmt = CX_StmtClass_OpenACCWaitConstruct, + CX_StmtClass_LastOpenACCConstructStmt = CX_StmtClass_OpenACCCombinedConstruct, CX_StmtClass_ObjCForCollectionStmt, CX_StmtClass_ObjCAutoreleasePoolStmt, CX_StmtClass_ObjCAtTryStmt, @@ -202,8 +223,10 @@ public enum CX_StmtClass CX_StmtClass_OMPMaskedDirective, CX_StmtClass_OMPUnrollDirective, CX_StmtClass_OMPTileDirective, + CX_StmtClass_OMPReverseDirective, + CX_StmtClass_OMPInterchangeDirective, CX_StmtClass_FirstOMPLoopTransformationDirective = CX_StmtClass_OMPUnrollDirective, - CX_StmtClass_LastOMPLoopTransformationDirective = CX_StmtClass_OMPTileDirective, + CX_StmtClass_LastOMPLoopTransformationDirective = CX_StmtClass_OMPInterchangeDirective, CX_StmtClass_OMPTeamsGenericLoopDirective, CX_StmtClass_OMPTeamsDistributeSimdDirective, CX_StmtClass_OMPTeamsDistributeParallelForSimdDirective, @@ -252,8 +275,9 @@ public enum CX_StmtClass CX_StmtClass_OMPCancelDirective, CX_StmtClass_OMPBarrierDirective, CX_StmtClass_OMPAtomicDirective, + CX_StmtClass_OMPAssumeDirective, CX_StmtClass_FirstOMPExecutableDirective = CX_StmtClass_OMPTeamsDirective, - CX_StmtClass_LastOMPExecutableDirective = CX_StmtClass_OMPAtomicDirective, + CX_StmtClass_LastOMPExecutableDirective = CX_StmtClass_OMPAssumeDirective, CX_StmtClass_OMPCanonicalLoop, CX_StmtClass_NullStmt, CX_StmtClass_MSDependentExistsStmt, diff --git a/sources/ClangSharp.Interop/clangsharp/CX_TemplateNameKind.cs b/sources/ClangSharp.Interop/clangsharp/CX_TemplateNameKind.cs index e0358a00..32a7bace 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_TemplateNameKind.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_TemplateNameKind.cs @@ -14,4 +14,5 @@ public enum CX_TemplateNameKind CX_TNK_SubstTemplateTemplateParm, CX_TNK_SubstTemplateTemplateParmPack, CX_TNK_UsingTemplate, + CX_TNK_DeducedTemplate, } diff --git a/sources/ClangSharp.Interop/clangsharp/CX_TypeClass.cs b/sources/ClangSharp.Interop/clangsharp/CX_TypeClass.cs index f6a7e4c7..81708516 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_TypeClass.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_TypeClass.cs @@ -9,6 +9,7 @@ public enum CX_TypeClass CX_TypeClass_Adjusted, CX_TypeClass_Decayed, CX_TypeClass_ConstantArray, + CX_TypeClass_ArrayParameter, CX_TypeClass_DependentSizedArray, CX_TypeClass_IncompleteArray, CX_TypeClass_VariableArray, @@ -17,6 +18,7 @@ public enum CX_TypeClass CX_TypeClass_BTFTagAttributed, CX_TypeClass_BitInt, CX_TypeClass_BlockPointer, + CX_TypeClass_CountAttributed, CX_TypeClass_Builtin, CX_TypeClass_Complex, CX_TypeClass_Decltype, @@ -31,6 +33,7 @@ public enum CX_TypeClass CX_TypeClass_Elaborated, CX_TypeClass_FunctionNoProto, CX_TypeClass_FunctionProto, + CX_TypeClass_HLSLAttributedResource, CX_TypeClass_InjectedClassName, CX_TypeClass_MacroQualified, CX_TypeClass_ConstantMatrix, @@ -41,6 +44,7 @@ public enum CX_TypeClass CX_TypeClass_ObjCInterface, CX_TypeClass_ObjCTypeParam, CX_TypeClass_PackExpansion, + CX_TypeClass_PackIndexing, CX_TypeClass_Paren, CX_TypeClass_Pipe, CX_TypeClass_Pointer, diff --git a/sources/ClangSharp.Interop/clangsharp/CX_UnaryExprOrTypeTrait.cs b/sources/ClangSharp.Interop/clangsharp/CX_UnaryExprOrTypeTrait.cs index 24a2b68c..68e94aed 100644 --- a/sources/ClangSharp.Interop/clangsharp/CX_UnaryExprOrTypeTrait.cs +++ b/sources/ClangSharp.Interop/clangsharp/CX_UnaryExprOrTypeTrait.cs @@ -10,8 +10,9 @@ public enum CX_UnaryExprOrTypeTrait CX_UETT_DataSizeOf, CX_UETT_AlignOf, CX_UETT_PreferredAlignOf, + CX_UETT_PtrAuthTypeDiscriminator, CX_UETT_VecStep, CX_UETT_OpenMPRequiredSimdAlign, CX_UETT_VectorElements, - CX_UETT_Last = -1 + 1 + 1 + 1 + 1 + 1 + 1 + 1, + CX_UETT_Last = -1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1, } diff --git a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitDecl.cs b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitDecl.cs index 2e37bb02..5a21f8d5 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitDecl.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitDecl.cs @@ -374,8 +374,7 @@ private void VisitEnumDecl(EnumDecl enumDecl) { var typeName = GetRemappedTypeName(enumDecl, context: null, enumDecl.IntegerType, out var nativeTypeName); - desc = new EnumDesc() - { + desc = new EnumDesc() { AccessSpecifier = accessSpecifier, TypeName = typeName, EscapedName = escapedName, @@ -662,8 +661,7 @@ private void VisitFunctionDecl(FunctionDecl functionDecl) if (needsReturnFixup) { _outputBuilder.WriteParameterSeparator(); - parameterDesc = new() - { + parameterDesc = new() { Name = "_result", Type = $"{returnTypeName}*" }; @@ -685,8 +683,7 @@ private void VisitFunctionDecl(FunctionDecl functionDecl) { _outputBuilder.WriteParameterSeparator(); } - var parameterDesc = new ParameterDesc - { + var parameterDesc = new ParameterDesc { Name = "", Type = "__arglist" }; @@ -815,9 +812,11 @@ void VisitCtorInitializers(CXXConstructorDecl cxxConstructorDecl, int firstCtorI { continue; } - - var memberRef = (Ref)cxxConstructorDecl.CursorChildren[i]; - var memberInit = (Stmt)cxxConstructorDecl.CursorChildren[++i]; + if (cxxConstructorDecl.CursorChildren[i] is not Ref memberRef + || cxxConstructorDecl.CursorChildren[++i] is not Stmt memberInit) + { + continue; + } if (memberInit is ImplicitValueInitExpr) { @@ -827,7 +826,7 @@ void VisitCtorInitializers(CXXConstructorDecl cxxConstructorDecl, int firstCtorI var memberRefName = GetRemappedCursorName(memberRef.Referenced); var memberInitName = memberInit.Spelling; - if (memberInit is CastExpr {SubExprAsWritten: DeclRefExpr declRefExpr}) + if (memberInit is CastExpr { SubExprAsWritten: DeclRefExpr declRefExpr }) { memberInitName = GetRemappedCursorName(declRefExpr.Decl); } @@ -859,6 +858,7 @@ void VisitCtorInitializers(CXXConstructorDecl cxxConstructorDecl, int firstCtorI { _outputBuilder.EndConstructorInitializer(); } + } } } @@ -1319,8 +1319,7 @@ void ForTypedefDecl(ParmVarDecl parmVarDecl, TypedefDecl typedefDecl) escapedName += index; } - var desc = new ParameterDesc - { + var desc = new ParameterDesc { Name = escapedName, Type = typeName, NativeTypeName = nativeTypeName, @@ -2139,8 +2138,7 @@ void OutputVtblEntry(CXXRecordDecl cxxRecordDecl, CXXMethodDecl cxxMethodDecl) var remappedName = FixupNameForMultipleHits(cxxMethodDecl); var escapedName = EscapeAndStripMethodName(remappedName); - var desc = new FieldDesc - { + var desc = new FieldDesc { AccessSpecifier = AccessSpecifier.Public, NativeTypeName = nativeTypeName, EscapedName = escapedName, @@ -2954,7 +2952,7 @@ void VisitConstantOrIncompleteArrayFieldDecl(RecordDecl recordDecl, FieldDecl co var arraySize = Math.Max((arrayType as ConstantArrayType)?.Size ?? 0, 1); var totalSize = arraySize; var totalSizeString = $"{arraySize}"; - var sizePerDimension = new List<(long index, long size)>() {(0, arraySize) }; + var sizePerDimension = new List<(long index, long size)>() { (0, arraySize) }; while (IsTypeConstantOrIncompleteArray(recordDecl, elementType, out var subArrayType)) { @@ -3875,7 +3873,7 @@ private bool IsConstant(string targetTypeName, Expr initExpr) } // case CX_StmtClass_NoInitExpr: - // case CX_StmtClass_OMPArraySectionExpr: + // case CX_StmtClass_ArraySectionExpr: // case CX_StmtClass_ObjCArrayLiteral: // case CX_StmtClass_ObjCAvailabilityCheckExpr: // case CX_StmtClass_ObjCBoolLiteralExpr: diff --git a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitStmt.cs b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitStmt.cs index 3fd39a09..abd5cf64 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitStmt.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitStmt.cs @@ -2555,7 +2555,7 @@ private void VisitStmt(Stmt stmt) } // case CX_StmtClass_NoInitExpr: - // case CX_StmtClass_OMPArraySectionExpr: + // case CX_StmtClass_ArraySectionExpr: // case CX_StmtClass_ObjCArrayLiteral: // case CX_StmtClass_ObjCAvailabilityCheckExpr: // case CX_StmtClass_ObjCBoolLiteralExpr: diff --git a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs index d3a32d63..ed878237 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs @@ -37,8 +37,8 @@ public sealed partial class PInvokeGenerator : IDisposable private static readonly string[] s_doubleColonSeparator = ["::"]; private static readonly char[] s_doubleQuoteSeparator = ['"']; - private const string ExpectedClangVersion = "version 18.1"; - private const string ExpectedClangSharpVersion = "version 18.1"; + private const string ExpectedClangVersion = "version 20.1"; + private const string ExpectedClangSharpVersion = "version 20.1"; private readonly CXIndex _index; private readonly OutputBuilderFactory _outputBuilderFactory; @@ -5803,7 +5803,7 @@ private bool IsUnchecked(string targetTypeName, Stmt stmt) } // case CX_StmtClass_NoInitExpr: - // case CX_StmtClass_OMPArraySectionExpr: + // case CX_StmtClass_ArraySectionExpr: // case CX_StmtClass_ObjCArrayLiteral: // case CX_StmtClass_ObjCAvailabilityCheckExpr: // case CX_StmtClass_ObjCBoolLiteralExpr: diff --git a/sources/ClangSharp/Cursors/Attrs/Attr.cs b/sources/ClangSharp/Cursors/Attrs/Attr.cs index 435f3832..95d1bcfb 100644 --- a/sources/ClangSharp/Cursors/Attrs/Attr.cs +++ b/sources/ClangSharp/Cursors/Attrs/Attr.cs @@ -18,371 +18,406 @@ private protected Attr(CXCursor handle) : base(handle, handle.Kind) internal static new Attr Create(CXCursor handle) => handle.AttrKind switch { CX_AttrKind_Invalid => new Attr(handle), - CX_AttrKind_AddressSpace => new TypeAttr(handle), - CX_AttrKind_AnnotateType => new TypeAttr(handle), - CX_AttrKind_ArmIn => new TypeAttr(handle), - CX_AttrKind_ArmInOut => new TypeAttr(handle), - CX_AttrKind_ArmMveStrictPolymorphism => new TypeAttr(handle), - CX_AttrKind_ArmOut => new TypeAttr(handle), - CX_AttrKind_ArmPreserves => new TypeAttr(handle), - CX_AttrKind_ArmStreaming => new TypeAttr(handle), - CX_AttrKind_ArmStreamingCompatible => new TypeAttr(handle), - CX_AttrKind_BTFTypeTag => new TypeAttr(handle), - CX_AttrKind_CmseNSCall => new TypeAttr(handle), - CX_AttrKind_HLSLGroupSharedAddressSpace => new TypeAttr(handle), - CX_AttrKind_HLSLParamModifier => new TypeAttr(handle), - CX_AttrKind_NoDeref => new TypeAttr(handle), - CX_AttrKind_ObjCGC => new TypeAttr(handle), - CX_AttrKind_ObjCInertUnsafeUnretained => new TypeAttr(handle), - CX_AttrKind_ObjCKindOf => new TypeAttr(handle), - CX_AttrKind_OpenCLConstantAddressSpace => new TypeAttr(handle), - CX_AttrKind_OpenCLGenericAddressSpace => new TypeAttr(handle), - CX_AttrKind_OpenCLGlobalAddressSpace => new TypeAttr(handle), - CX_AttrKind_OpenCLGlobalDeviceAddressSpace => new TypeAttr(handle), - CX_AttrKind_OpenCLGlobalHostAddressSpace => new TypeAttr(handle), - CX_AttrKind_OpenCLLocalAddressSpace => new TypeAttr(handle), - CX_AttrKind_OpenCLPrivateAddressSpace => new TypeAttr(handle), - CX_AttrKind_Ptr32 => new TypeAttr(handle), - CX_AttrKind_Ptr64 => new TypeAttr(handle), - CX_AttrKind_SPtr => new TypeAttr(handle), - CX_AttrKind_TypeNonNull => new TypeAttr(handle), - CX_AttrKind_TypeNullUnspecified => new TypeAttr(handle), - CX_AttrKind_TypeNullable => new TypeAttr(handle), - CX_AttrKind_TypeNullableResult => new TypeAttr(handle), - CX_AttrKind_UPtr => new TypeAttr(handle), - CX_AttrKind_WebAssemblyFuncref => new TypeAttr(handle), - CX_AttrKind_CodeAlign => new StmtAttr(handle), - CX_AttrKind_FallThrough => new StmtAttr(handle), - CX_AttrKind_Likely => new StmtAttr(handle), - CX_AttrKind_MustTail => new StmtAttr(handle), - CX_AttrKind_OpenCLUnrollHint => new StmtAttr(handle), - CX_AttrKind_Unlikely => new StmtAttr(handle), - CX_AttrKind_AlwaysInline => new DeclOrStmtAttr(handle), - CX_AttrKind_NoInline => new DeclOrStmtAttr(handle), - CX_AttrKind_NoMerge => new DeclOrStmtAttr(handle), - CX_AttrKind_Suppress => new DeclOrStmtAttr(handle), - CX_AttrKind_AArch64SVEPcs => new InheritableAttr(handle), - CX_AttrKind_AArch64VectorPcs => new InheritableAttr(handle), - CX_AttrKind_AMDGPUKernelCall => new InheritableAttr(handle), - CX_AttrKind_AcquireHandle => new InheritableAttr(handle), - CX_AttrKind_AnyX86NoCfCheck => new InheritableAttr(handle), - CX_AttrKind_CDecl => new InheritableAttr(handle), - CX_AttrKind_FastCall => new InheritableAttr(handle), - CX_AttrKind_IntelOclBicc => new InheritableAttr(handle), - CX_AttrKind_LifetimeBound => new InheritableAttr(handle), - CX_AttrKind_M68kRTD => new InheritableAttr(handle), - CX_AttrKind_MSABI => new InheritableAttr(handle), - CX_AttrKind_NSReturnsRetained => new InheritableAttr(handle), - CX_AttrKind_ObjCOwnership => new InheritableAttr(handle), - CX_AttrKind_Pascal => new InheritableAttr(handle), - CX_AttrKind_Pcs => new InheritableAttr(handle), - CX_AttrKind_PreserveAll => new InheritableAttr(handle), - CX_AttrKind_PreserveMost => new InheritableAttr(handle), - CX_AttrKind_RegCall => new InheritableAttr(handle), - CX_AttrKind_StdCall => new InheritableAttr(handle), - CX_AttrKind_SwiftAsyncCall => new InheritableAttr(handle), - CX_AttrKind_SwiftCall => new InheritableAttr(handle), - CX_AttrKind_SysVABI => new InheritableAttr(handle), - CX_AttrKind_ThisCall => new InheritableAttr(handle), - CX_AttrKind_VectorCall => new InheritableAttr(handle), - CX_AttrKind_SwiftAsyncContext => new ParameterABIAttr(handle), - CX_AttrKind_SwiftContext => new ParameterABIAttr(handle), - CX_AttrKind_SwiftErrorResult => new ParameterABIAttr(handle), - CX_AttrKind_SwiftIndirectResult => new ParameterABIAttr(handle), - CX_AttrKind_Annotate => new InheritableParamAttr(handle), - CX_AttrKind_CFConsumed => new InheritableParamAttr(handle), - CX_AttrKind_CarriesDependency => new InheritableParamAttr(handle), - CX_AttrKind_NSConsumed => new InheritableParamAttr(handle), - CX_AttrKind_NonNull => new InheritableParamAttr(handle), - CX_AttrKind_OSConsumed => new InheritableParamAttr(handle), - CX_AttrKind_PassObjectSize => new InheritableParamAttr(handle), - CX_AttrKind_ReleaseHandle => new InheritableParamAttr(handle), - CX_AttrKind_UseHandle => new InheritableParamAttr(handle), - CX_AttrKind_HLSLSV_DispatchThreadID => new HLSLAnnotationAttr(handle), - CX_AttrKind_HLSLSV_GroupIndex => new HLSLAnnotationAttr(handle), - CX_AttrKind_AMDGPUFlatWorkGroupSize => new InheritableAttr(handle), - CX_AttrKind_AMDGPUNumSGPR => new InheritableAttr(handle), - CX_AttrKind_AMDGPUNumVGPR => new InheritableAttr(handle), - CX_AttrKind_AMDGPUWavesPerEU => new InheritableAttr(handle), - CX_AttrKind_ARMInterrupt => new InheritableAttr(handle), - CX_AttrKind_AVRInterrupt => new InheritableAttr(handle), - CX_AttrKind_AVRSignal => new InheritableAttr(handle), - CX_AttrKind_AcquireCapability => new InheritableAttr(handle), - CX_AttrKind_AcquiredAfter => new InheritableAttr(handle), - CX_AttrKind_AcquiredBefore => new InheritableAttr(handle), - CX_AttrKind_AlignMac68k => new InheritableAttr(handle), - CX_AttrKind_AlignNatural => new InheritableAttr(handle), - CX_AttrKind_Aligned => new InheritableAttr(handle), - CX_AttrKind_AllocAlign => new InheritableAttr(handle), - CX_AttrKind_AllocSize => new InheritableAttr(handle), - CX_AttrKind_AlwaysDestroy => new InheritableAttr(handle), - CX_AttrKind_AnalyzerNoReturn => new InheritableAttr(handle), - CX_AttrKind_AnyX86Interrupt => new InheritableAttr(handle), - CX_AttrKind_AnyX86NoCallerSavedRegisters => new InheritableAttr(handle), - CX_AttrKind_ArcWeakrefUnavailable => new InheritableAttr(handle), - CX_AttrKind_ArgumentWithTypeTag => new InheritableAttr(handle), - CX_AttrKind_ArmBuiltinAlias => new InheritableAttr(handle), - CX_AttrKind_ArmLocallyStreaming => new InheritableAttr(handle), - CX_AttrKind_ArmNew => new InheritableAttr(handle), - CX_AttrKind_Artificial => new InheritableAttr(handle), - CX_AttrKind_AsmLabel => new InheritableAttr(handle), - CX_AttrKind_AssertCapability => new InheritableAttr(handle), - CX_AttrKind_AssertExclusiveLock => new InheritableAttr(handle), - CX_AttrKind_AssertSharedLock => new InheritableAttr(handle), - CX_AttrKind_AssumeAligned => new InheritableAttr(handle), - CX_AttrKind_Assumption => new InheritableAttr(handle), - CX_AttrKind_Availability => new InheritableAttr(handle), - CX_AttrKind_AvailableOnlyInDefaultEvalMethod => new InheritableAttr(handle), - CX_AttrKind_BPFPreserveAccessIndex => new InheritableAttr(handle), - CX_AttrKind_BPFPreserveStaticOffset => new InheritableAttr(handle), - CX_AttrKind_BTFDeclTag => new InheritableAttr(handle), - CX_AttrKind_Blocks => new InheritableAttr(handle), - CX_AttrKind_Builtin => new InheritableAttr(handle), - CX_AttrKind_C11NoReturn => new InheritableAttr(handle), - CX_AttrKind_CFAuditedTransfer => new InheritableAttr(handle), - CX_AttrKind_CFGuard => new InheritableAttr(handle), - CX_AttrKind_CFICanonicalJumpTable => new InheritableAttr(handle), - CX_AttrKind_CFReturnsNotRetained => new InheritableAttr(handle), - CX_AttrKind_CFReturnsRetained => new InheritableAttr(handle), - CX_AttrKind_CFUnknownTransfer => new InheritableAttr(handle), - CX_AttrKind_CPUDispatch => new InheritableAttr(handle), - CX_AttrKind_CPUSpecific => new InheritableAttr(handle), - CX_AttrKind_CUDAConstant => new InheritableAttr(handle), - CX_AttrKind_CUDADevice => new InheritableAttr(handle), - CX_AttrKind_CUDADeviceBuiltinSurfaceType => new InheritableAttr(handle), - CX_AttrKind_CUDADeviceBuiltinTextureType => new InheritableAttr(handle), - CX_AttrKind_CUDAGlobal => new InheritableAttr(handle), - CX_AttrKind_CUDAHost => new InheritableAttr(handle), - CX_AttrKind_CUDAInvalidTarget => new InheritableAttr(handle), - CX_AttrKind_CUDALaunchBounds => new InheritableAttr(handle), - CX_AttrKind_CUDAShared => new InheritableAttr(handle), - CX_AttrKind_CXX11NoReturn => new InheritableAttr(handle), - CX_AttrKind_CallableWhen => new InheritableAttr(handle), - CX_AttrKind_Callback => new InheritableAttr(handle), - CX_AttrKind_Capability => new InheritableAttr(handle), - CX_AttrKind_CapturedRecord => new InheritableAttr(handle), - CX_AttrKind_Cleanup => new InheritableAttr(handle), - CX_AttrKind_CmseNSEntry => new InheritableAttr(handle), - CX_AttrKind_CodeModel => new InheritableAttr(handle), - CX_AttrKind_CodeSeg => new InheritableAttr(handle), - CX_AttrKind_Cold => new InheritableAttr(handle), - CX_AttrKind_Common => new InheritableAttr(handle), - CX_AttrKind_Const => new InheritableAttr(handle), - CX_AttrKind_ConstInit => new InheritableAttr(handle), - CX_AttrKind_Constructor => new InheritableAttr(handle), - CX_AttrKind_Consumable => new InheritableAttr(handle), - CX_AttrKind_ConsumableAutoCast => new InheritableAttr(handle), - CX_AttrKind_ConsumableSetOnRead => new InheritableAttr(handle), - CX_AttrKind_Convergent => new InheritableAttr(handle), - CX_AttrKind_CoroDisableLifetimeBound => new InheritableAttr(handle), - CX_AttrKind_CoroLifetimeBound => new InheritableAttr(handle), - CX_AttrKind_CoroOnlyDestroyWhenComplete => new InheritableAttr(handle), - CX_AttrKind_CoroReturnType => new InheritableAttr(handle), - CX_AttrKind_CoroWrapper => new InheritableAttr(handle), - CX_AttrKind_CountedBy => new InheritableAttr(handle), - CX_AttrKind_DLLExport => new InheritableAttr(handle), - CX_AttrKind_DLLExportStaticLocal => new InheritableAttr(handle), - CX_AttrKind_DLLImport => new InheritableAttr(handle), - CX_AttrKind_DLLImportStaticLocal => new InheritableAttr(handle), - CX_AttrKind_Deprecated => new InheritableAttr(handle), - CX_AttrKind_Destructor => new InheritableAttr(handle), - CX_AttrKind_DiagnoseAsBuiltin => new InheritableAttr(handle), - CX_AttrKind_DiagnoseIf => new InheritableAttr(handle), - CX_AttrKind_DisableSanitizerInstrumentation => new InheritableAttr(handle), - CX_AttrKind_DisableTailCalls => new InheritableAttr(handle), - CX_AttrKind_EmptyBases => new InheritableAttr(handle), - CX_AttrKind_EnableIf => new InheritableAttr(handle), - CX_AttrKind_EnforceTCB => new InheritableAttr(handle), - CX_AttrKind_EnforceTCBLeaf => new InheritableAttr(handle), - CX_AttrKind_EnumExtensibility => new InheritableAttr(handle), - CX_AttrKind_Error => new InheritableAttr(handle), - CX_AttrKind_ExcludeFromExplicitInstantiation => new InheritableAttr(handle), - CX_AttrKind_ExclusiveTrylockFunction => new InheritableAttr(handle), - CX_AttrKind_ExternalSourceSymbol => new InheritableAttr(handle), - CX_AttrKind_Final => new InheritableAttr(handle), - CX_AttrKind_FlagEnum => new InheritableAttr(handle), - CX_AttrKind_Flatten => new InheritableAttr(handle), - CX_AttrKind_Format => new InheritableAttr(handle), - CX_AttrKind_FormatArg => new InheritableAttr(handle), - CX_AttrKind_FunctionReturnThunks => new InheritableAttr(handle), - CX_AttrKind_GNUInline => new InheritableAttr(handle), - CX_AttrKind_GuardedBy => new InheritableAttr(handle), - CX_AttrKind_GuardedVar => new InheritableAttr(handle), - CX_AttrKind_HIPManaged => new InheritableAttr(handle), - CX_AttrKind_HLSLNumThreads => new InheritableAttr(handle), - CX_AttrKind_HLSLResource => new InheritableAttr(handle), - CX_AttrKind_HLSLResourceBinding => new InheritableAttr(handle), - CX_AttrKind_HLSLShader => new InheritableAttr(handle), - CX_AttrKind_Hot => new InheritableAttr(handle), - CX_AttrKind_IBAction => new InheritableAttr(handle), - CX_AttrKind_IBOutlet => new InheritableAttr(handle), - CX_AttrKind_IBOutletCollection => new InheritableAttr(handle), - CX_AttrKind_InitPriority => new InheritableAttr(handle), - CX_AttrKind_InternalLinkage => new InheritableAttr(handle), - CX_AttrKind_LTOVisibilityPublic => new InheritableAttr(handle), - CX_AttrKind_LayoutVersion => new InheritableAttr(handle), - CX_AttrKind_Leaf => new InheritableAttr(handle), - CX_AttrKind_LockReturned => new InheritableAttr(handle), - CX_AttrKind_LocksExcluded => new InheritableAttr(handle), - CX_AttrKind_M68kInterrupt => new InheritableAttr(handle), - CX_AttrKind_MIGServerRoutine => new InheritableAttr(handle), - CX_AttrKind_MSAllocator => new InheritableAttr(handle), - CX_AttrKind_MSConstexpr => new InheritableAttr(handle), - CX_AttrKind_MSInheritance => new InheritableAttr(handle), - CX_AttrKind_MSNoVTable => new InheritableAttr(handle), - CX_AttrKind_MSP430Interrupt => new InheritableAttr(handle), - CX_AttrKind_MSStruct => new InheritableAttr(handle), - CX_AttrKind_MSVtorDisp => new InheritableAttr(handle), - CX_AttrKind_MaxFieldAlignment => new InheritableAttr(handle), - CX_AttrKind_MayAlias => new InheritableAttr(handle), - CX_AttrKind_MaybeUndef => new InheritableAttr(handle), - CX_AttrKind_MicroMips => new InheritableAttr(handle), - CX_AttrKind_MinSize => new InheritableAttr(handle), - CX_AttrKind_MinVectorWidth => new InheritableAttr(handle), - CX_AttrKind_Mips16 => new InheritableAttr(handle), - CX_AttrKind_MipsInterrupt => new InheritableAttr(handle), - CX_AttrKind_MipsLongCall => new InheritableAttr(handle), - CX_AttrKind_MipsShortCall => new InheritableAttr(handle), - CX_AttrKind_NSConsumesSelf => new InheritableAttr(handle), - CX_AttrKind_NSErrorDomain => new InheritableAttr(handle), - CX_AttrKind_NSReturnsAutoreleased => new InheritableAttr(handle), - CX_AttrKind_NSReturnsNotRetained => new InheritableAttr(handle), - CX_AttrKind_NVPTXKernel => new InheritableAttr(handle), - CX_AttrKind_Naked => new InheritableAttr(handle), - CX_AttrKind_NoAlias => new InheritableAttr(handle), - CX_AttrKind_NoCommon => new InheritableAttr(handle), - CX_AttrKind_NoDebug => new InheritableAttr(handle), - CX_AttrKind_NoDestroy => new InheritableAttr(handle), - CX_AttrKind_NoDuplicate => new InheritableAttr(handle), - CX_AttrKind_NoInstrumentFunction => new InheritableAttr(handle), - CX_AttrKind_NoMicroMips => new InheritableAttr(handle), - CX_AttrKind_NoMips16 => new InheritableAttr(handle), - CX_AttrKind_NoProfileFunction => new InheritableAttr(handle), - CX_AttrKind_NoRandomizeLayout => new InheritableAttr(handle), - CX_AttrKind_NoReturn => new InheritableAttr(handle), - CX_AttrKind_NoSanitize => new InheritableAttr(handle), - CX_AttrKind_NoSpeculativeLoadHardening => new InheritableAttr(handle), - CX_AttrKind_NoSplitStack => new InheritableAttr(handle), - CX_AttrKind_NoStackProtector => new InheritableAttr(handle), - CX_AttrKind_NoThreadSafetyAnalysis => new InheritableAttr(handle), - CX_AttrKind_NoThrow => new InheritableAttr(handle), - CX_AttrKind_NoUniqueAddress => new InheritableAttr(handle), - CX_AttrKind_NoUwtable => new InheritableAttr(handle), - CX_AttrKind_NotTailCalled => new InheritableAttr(handle), - CX_AttrKind_OMPAllocateDecl => new InheritableAttr(handle), - CX_AttrKind_OMPCaptureNoInit => new InheritableAttr(handle), - CX_AttrKind_OMPDeclareTargetDecl => new InheritableAttr(handle), - CX_AttrKind_OMPDeclareVariant => new InheritableAttr(handle), - CX_AttrKind_OMPThreadPrivateDecl => new InheritableAttr(handle), - CX_AttrKind_OSConsumesThis => new InheritableAttr(handle), - CX_AttrKind_OSReturnsNotRetained => new InheritableAttr(handle), - CX_AttrKind_OSReturnsRetained => new InheritableAttr(handle), - CX_AttrKind_OSReturnsRetainedOnNonZero => new InheritableAttr(handle), - CX_AttrKind_OSReturnsRetainedOnZero => new InheritableAttr(handle), - CX_AttrKind_ObjCBridge => new InheritableAttr(handle), - CX_AttrKind_ObjCBridgeMutable => new InheritableAttr(handle), - CX_AttrKind_ObjCBridgeRelated => new InheritableAttr(handle), - CX_AttrKind_ObjCException => new InheritableAttr(handle), - CX_AttrKind_ObjCExplicitProtocolImpl => new InheritableAttr(handle), - CX_AttrKind_ObjCExternallyRetained => new InheritableAttr(handle), - CX_AttrKind_ObjCIndependentClass => new InheritableAttr(handle), - CX_AttrKind_ObjCMethodFamily => new InheritableAttr(handle), - CX_AttrKind_ObjCNSObject => new InheritableAttr(handle), - CX_AttrKind_ObjCPreciseLifetime => new InheritableAttr(handle), - CX_AttrKind_ObjCRequiresPropertyDefs => new InheritableAttr(handle), - CX_AttrKind_ObjCRequiresSuper => new InheritableAttr(handle), - CX_AttrKind_ObjCReturnsInnerPointer => new InheritableAttr(handle), - CX_AttrKind_ObjCRootClass => new InheritableAttr(handle), - CX_AttrKind_ObjCSubclassingRestricted => new InheritableAttr(handle), - CX_AttrKind_OpenCLIntelReqdSubGroupSize => new InheritableAttr(handle), - CX_AttrKind_OpenCLKernel => new InheritableAttr(handle), - CX_AttrKind_OptimizeNone => new InheritableAttr(handle), - CX_AttrKind_Override => new InheritableAttr(handle), - CX_AttrKind_Owner => new InheritableAttr(handle), - CX_AttrKind_Ownership => new InheritableAttr(handle), - CX_AttrKind_Packed => new InheritableAttr(handle), - CX_AttrKind_ParamTypestate => new InheritableAttr(handle), - CX_AttrKind_PatchableFunctionEntry => new InheritableAttr(handle), - CX_AttrKind_Pointer => new InheritableAttr(handle), - CX_AttrKind_PragmaClangBSSSection => new InheritableAttr(handle), - CX_AttrKind_PragmaClangDataSection => new InheritableAttr(handle), - CX_AttrKind_PragmaClangRelroSection => new InheritableAttr(handle), - CX_AttrKind_PragmaClangRodataSection => new InheritableAttr(handle), - CX_AttrKind_PragmaClangTextSection => new InheritableAttr(handle), - CX_AttrKind_PreferredName => new InheritableAttr(handle), - CX_AttrKind_PreferredType => new InheritableAttr(handle), - CX_AttrKind_PtGuardedBy => new InheritableAttr(handle), - CX_AttrKind_PtGuardedVar => new InheritableAttr(handle), - CX_AttrKind_Pure => new InheritableAttr(handle), - CX_AttrKind_RISCVInterrupt => new InheritableAttr(handle), - CX_AttrKind_RandomizeLayout => new InheritableAttr(handle), - CX_AttrKind_ReadOnlyPlacement => new InheritableAttr(handle), - CX_AttrKind_Reinitializes => new InheritableAttr(handle), - CX_AttrKind_ReleaseCapability => new InheritableAttr(handle), - CX_AttrKind_ReqdWorkGroupSize => new InheritableAttr(handle), - CX_AttrKind_RequiresCapability => new InheritableAttr(handle), - CX_AttrKind_Restrict => new InheritableAttr(handle), - CX_AttrKind_Retain => new InheritableAttr(handle), - CX_AttrKind_ReturnTypestate => new InheritableAttr(handle), - CX_AttrKind_ReturnsNonNull => new InheritableAttr(handle), - CX_AttrKind_ReturnsTwice => new InheritableAttr(handle), - CX_AttrKind_SYCLKernel => new InheritableAttr(handle), - CX_AttrKind_SYCLSpecialClass => new InheritableAttr(handle), - CX_AttrKind_ScopedLockable => new InheritableAttr(handle), - CX_AttrKind_Section => new InheritableAttr(handle), - CX_AttrKind_SelectAny => new InheritableAttr(handle), - CX_AttrKind_Sentinel => new InheritableAttr(handle), - CX_AttrKind_SetTypestate => new InheritableAttr(handle), - CX_AttrKind_SharedTrylockFunction => new InheritableAttr(handle), - CX_AttrKind_SpeculativeLoadHardening => new InheritableAttr(handle), - CX_AttrKind_StandaloneDebug => new InheritableAttr(handle), - CX_AttrKind_StrictFP => new InheritableAttr(handle), - CX_AttrKind_StrictGuardStackCheck => new InheritableAttr(handle), - CX_AttrKind_SwiftAsync => new InheritableAttr(handle), - CX_AttrKind_SwiftAsyncError => new InheritableAttr(handle), - CX_AttrKind_SwiftAsyncName => new InheritableAttr(handle), - CX_AttrKind_SwiftAttr => new InheritableAttr(handle), - CX_AttrKind_SwiftBridge => new InheritableAttr(handle), - CX_AttrKind_SwiftBridgedTypedef => new InheritableAttr(handle), - CX_AttrKind_SwiftError => new InheritableAttr(handle), - CX_AttrKind_SwiftImportAsNonGeneric => new InheritableAttr(handle), - CX_AttrKind_SwiftImportPropertyAsAccessors => new InheritableAttr(handle), - CX_AttrKind_SwiftName => new InheritableAttr(handle), - CX_AttrKind_SwiftNewType => new InheritableAttr(handle), - CX_AttrKind_SwiftPrivate => new InheritableAttr(handle), - CX_AttrKind_TLSModel => new InheritableAttr(handle), - CX_AttrKind_Target => new InheritableAttr(handle), - CX_AttrKind_TargetClones => new InheritableAttr(handle), - CX_AttrKind_TargetVersion => new InheritableAttr(handle), - CX_AttrKind_TestTypestate => new InheritableAttr(handle), - CX_AttrKind_TransparentUnion => new InheritableAttr(handle), - CX_AttrKind_TrivialABI => new InheritableAttr(handle), - CX_AttrKind_TryAcquireCapability => new InheritableAttr(handle), - CX_AttrKind_TypeTagForDatatype => new InheritableAttr(handle), - CX_AttrKind_TypeVisibility => new InheritableAttr(handle), - CX_AttrKind_Unavailable => new InheritableAttr(handle), - CX_AttrKind_Uninitialized => new InheritableAttr(handle), - CX_AttrKind_UnsafeBufferUsage => new InheritableAttr(handle), - CX_AttrKind_Unused => new InheritableAttr(handle), - CX_AttrKind_Used => new InheritableAttr(handle), - CX_AttrKind_UsingIfExists => new InheritableAttr(handle), - CX_AttrKind_Uuid => new InheritableAttr(handle), - CX_AttrKind_VecReturn => new InheritableAttr(handle), - CX_AttrKind_VecTypeHint => new InheritableAttr(handle), - CX_AttrKind_Visibility => new InheritableAttr(handle), - CX_AttrKind_WarnUnused => new InheritableAttr(handle), - CX_AttrKind_WarnUnusedResult => new InheritableAttr(handle), - CX_AttrKind_Weak => new InheritableAttr(handle), - CX_AttrKind_WeakImport => new InheritableAttr(handle), - CX_AttrKind_WeakRef => new InheritableAttr(handle), - CX_AttrKind_WebAssemblyExportName => new InheritableAttr(handle), - CX_AttrKind_WebAssemblyImportModule => new InheritableAttr(handle), - CX_AttrKind_WebAssemblyImportName => new InheritableAttr(handle), - CX_AttrKind_WorkGroupSizeHint => new InheritableAttr(handle), - CX_AttrKind_X86ForceAlignArgPointer => new InheritableAttr(handle), - CX_AttrKind_XRayInstrument => new InheritableAttr(handle), - CX_AttrKind_XRayLogArgs => new InheritableAttr(handle), - CX_AttrKind_ZeroCallUsedRegs => new InheritableAttr(handle), + CX_AttrKind_AddressSpace => new Attr(handle), + CX_AttrKind_Allocating => new Attr(handle), + CX_AttrKind_AnnotateType => new Attr(handle), + CX_AttrKind_ArmAgnostic => new Attr(handle), + CX_AttrKind_ArmIn => new Attr(handle), + CX_AttrKind_ArmInOut => new Attr(handle), + CX_AttrKind_ArmMveStrictPolymorphism => new Attr(handle), + CX_AttrKind_ArmOut => new Attr(handle), + CX_AttrKind_ArmPreserves => new Attr(handle), + CX_AttrKind_ArmStreaming => new Attr(handle), + CX_AttrKind_ArmStreamingCompatible => new Attr(handle), + CX_AttrKind_BTFTypeTag => new Attr(handle), + CX_AttrKind_Blocking => new Attr(handle), + CX_AttrKind_CmseNSCall => new Attr(handle), + CX_AttrKind_HLSLContainedType => new Attr(handle), + CX_AttrKind_HLSLGroupSharedAddressSpace => new Attr(handle), + CX_AttrKind_HLSLROV => new Attr(handle), + CX_AttrKind_HLSLRawBuffer => new Attr(handle), + CX_AttrKind_HLSLResourceClass => new Attr(handle), + CX_AttrKind_NoDeref => new Attr(handle), + CX_AttrKind_NonAllocating => new Attr(handle), + CX_AttrKind_NonBlocking => new Attr(handle), + CX_AttrKind_ObjCGC => new Attr(handle), + CX_AttrKind_ObjCInertUnsafeUnretained => new Attr(handle), + CX_AttrKind_ObjCKindOf => new Attr(handle), + CX_AttrKind_OpenCLConstantAddressSpace => new Attr(handle), + CX_AttrKind_OpenCLGenericAddressSpace => new Attr(handle), + CX_AttrKind_OpenCLGlobalAddressSpace => new Attr(handle), + CX_AttrKind_OpenCLGlobalDeviceAddressSpace => new Attr(handle), + CX_AttrKind_OpenCLGlobalHostAddressSpace => new Attr(handle), + CX_AttrKind_OpenCLLocalAddressSpace => new Attr(handle), + CX_AttrKind_OpenCLPrivateAddressSpace => new Attr(handle), + CX_AttrKind_Ptr32 => new Attr(handle), + CX_AttrKind_Ptr64 => new Attr(handle), + CX_AttrKind_SPtr => new Attr(handle), + CX_AttrKind_TypeNonNull => new Attr(handle), + CX_AttrKind_TypeNullUnspecified => new Attr(handle), + CX_AttrKind_TypeNullableResult => new Attr(handle), + CX_AttrKind_UPtr => new Attr(handle), + CX_AttrKind_WebAssemblyFuncref => new Attr(handle), + CX_AttrKind_CXXAssume => new Attr(handle), + CX_AttrKind_CodeAlign => new Attr(handle), + CX_AttrKind_FallThrough => new Attr(handle), + CX_AttrKind_HLSLControlFlowHint => new Attr(handle), + CX_AttrKind_HLSLLoopHint => new Attr(handle), + CX_AttrKind_Likely => new Attr(handle), + CX_AttrKind_MustTail => new Attr(handle), + CX_AttrKind_OpenCLUnrollHint => new Attr(handle), + CX_AttrKind_Unlikely => new Attr(handle), + CX_AttrKind_AlwaysInline => new Attr(handle), + CX_AttrKind_NoInline => new Attr(handle), + CX_AttrKind_NoMerge => new Attr(handle), + CX_AttrKind_Suppress => new Attr(handle), + CX_AttrKind_AArch64SVEPcs => new Attr(handle), + CX_AttrKind_AArch64VectorPcs => new Attr(handle), + CX_AttrKind_AMDGPUKernelCall => new Attr(handle), + CX_AttrKind_AcquireHandle => new Attr(handle), + CX_AttrKind_AnyX86NoCfCheck => new Attr(handle), + CX_AttrKind_CDecl => new Attr(handle), + CX_AttrKind_CountedBy => new Attr(handle), + CX_AttrKind_CountedByOrNull => new Attr(handle), + CX_AttrKind_FastCall => new Attr(handle), + CX_AttrKind_IntelOclBicc => new Attr(handle), + CX_AttrKind_LifetimeBound => new Attr(handle), + CX_AttrKind_LifetimeCaptureBy => new Attr(handle), + CX_AttrKind_M68kRTD => new Attr(handle), + CX_AttrKind_MSABI => new Attr(handle), + CX_AttrKind_NSReturnsRetained => new Attr(handle), + CX_AttrKind_ObjCOwnership => new Attr(handle), + CX_AttrKind_Pascal => new Attr(handle), + CX_AttrKind_Pcs => new Attr(handle), + CX_AttrKind_PreserveAll => new Attr(handle), + CX_AttrKind_PreserveMost => new Attr(handle), + CX_AttrKind_PreserveNone => new Attr(handle), + CX_AttrKind_RISCVVectorCC => new Attr(handle), + CX_AttrKind_RegCall => new Attr(handle), + CX_AttrKind_SizedBy => new Attr(handle), + CX_AttrKind_SizedByOrNull => new Attr(handle), + CX_AttrKind_StdCall => new Attr(handle), + CX_AttrKind_SwiftAsyncCall => new Attr(handle), + CX_AttrKind_SwiftAttr => new Attr(handle), + CX_AttrKind_SwiftCall => new Attr(handle), + CX_AttrKind_SysVABI => new Attr(handle), + CX_AttrKind_ThisCall => new Attr(handle), + CX_AttrKind_TypeNullable => new Attr(handle), + CX_AttrKind_VectorCall => new Attr(handle), + CX_AttrKind_Annotate => new Attr(handle), + CX_AttrKind_HLSLParamModifier => new Attr(handle), + CX_AttrKind_SwiftAsyncContext => new Attr(handle), + CX_AttrKind_SwiftContext => new Attr(handle), + CX_AttrKind_SwiftErrorResult => new Attr(handle), + CX_AttrKind_SwiftIndirectResult => new Attr(handle), + CX_AttrKind_CFConsumed => new Attr(handle), + CX_AttrKind_CarriesDependency => new Attr(handle), + CX_AttrKind_NSConsumed => new Attr(handle), + CX_AttrKind_NonNull => new Attr(handle), + CX_AttrKind_OSConsumed => new Attr(handle), + CX_AttrKind_PassObjectSize => new Attr(handle), + CX_AttrKind_ReleaseHandle => new Attr(handle), + CX_AttrKind_UseHandle => new Attr(handle), + CX_AttrKind_HLSLPackOffset => new Attr(handle), + CX_AttrKind_HLSLSV_DispatchThreadID => new Attr(handle), + CX_AttrKind_HLSLSV_GroupID => new Attr(handle), + CX_AttrKind_HLSLSV_GroupIndex => new Attr(handle), + CX_AttrKind_HLSLSV_GroupThreadID => new Attr(handle), + CX_AttrKind_AMDGPUFlatWorkGroupSize => new Attr(handle), + CX_AttrKind_AMDGPUMaxNumWorkGroups => new Attr(handle), + CX_AttrKind_AMDGPUNumSGPR => new Attr(handle), + CX_AttrKind_AMDGPUNumVGPR => new Attr(handle), + CX_AttrKind_AMDGPUWavesPerEU => new Attr(handle), + CX_AttrKind_ARMInterrupt => new Attr(handle), + CX_AttrKind_AVRInterrupt => new Attr(handle), + CX_AttrKind_AVRSignal => new Attr(handle), + CX_AttrKind_AcquireCapability => new Attr(handle), + CX_AttrKind_AcquiredAfter => new Attr(handle), + CX_AttrKind_AcquiredBefore => new Attr(handle), + CX_AttrKind_AlignMac68k => new Attr(handle), + CX_AttrKind_AlignNatural => new Attr(handle), + CX_AttrKind_Aligned => new Attr(handle), + CX_AttrKind_AllocAlign => new Attr(handle), + CX_AttrKind_AllocSize => new Attr(handle), + CX_AttrKind_AlwaysDestroy => new Attr(handle), + CX_AttrKind_AnalyzerNoReturn => new Attr(handle), + CX_AttrKind_AnyX86Interrupt => new Attr(handle), + CX_AttrKind_AnyX86NoCallerSavedRegisters => new Attr(handle), + CX_AttrKind_ArcWeakrefUnavailable => new Attr(handle), + CX_AttrKind_ArgumentWithTypeTag => new Attr(handle), + CX_AttrKind_ArmBuiltinAlias => new Attr(handle), + CX_AttrKind_ArmLocallyStreaming => new Attr(handle), + CX_AttrKind_ArmNew => new Attr(handle), + CX_AttrKind_Artificial => new Attr(handle), + CX_AttrKind_AsmLabel => new Attr(handle), + CX_AttrKind_AssertCapability => new Attr(handle), + CX_AttrKind_AssertExclusiveLock => new Attr(handle), + CX_AttrKind_AssertSharedLock => new Attr(handle), + CX_AttrKind_AssumeAligned => new Attr(handle), + CX_AttrKind_Availability => new Attr(handle), + CX_AttrKind_AvailableOnlyInDefaultEvalMethod => new Attr(handle), + CX_AttrKind_BPFFastCall => new Attr(handle), + CX_AttrKind_BPFPreserveAccessIndex => new Attr(handle), + CX_AttrKind_BPFPreserveStaticOffset => new Attr(handle), + CX_AttrKind_BTFDeclTag => new Attr(handle), + CX_AttrKind_Blocks => new Attr(handle), + CX_AttrKind_Builtin => new Attr(handle), + CX_AttrKind_C11NoReturn => new Attr(handle), + CX_AttrKind_CFAuditedTransfer => new Attr(handle), + CX_AttrKind_CFGuard => new Attr(handle), + CX_AttrKind_CFICanonicalJumpTable => new Attr(handle), + CX_AttrKind_CFReturnsNotRetained => new Attr(handle), + CX_AttrKind_CFReturnsRetained => new Attr(handle), + CX_AttrKind_CFUnknownTransfer => new Attr(handle), + CX_AttrKind_CPUDispatch => new Attr(handle), + CX_AttrKind_CPUSpecific => new Attr(handle), + CX_AttrKind_CUDAConstant => new Attr(handle), + CX_AttrKind_CUDADevice => new Attr(handle), + CX_AttrKind_CUDADeviceBuiltinSurfaceType => new Attr(handle), + CX_AttrKind_CUDADeviceBuiltinTextureType => new Attr(handle), + CX_AttrKind_CUDAGlobal => new Attr(handle), + CX_AttrKind_CUDAGridConstant => new Attr(handle), + CX_AttrKind_CUDAHost => new Attr(handle), + CX_AttrKind_CUDAInvalidTarget => new Attr(handle), + CX_AttrKind_CUDALaunchBounds => new Attr(handle), + CX_AttrKind_CUDAShared => new Attr(handle), + CX_AttrKind_CXX11NoReturn => new Attr(handle), + CX_AttrKind_CallableWhen => new Attr(handle), + CX_AttrKind_Callback => new Attr(handle), + CX_AttrKind_Capability => new Attr(handle), + CX_AttrKind_CapturedRecord => new Attr(handle), + CX_AttrKind_Cleanup => new Attr(handle), + CX_AttrKind_ClspvLibclcBuiltin => new Attr(handle), + CX_AttrKind_CmseNSEntry => new Attr(handle), + CX_AttrKind_CodeModel => new Attr(handle), + CX_AttrKind_CodeSeg => new Attr(handle), + CX_AttrKind_Cold => new Attr(handle), + CX_AttrKind_Common => new Attr(handle), + CX_AttrKind_Const => new Attr(handle), + CX_AttrKind_ConstInit => new Attr(handle), + CX_AttrKind_Constructor => new Attr(handle), + CX_AttrKind_Consumable => new Attr(handle), + CX_AttrKind_ConsumableAutoCast => new Attr(handle), + CX_AttrKind_ConsumableSetOnRead => new Attr(handle), + CX_AttrKind_Convergent => new Attr(handle), + CX_AttrKind_CoroAwaitElidable => new Attr(handle), + CX_AttrKind_CoroAwaitElidableArgument => new Attr(handle), + CX_AttrKind_CoroDisableLifetimeBound => new Attr(handle), + CX_AttrKind_CoroLifetimeBound => new Attr(handle), + CX_AttrKind_CoroOnlyDestroyWhenComplete => new Attr(handle), + CX_AttrKind_CoroReturnType => new Attr(handle), + CX_AttrKind_CoroWrapper => new Attr(handle), + CX_AttrKind_DLLExport => new Attr(handle), + CX_AttrKind_DLLExportStaticLocal => new Attr(handle), + CX_AttrKind_DLLImport => new Attr(handle), + CX_AttrKind_DLLImportStaticLocal => new Attr(handle), + CX_AttrKind_Deprecated => new Attr(handle), + CX_AttrKind_Destructor => new Attr(handle), + CX_AttrKind_DiagnoseAsBuiltin => new Attr(handle), + CX_AttrKind_DiagnoseIf => new Attr(handle), + CX_AttrKind_DisableSanitizerInstrumentation => new Attr(handle), + CX_AttrKind_DisableTailCalls => new Attr(handle), + CX_AttrKind_EmptyBases => new Attr(handle), + CX_AttrKind_EnableIf => new Attr(handle), + CX_AttrKind_EnforceTCB => new Attr(handle), + CX_AttrKind_EnforceTCBLeaf => new Attr(handle), + CX_AttrKind_EnumExtensibility => new Attr(handle), + CX_AttrKind_Error => new Attr(handle), + CX_AttrKind_ExcludeFromExplicitInstantiation => new Attr(handle), + CX_AttrKind_ExclusiveTrylockFunction => new Attr(handle), + CX_AttrKind_ExplicitInit => new Attr(handle), + CX_AttrKind_ExternalSourceSymbol => new Attr(handle), + CX_AttrKind_Final => new Attr(handle), + CX_AttrKind_FlagEnum => new Attr(handle), + CX_AttrKind_Flatten => new Attr(handle), + CX_AttrKind_Format => new Attr(handle), + CX_AttrKind_FormatArg => new Attr(handle), + CX_AttrKind_FunctionReturnThunks => new Attr(handle), + CX_AttrKind_GNUInline => new Attr(handle), + CX_AttrKind_GuardedBy => new Attr(handle), + CX_AttrKind_GuardedVar => new Attr(handle), + CX_AttrKind_HIPManaged => new Attr(handle), + CX_AttrKind_HLSLNumThreads => new Attr(handle), + CX_AttrKind_HLSLResource => new Attr(handle), + CX_AttrKind_HLSLResourceBinding => new Attr(handle), + CX_AttrKind_HLSLShader => new Attr(handle), + CX_AttrKind_HLSLWaveSize => new Attr(handle), + CX_AttrKind_Hot => new Attr(handle), + CX_AttrKind_HybridPatchable => new Attr(handle), + CX_AttrKind_IBAction => new Attr(handle), + CX_AttrKind_IBOutlet => new Attr(handle), + CX_AttrKind_IBOutletCollection => new Attr(handle), + CX_AttrKind_InitPriority => new Attr(handle), + CX_AttrKind_InternalLinkage => new Attr(handle), + CX_AttrKind_LTOVisibilityPublic => new Attr(handle), + CX_AttrKind_LayoutVersion => new Attr(handle), + CX_AttrKind_Leaf => new Attr(handle), + CX_AttrKind_LockReturned => new Attr(handle), + CX_AttrKind_LocksExcluded => new Attr(handle), + CX_AttrKind_M68kInterrupt => new Attr(handle), + CX_AttrKind_MIGServerRoutine => new Attr(handle), + CX_AttrKind_MSAllocator => new Attr(handle), + CX_AttrKind_MSConstexpr => new Attr(handle), + CX_AttrKind_MSInheritance => new Attr(handle), + CX_AttrKind_MSNoVTable => new Attr(handle), + CX_AttrKind_MSP430Interrupt => new Attr(handle), + CX_AttrKind_MSStruct => new Attr(handle), + CX_AttrKind_MSVtorDisp => new Attr(handle), + CX_AttrKind_MaxFieldAlignment => new Attr(handle), + CX_AttrKind_MayAlias => new Attr(handle), + CX_AttrKind_MaybeUndef => new Attr(handle), + CX_AttrKind_MicroMips => new Attr(handle), + CX_AttrKind_MinSize => new Attr(handle), + CX_AttrKind_MinVectorWidth => new Attr(handle), + CX_AttrKind_Mips16 => new Attr(handle), + CX_AttrKind_MipsInterrupt => new Attr(handle), + CX_AttrKind_MipsLongCall => new Attr(handle), + CX_AttrKind_MipsShortCall => new Attr(handle), + CX_AttrKind_NSConsumesSelf => new Attr(handle), + CX_AttrKind_NSErrorDomain => new Attr(handle), + CX_AttrKind_NSReturnsAutoreleased => new Attr(handle), + CX_AttrKind_NSReturnsNotRetained => new Attr(handle), + CX_AttrKind_NVPTXKernel => new Attr(handle), + CX_AttrKind_Naked => new Attr(handle), + CX_AttrKind_NoAlias => new Attr(handle), + CX_AttrKind_NoCommon => new Attr(handle), + CX_AttrKind_NoConvergent => new Attr(handle), + CX_AttrKind_NoDebug => new Attr(handle), + CX_AttrKind_NoDestroy => new Attr(handle), + CX_AttrKind_NoDuplicate => new Attr(handle), + CX_AttrKind_NoInstrumentFunction => new Attr(handle), + CX_AttrKind_NoMicroMips => new Attr(handle), + CX_AttrKind_NoMips16 => new Attr(handle), + CX_AttrKind_NoProfileFunction => new Attr(handle), + CX_AttrKind_NoRandomizeLayout => new Attr(handle), + CX_AttrKind_NoReturn => new Attr(handle), + CX_AttrKind_NoSanitize => new Attr(handle), + CX_AttrKind_NoSpecializations => new Attr(handle), + CX_AttrKind_NoSpeculativeLoadHardening => new Attr(handle), + CX_AttrKind_NoSplitStack => new Attr(handle), + CX_AttrKind_NoStackProtector => new Attr(handle), + CX_AttrKind_NoThreadSafetyAnalysis => new Attr(handle), + CX_AttrKind_NoThrow => new Attr(handle), + CX_AttrKind_NoTrivialAutoVarInit => new Attr(handle), + CX_AttrKind_NoUniqueAddress => new Attr(handle), + CX_AttrKind_NoUwtable => new Attr(handle), + CX_AttrKind_NotTailCalled => new Attr(handle), + CX_AttrKind_OMPAllocateDecl => new Attr(handle), + CX_AttrKind_OMPAssume => new Attr(handle), + CX_AttrKind_OMPCaptureNoInit => new Attr(handle), + CX_AttrKind_OMPDeclareTargetDecl => new Attr(handle), + CX_AttrKind_OMPDeclareVariant => new Attr(handle), + CX_AttrKind_OMPThreadPrivateDecl => new Attr(handle), + CX_AttrKind_OSConsumesThis => new Attr(handle), + CX_AttrKind_OSReturnsNotRetained => new Attr(handle), + CX_AttrKind_OSReturnsRetained => new Attr(handle), + CX_AttrKind_OSReturnsRetainedOnNonZero => new Attr(handle), + CX_AttrKind_OSReturnsRetainedOnZero => new Attr(handle), + CX_AttrKind_ObjCBridge => new Attr(handle), + CX_AttrKind_ObjCBridgeMutable => new Attr(handle), + CX_AttrKind_ObjCBridgeRelated => new Attr(handle), + CX_AttrKind_ObjCException => new Attr(handle), + CX_AttrKind_ObjCExplicitProtocolImpl => new Attr(handle), + CX_AttrKind_ObjCExternallyRetained => new Attr(handle), + CX_AttrKind_ObjCIndependentClass => new Attr(handle), + CX_AttrKind_ObjCMethodFamily => new Attr(handle), + CX_AttrKind_ObjCNSObject => new Attr(handle), + CX_AttrKind_ObjCPreciseLifetime => new Attr(handle), + CX_AttrKind_ObjCRequiresPropertyDefs => new Attr(handle), + CX_AttrKind_ObjCRequiresSuper => new Attr(handle), + CX_AttrKind_ObjCReturnsInnerPointer => new Attr(handle), + CX_AttrKind_ObjCRootClass => new Attr(handle), + CX_AttrKind_ObjCSubclassingRestricted => new Attr(handle), + CX_AttrKind_OpenCLIntelReqdSubGroupSize => new Attr(handle), + CX_AttrKind_OpenCLKernel => new Attr(handle), + CX_AttrKind_OptimizeNone => new Attr(handle), + CX_AttrKind_Override => new Attr(handle), + CX_AttrKind_Owner => new Attr(handle), + CX_AttrKind_Ownership => new Attr(handle), + CX_AttrKind_Packed => new Attr(handle), + CX_AttrKind_ParamTypestate => new Attr(handle), + CX_AttrKind_PatchableFunctionEntry => new Attr(handle), + CX_AttrKind_Pointer => new Attr(handle), + CX_AttrKind_PragmaClangBSSSection => new Attr(handle), + CX_AttrKind_PragmaClangDataSection => new Attr(handle), + CX_AttrKind_PragmaClangRelroSection => new Attr(handle), + CX_AttrKind_PragmaClangRodataSection => new Attr(handle), + CX_AttrKind_PragmaClangTextSection => new Attr(handle), + CX_AttrKind_PreferredName => new Attr(handle), + CX_AttrKind_PreferredType => new Attr(handle), + CX_AttrKind_PtGuardedBy => new Attr(handle), + CX_AttrKind_PtGuardedVar => new Attr(handle), + CX_AttrKind_Pure => new Attr(handle), + CX_AttrKind_RISCVInterrupt => new Attr(handle), + CX_AttrKind_RandomizeLayout => new Attr(handle), + CX_AttrKind_ReadOnlyPlacement => new Attr(handle), + CX_AttrKind_Reinitializes => new Attr(handle), + CX_AttrKind_ReleaseCapability => new Attr(handle), + CX_AttrKind_ReqdWorkGroupSize => new Attr(handle), + CX_AttrKind_RequiresCapability => new Attr(handle), + CX_AttrKind_Restrict => new Attr(handle), + CX_AttrKind_Retain => new Attr(handle), + CX_AttrKind_ReturnTypestate => new Attr(handle), + CX_AttrKind_ReturnsNonNull => new Attr(handle), + CX_AttrKind_ReturnsTwice => new Attr(handle), + CX_AttrKind_SYCLKernel => new Attr(handle), + CX_AttrKind_SYCLKernelEntryPoint => new Attr(handle), + CX_AttrKind_SYCLSpecialClass => new Attr(handle), + CX_AttrKind_ScopedLockable => new Attr(handle), + CX_AttrKind_Section => new Attr(handle), + CX_AttrKind_SelectAny => new Attr(handle), + CX_AttrKind_Sentinel => new Attr(handle), + CX_AttrKind_SetTypestate => new Attr(handle), + CX_AttrKind_SharedTrylockFunction => new Attr(handle), + CX_AttrKind_SpeculativeLoadHardening => new Attr(handle), + CX_AttrKind_StandaloneDebug => new Attr(handle), + CX_AttrKind_StrictFP => new Attr(handle), + CX_AttrKind_StrictGuardStackCheck => new Attr(handle), + CX_AttrKind_SwiftAsync => new Attr(handle), + CX_AttrKind_SwiftAsyncError => new Attr(handle), + CX_AttrKind_SwiftAsyncName => new Attr(handle), + CX_AttrKind_SwiftBridge => new Attr(handle), + CX_AttrKind_SwiftBridgedTypedef => new Attr(handle), + CX_AttrKind_SwiftError => new Attr(handle), + CX_AttrKind_SwiftImportAsNonGeneric => new Attr(handle), + CX_AttrKind_SwiftImportPropertyAsAccessors => new Attr(handle), + CX_AttrKind_SwiftName => new Attr(handle), + CX_AttrKind_SwiftNewType => new Attr(handle), + CX_AttrKind_SwiftPrivate => new Attr(handle), + CX_AttrKind_TLSModel => new Attr(handle), + CX_AttrKind_Target => new Attr(handle), + CX_AttrKind_TargetClones => new Attr(handle), + CX_AttrKind_TargetVersion => new Attr(handle), + CX_AttrKind_TestTypestate => new Attr(handle), + CX_AttrKind_TransparentUnion => new Attr(handle), + CX_AttrKind_TrivialABI => new Attr(handle), + CX_AttrKind_TryAcquireCapability => new Attr(handle), + CX_AttrKind_TypeTagForDatatype => new Attr(handle), + CX_AttrKind_TypeVisibility => new Attr(handle), + CX_AttrKind_Unavailable => new Attr(handle), + CX_AttrKind_Uninitialized => new Attr(handle), + CX_AttrKind_UnsafeBufferUsage => new Attr(handle), + CX_AttrKind_Unused => new Attr(handle), + CX_AttrKind_Used => new Attr(handle), + CX_AttrKind_UsingIfExists => new Attr(handle), + CX_AttrKind_Uuid => new Attr(handle), + CX_AttrKind_VTablePointerAuthentication => new Attr(handle), + CX_AttrKind_VecReturn => new Attr(handle), + CX_AttrKind_VecTypeHint => new Attr(handle), + CX_AttrKind_Visibility => new Attr(handle), + CX_AttrKind_WarnUnused => new Attr(handle), + CX_AttrKind_WarnUnusedResult => new Attr(handle), + CX_AttrKind_Weak => new Attr(handle), + CX_AttrKind_WeakImport => new Attr(handle), + CX_AttrKind_WeakRef => new Attr(handle), + CX_AttrKind_WebAssemblyExportName => new Attr(handle), + CX_AttrKind_WebAssemblyImportModule => new Attr(handle), + CX_AttrKind_WebAssemblyImportName => new Attr(handle), + CX_AttrKind_WorkGroupSizeHint => new Attr(handle), + CX_AttrKind_X86ForceAlignArgPointer => new Attr(handle), + CX_AttrKind_XRayInstrument => new Attr(handle), + CX_AttrKind_XRayLogArgs => new Attr(handle), + CX_AttrKind_ZeroCallUsedRegs => new Attr(handle), CX_AttrKind_AbiTag => new Attr(handle), CX_AttrKind_Alias => new Attr(handle), CX_AttrKind_AlignValue => new Attr(handle), @@ -409,7 +444,6 @@ private protected Attr(CXCursor handle) : base(handle, handle.Kind) CX_AttrKind_ObjCRuntimeVisible => new Attr(handle), CX_AttrKind_OpenCLAccess => new Attr(handle), CX_AttrKind_Overloadable => new Attr(handle), - CX_AttrKind_RenderScriptKernel => new Attr(handle), CX_AttrKind_SwiftObjCMembers => new Attr(handle), CX_AttrKind_SwiftVersionedAddition => new Attr(handle), CX_AttrKind_SwiftVersionedRemoval => new Attr(handle), diff --git a/sources/ClangSharp/Cursors/Exprs/OMPArraySectionExpr.cs b/sources/ClangSharp/Cursors/Exprs/ArraySectionExpr.cs similarity index 65% rename from sources/ClangSharp/Cursors/Exprs/OMPArraySectionExpr.cs rename to sources/ClangSharp/Cursors/Exprs/ArraySectionExpr.cs index 57149e2e..b5ab3979 100644 --- a/sources/ClangSharp/Cursors/Exprs/OMPArraySectionExpr.cs +++ b/sources/ClangSharp/Cursors/Exprs/ArraySectionExpr.cs @@ -6,9 +6,9 @@ namespace ClangSharp; -public sealed class OMPArraySectionExpr : Expr +public sealed class ArraySectionExpr : Expr { - internal OMPArraySectionExpr(CXCursor handle) : base(handle, CXCursor_OMPArraySectionExpr, CX_StmtClass_OMPArraySectionExpr) + internal ArraySectionExpr(CXCursor handle) : base(handle, CXCursor_ArraySectionExpr, CX_StmtClass_ArraySectionExpr) { } } diff --git a/sources/ClangSharp/Cursors/Exprs/AtomicExpr.cs b/sources/ClangSharp/Cursors/Exprs/AtomicExpr.cs index a7fd1919..b636751e 100644 --- a/sources/ClangSharp/Cursors/Exprs/AtomicExpr.cs +++ b/sources/ClangSharp/Cursors/Exprs/AtomicExpr.cs @@ -31,7 +31,9 @@ internal AtomicExpr(CXCursor handle) : base(handle, CXCursor_UnexposedExpr, CX_S public Expr Ptr => SubExprs[0]; - public Expr? Scope => (Op is >= CX_AO__opencl_atomic_load and <= CX_AO__opencl_atomic_fetch_max) ? SubExprs[(int)(NumSubExprs - 1)] : null; + public Expr? Scope => (Op is (>= CX_AO__opencl_atomic_compare_exchange_strong and <= CX_AO__opencl_atomic_store and not CX_AO__opencl_atomic_init) + or (>= CX_AO__hip_atomic_compare_exchange_strong and <= CX_AO__hip_atomic_store) + or (>= CX_AO__scoped_atomic_add_fetch and <= CX_AO__scoped_atomic_xor_fetch)) ? SubExprs[(int)(NumSubExprs - 1)] : null; public IReadOnlyList SubExprs => _subExprs.Value; diff --git a/sources/ClangSharp/Cursors/Exprs/PackIndexingExpr.cs b/sources/ClangSharp/Cursors/Exprs/PackIndexingExpr.cs new file mode 100644 index 00000000..081afefe --- /dev/null +++ b/sources/ClangSharp/Cursors/Exprs/PackIndexingExpr.cs @@ -0,0 +1,14 @@ +// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +using ClangSharp.Interop; +using static ClangSharp.Interop.CXCursorKind; +using static ClangSharp.Interop.CX_StmtClass; + +namespace ClangSharp; + +public sealed class PackIndexingExpr : Expr +{ + internal PackIndexingExpr(CXCursor handle) : base(handle, CXCursor_PackIndexingExpr, CX_StmtClass_PackIndexingExpr) + { + } +} diff --git a/sources/ClangSharp/Cursors/Stmts/Stmt.cs b/sources/ClangSharp/Cursors/Stmts/Stmt.cs index bab15c8e..bf50feb3 100644 --- a/sources/ClangSharp/Cursors/Stmts/Stmt.cs +++ b/sources/ClangSharp/Cursors/Stmts/Stmt.cs @@ -167,7 +167,7 @@ public Stmt StripLabelLikeStatements() CX_StmtClass_ObjCArrayLiteral => new ObjCArrayLiteral(handle), CX_StmtClass_OMPIteratorExpr => new OMPIteratorExpr(handle), CX_StmtClass_OMPArrayShapingExpr => new OMPArrayShapingExpr(handle), - CX_StmtClass_OMPArraySectionExpr => new OMPArraySectionExpr(handle), + CX_StmtClass_ArraySectionExpr => new ArraySectionExpr(handle), CX_StmtClass_NoInitExpr => new NoInitExpr(handle), CX_StmtClass_MemberExpr => new MemberExpr(handle), CX_StmtClass_MatrixSubscriptExpr => new MatrixSubscriptExpr(handle), @@ -225,6 +225,7 @@ public Stmt StripLabelLikeStatements() CX_StmtClass_CXXRewrittenBinaryOperator => new CXXRewrittenBinaryOperator(handle), CX_StmtClass_CXXPseudoDestructorExpr => new CXXPseudoDestructorExpr(handle), CX_StmtClass_CXXParenListInitExpr => new CXXParenListInitExpr(handle), + CX_StmtClass_PackIndexingExpr => new PackIndexingExpr(handle), CX_StmtClass_CXXNullPtrLiteralExpr => new CXXNullPtrLiteralExpr(handle), CX_StmtClass_CXXNoexceptExpr => new CXXNoexceptExpr(handle), CX_StmtClass_CXXNewExpr => new CXXNewExpr(handle), diff --git a/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj b/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj index 9f8590ea..ec2f74a7 100644 --- a/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj +++ b/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj @@ -36,7 +36,7 @@ C:\Program Files\LLVM\include - /usr/lib/llvm-18/include + /usr/lib/llvm-20/include diff --git a/sources/ClangSharpPInvokeGenerator/Program.cs b/sources/ClangSharpPInvokeGenerator/Program.cs index 8bad0657..0545723b 100644 --- a/sources/ClangSharpPInvokeGenerator/Program.cs +++ b/sources/ClangSharpPInvokeGenerator/Program.cs @@ -266,7 +266,7 @@ public static void Run(InvocationContext context) if (versionResult is not null) { - context.Console.WriteLine($"{s_rootCommand.Description} version 18.1.3"); + context.Console.WriteLine($"{s_rootCommand.Description} version 20.1.2"); context.Console.WriteLine($" {clang.getClangVersion()}"); context.Console.WriteLine($" {clangsharp.getVersion()}"); context.ExitCode = -1; diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt index 21246cb4..83233f6d 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt @@ -1,4 +1,4 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/GenerateLLVM-LICENSE.txt b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt index 37cc4487..b2de2be4 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt @@ -1,4 +1,4 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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/libClangSharp/CIndexDiagnostic.cpp b/sources/libClangSharp/CIndexDiagnostic.cpp index 28196bfc..632ebf1c 100644 --- a/sources/libClangSharp/CIndexDiagnostic.cpp +++ b/sources/libClangSharp/CIndexDiagnostic.cpp @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 fc64b057..06e03bfe 100644 --- a/sources/libClangSharp/CIndexDiagnostic.h +++ b/sources/libClangSharp/CIndexDiagnostic.h @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 40bcd24a..85dcf558 100644 --- a/sources/libClangSharp/CXCursor.cpp +++ b/sources/libClangSharp/CXCursor.cpp @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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" @@ -512,6 +512,9 @@ namespace clang::cxcursor { case Stmt::ObjCSubscriptRefExprClass: case Stmt::RecoveryExprClass: case Stmt::SYCLUniqueStableNameExprClass: + case Stmt::EmbedExprClass: + case Stmt::HLSLOutArgExprClass: + case Stmt::OpenACCAsteriskSizeExprClass: K = CXCursor_UnexposedExpr; break; @@ -550,6 +553,10 @@ namespace clang::cxcursor { K = CXCursor_UnexposedStmt; break; + case Stmt::SYCLKernelCallStmtClass: + K = CXCursor_UnexposedStmt; + break; + case Stmt::IntegerLiteralClass: K = CXCursor_IntegerLiteral; break; @@ -600,8 +607,8 @@ namespace clang::cxcursor { K = CXCursor_UnexposedExpr; break; - case Stmt::OMPArraySectionExprClass: - K = CXCursor_OMPArraySectionExpr; + case Stmt::ArraySectionExprClass: + K = CXCursor_ArraySectionExpr; break; case Stmt::OMPArrayShapingExprClass: @@ -744,6 +751,10 @@ namespace clang::cxcursor { K = CXCursor_SizeOfPackExpr; break; + case Stmt::PackIndexingExprClass: + K = CXCursor_PackIndexingExpr; + break; + case Stmt::DeclRefExprClass: if (const ImplicitParamDecl* IPD = dyn_cast_or_null(cast(S)->getDecl())) { if (const ObjCMethodDecl* MD = dyn_cast(IPD->getDeclContext())) { @@ -854,6 +865,12 @@ namespace clang::cxcursor { case Stmt::OMPUnrollDirectiveClass: K = CXCursor_OMPUnrollDirective; break; + case Stmt::OMPReverseDirectiveClass: + K = CXCursor_OMPReverseDirective; + break; + case Stmt::OMPInterchangeDirectiveClass: + K = CXCursor_OMPTileDirective; + break; case Stmt::OMPForDirectiveClass: K = CXCursor_OMPForDirective; break; @@ -866,6 +883,9 @@ namespace clang::cxcursor { case Stmt::OMPSectionDirectiveClass: K = CXCursor_OMPSectionDirective; break; + case Stmt::OMPScopeDirectiveClass: + K = CXCursor_OMPScopeDirective; + break; case Stmt::OMPSingleDirectiveClass: K = CXCursor_OMPSingleDirective; break; @@ -1049,11 +1069,51 @@ namespace clang::cxcursor { case Stmt::OMPParallelGenericLoopDirectiveClass: K = CXCursor_OMPParallelGenericLoopDirective; break; + case Stmt::OpenACCComputeConstructClass: + K = CXCursor_OpenACCComputeConstruct; + break; + case Stmt::OpenACCLoopConstructClass: + K = CXCursor_OpenACCLoopConstruct; + break; + case Stmt::OpenACCCombinedConstructClass: + K = CXCursor_OpenACCCombinedConstruct; + break; + case Stmt::OpenACCDataConstructClass: + K = CXCursor_OpenACCDataConstruct; + break; + case Stmt::OpenACCEnterDataConstructClass: + K = CXCursor_OpenACCEnterDataConstruct; + break; + case Stmt::OpenACCExitDataConstructClass: + K = CXCursor_OpenACCExitDataConstruct; + break; + case Stmt::OpenACCHostDataConstructClass: + K = CXCursor_OpenACCHostDataConstruct; + break; + case Stmt::OpenACCWaitConstructClass: + K = CXCursor_OpenACCWaitConstruct; + break; + case Stmt::OpenACCInitConstructClass: + K = CXCursor_OpenACCInitConstruct; + break; + case Stmt::OpenACCShutdownConstructClass: + K = CXCursor_OpenACCShutdownConstruct; + break; + case Stmt::OpenACCSetConstructClass: + K = CXCursor_OpenACCSetConstruct; + break; + case Stmt::OpenACCUpdateConstructClass: + K = CXCursor_OpenACCUpdateConstruct; + break; case Stmt::OMPTargetParallelGenericLoopDirectiveClass: K = CXCursor_OMPTargetParallelGenericLoopDirective; break; case Stmt::BuiltinBitCastExprClass: K = CXCursor_BuiltinBitCastExpr; + break; + case Stmt::OMPAssumeDirectiveClass: + K = CXCursor_OMPAssumeDirective; + break; } CXCursor C = { diff --git a/sources/libClangSharp/CXCursor.h b/sources/libClangSharp/CXCursor.h index 9056296e..d959dcb0 100644 --- a/sources/libClangSharp/CXCursor.h +++ b/sources/libClangSharp/CXCursor.h @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 01061133..a35652af 100644 --- a/sources/libClangSharp/CXLoadedDiagnostic.cpp +++ b/sources/libClangSharp/CXLoadedDiagnostic.cpp @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 d5e38c2f..898236c0 100644 --- a/sources/libClangSharp/CXLoadedDiagnostic.h +++ b/sources/libClangSharp/CXLoadedDiagnostic.h @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 f87eb701..58241e51 100644 --- a/sources/libClangSharp/CXSourceLocation.cpp +++ b/sources/libClangSharp/CXSourceLocation.cpp @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 b81c055c..7eaf7843 100644 --- a/sources/libClangSharp/CXSourceLocation.h +++ b/sources/libClangSharp/CXSourceLocation.h @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 189b97db..b7113178 100644 --- a/sources/libClangSharp/CXString.cpp +++ b/sources/libClangSharp/CXString.cpp @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 320f2a2b..a1e93913 100644 --- a/sources/libClangSharp/CXString.h +++ b/sources/libClangSharp/CXString.h @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 67f9d3d0..69fecdb2 100644 --- a/sources/libClangSharp/CXTranslationUnit.cpp +++ b/sources/libClangSharp/CXTranslationUnit.cpp @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 41c29247..e9087cc4 100644 --- a/sources/libClangSharp/CXTranslationUnit.h +++ b/sources/libClangSharp/CXTranslationUnit.h @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 78de4834..2446a2df 100644 --- a/sources/libClangSharp/CXType.cpp +++ b/sources/libClangSharp/CXType.cpp @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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" @@ -69,6 +69,8 @@ namespace clang::cxtype { BTCASE(OCLEvent); BTCASE(OCLQueue); BTCASE(OCLReserveID); +#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) BTCASE(Id); +#include "clang/Basic/HLSLIntangibleTypes.def" default: return CXType_Unexposed; } diff --git a/sources/libClangSharp/CXType.h b/sources/libClangSharp/CXType.h index 9d5bf292..73ef66ce 100644 --- a/sources/libClangSharp/CXType.h +++ b/sources/libClangSharp/CXType.h @@ -1,6 +1,6 @@ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/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 d0f0c8a9..dce9af1f 100644 --- a/sources/libClangSharp/ClangSharp.cpp +++ b/sources/libClangSharp/ClangSharp.cpp @@ -1025,7 +1025,7 @@ CXCursor clangsharp_Cursor_getDefaultArg(CXCursor C) { const Decl* D = getCursorDecl(C); if (const NonTypeTemplateParmDecl* NTTPD = dyn_cast(D)) { - return MakeCXCursor(NTTPD->getDefaultArgument(), NTTPD, getCursorTU(C)); + return MakeCXCursor(NTTPD->getDefaultArgument().getSourceExpression(), NTTPD, getCursorTU(C)); } if (const ParmVarDecl* PVD = dyn_cast(D)) { @@ -1044,7 +1044,7 @@ CXType clangsharp_Cursor_getDefaultArgType(CXCursor C) { if (const TemplateTypeParmDecl* TTPD = dyn_cast(D)) { if (TTPD->hasDefaultArgument()) { - QT = TTPD->getDefaultArgument(); + QT = TTPD->getDefaultArgument().getTypeSourceInfo()->getType(); } } } @@ -2783,7 +2783,7 @@ unsigned clangsharp_Cursor_getIsUnnamedBitfield(CXCursor C) { const Decl* D = getCursorDecl(C); if (const FieldDecl* FD = dyn_cast(D)) { - return FD->isUnnamedBitfield(); + return FD->isUnnamedBitField(); } } @@ -3465,7 +3465,7 @@ int clangsharp_Cursor_getNumTemplateArguments(CXCursor C) { } if (FunctionTemplateDecl* FTD = const_cast(dyn_cast(D))) { - return FTD->getInjectedTemplateArgs().size(); + return FTD->getInjectedTemplateArgs(getCursorContext(C)).size(); } if (const ImplicitConceptSpecializationDecl* ICSD = const_cast(dyn_cast(D))) { @@ -4061,7 +4061,7 @@ CXCursor clangsharp_Cursor_getSubDecl(CXCursor C, unsigned i) { return MakeCXCursor(ND->getAnonymousNamespace(), getCursorTU(C)); } else if (i == 1) { - return MakeCXCursor(ND->getOriginalNamespace(), getCursorTU(C)); + return MakeCXCursor(ND->getFirstDecl(), getCursorTU(C)); } } @@ -4263,8 +4263,8 @@ CX_TemplateArgument clangsharp_Cursor_getTemplateArgument(CXCursor C, unsigned i } if (FunctionTemplateDecl* FTD = const_cast(dyn_cast(D))) { - if (i < FTD->getInjectedTemplateArgs().size()) { - const TemplateArgument* TA = &FTD->getInjectedTemplateArgs()[i]; + if (i < FTD->getInjectedTemplateArgs(getCursorContext(C)).size()) { + const TemplateArgument* TA = &FTD->getInjectedTemplateArgs(getCursorContext(C))[i]; return MakeCXTemplateArgument(TA, getCursorTU(C)); } } @@ -4819,7 +4819,7 @@ int64_t clangsharp_Cursor_getVtblIdx(CXCursor C) { } CXString clangsharp_getVersion() { - return cxstring::createDup("clangsharp version 18.1.3"); + return cxstring::createDup("clangsharp version 20.1.2"); } void clangsharp_TemplateArgument_dispose(CX_TemplateArgument T) { diff --git a/sources/libClangSharp/ClangSharp.h b/sources/libClangSharp/ClangSharp.h index b7ea675a..3b152c39 100644 --- a/sources/libClangSharp/ClangSharp.h +++ b/sources/libClangSharp/ClangSharp.h @@ -32,7 +32,7 @@ enum CX_AtomicOperatorKind { CX_AO_Invalid, #define BUILTIN(ID, TYPE, ATTRS) #define ATOMIC_BUILTIN(ID, TYPE, ATTRS) CX_AO##ID, -#include +#include }; enum CX_AttrKind { @@ -106,12 +106,19 @@ enum CX_FloatingSemantics { CX_FLK_IEEEdouble = llvm::APFloatBase::S_IEEEdouble + 1, CX_FLK_IEEEquad = llvm::APFloatBase::S_IEEEquad + 1, CX_FLK_PPCDoubleDouble = llvm::APFloatBase::S_PPCDoubleDouble + 1, + CX_FLK_PPCDoubleDoubleLegacy = llvm::APFloatBase::S_PPCDoubleDoubleLegacy + 1, CX_FLK_Float8E5M2 = llvm::APFloatBase::S_Float8E5M2 + 1, CX_FLK_Float8E5M2FNUZ = llvm::APFloatBase::S_Float8E5M2FNUZ + 1, + CX_FLK_Float8E4M3 = llvm::APFloatBase::S_Float8E4M3 + 1, CX_FLK_Float8E4M3FN = llvm::APFloatBase::S_Float8E4M3FN + 1, CX_FLK_Float8E4M3FNUZ = llvm::APFloatBase::S_Float8E4M3FNUZ + 1, CX_FLK_Float8E4M3B11FNUZ = llvm::APFloatBase::S_Float8E4M3B11FNUZ + 1, + CX_FLK_Float8E3M4 = llvm::APFloatBase::S_Float8E3M4 + 1, CX_FLK_FloatTF32 = llvm::APFloatBase::S_FloatTF32 + 1, + CX_FLK_Float8E8M0FNU = llvm::APFloatBase::S_Float8E8M0FNU + 1, + CX_FLK_Float6E3M2FN = llvm::APFloatBase::S_Float6E3M2FN + 1, + CX_FLK_Float6E2M3FN = llvm::APFloatBase::S_Float6E2M3FN + 1, + CX_FLK_Float4E2M1FN = llvm::APFloatBase::S_Float4E2M1FN + 1, CX_FLK_x87DoubleExtended = llvm::APFloatBase::S_x87DoubleExtended + 1, CX_FLK_MaxSemantics = llvm::APFloatBase::S_MaxSemantics + 1, }; @@ -162,6 +169,7 @@ enum CX_TemplateNameKind { CX_TNK_SubstTemplateTemplateParm = clang::TemplateName::SubstTemplateTemplateParm + 1, CX_TNK_SubstTemplateTemplateParmPack = clang::TemplateName::SubstTemplateTemplateParmPack + 1, CX_TNK_UsingTemplate = clang::TemplateName::UsingTemplate + 1, + CX_TNK_DeducedTemplate = clang::TemplateName::DeducedTemplate + 1, }; enum CX_TemplateSpecializationKind {