diff --git a/CMakeLists.txt b/CMakeLists.txt index ea544c91..9d303ac5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.13) -project(ClangSharp VERSION 13.0.0) +project(ClangSharp VERSION 14.0.0) set(CMAKE_CXX_STANDARD 17) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) diff --git a/ClangSharp.sln b/ClangSharp.sln index 8bd897c6..f354198a 100644 --- a/ClangSharp.sln +++ b/ClangSharp.sln @@ -71,16 +71,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.freebsd.12 packages\libclang\libclang.runtime.freebsd.12-x64\libclang.runtime.freebsd.12-x64.nuspec = packages\libclang\libclang.runtime.freebsd.12-x64\libclang.runtime.freebsd.12-x64.nuspec EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.freebsd.12-x86", "libclang.runtime.freebsd.12-x86", "{C57B4A74-2791-44C3-92D3-9B8AD5993F27}" - ProjectSection(SolutionItems) = preProject - packages\libclang\libclang.runtime.freebsd.12-x86\libclang.runtime.freebsd.12-x86.nuspec = packages\libclang\libclang.runtime.freebsd.12-x86\libclang.runtime.freebsd.12-x86.nuspec - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.linux-arm", "libclang.runtime.linux-arm", "{F9915660-2229-418C-B269-83FE74C1943E}" - ProjectSection(SolutionItems) = preProject - packages\libclang\libclang.runtime.linux-arm\libclang.runtime.linux-arm.nuspec = packages\libclang\libclang.runtime.linux-arm\libclang.runtime.linux-arm.nuspec - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.linux-arm64", "libclang.runtime.linux-arm64", "{7D89072F-8E3E-4009-BCCD-5D3C69F88042}" ProjectSection(SolutionItems) = preProject packages\libclang\libclang.runtime.linux-arm64\libclang.runtime.linux-arm64.nuspec = packages\libclang\libclang.runtime.linux-arm64\libclang.runtime.linux-arm64.nuspec @@ -119,16 +109,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.freeb packages\libClangSharp\libClangSharp.runtime.freebsd.12-x64\libClangSharp.runtime.freebsd.12-x64.nuspec = packages\libClangSharp\libClangSharp.runtime.freebsd.12-x64\libClangSharp.runtime.freebsd.12-x64.nuspec EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.freebsd.12-x86", "libClangSharp.runtime.freebsd.12-x86", "{47E5622B-77C6-44B7-8528-F03C3B63A217}" - ProjectSection(SolutionItems) = preProject - packages\libClangSharp\libClangSharp.runtime.freebsd.12-x86\libClangSharp.runtime.freebsd.12-x86.nuspec = packages\libClangSharp\libClangSharp.runtime.freebsd.12-x86\libClangSharp.runtime.freebsd.12-x86.nuspec - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.linux-arm", "libClangSharp.runtime.linux-arm", "{B48A71F0-AF48-4010-941F-AF24FDB614F2}" - ProjectSection(SolutionItems) = preProject - packages\libClangSharp\libClangSharp.runtime.linux-arm\libClangSharp.runtime.linux-arm.nuspec = packages\libClangSharp\libClangSharp.runtime.linux-arm\libClangSharp.runtime.linux-arm.nuspec - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.linux-arm64", "libClangSharp.runtime.linux-arm64", "{4F2F7171-202E-4E23-AABF-EB3501BDB0B2}" ProjectSection(SolutionItems) = preProject packages\libClangSharp\libClangSharp.runtime.linux-arm64\libClangSharp.runtime.linux-arm64.nuspec = packages\libClangSharp\libClangSharp.runtime.linux-arm64\libClangSharp.runtime.linux-arm64.nuspec @@ -185,9 +165,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.20. packages\libclang\libclang.runtime.ubuntu.20.04-x64\libclang.runtime.ubuntu.20.04-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.20.04-x64\libclang.runtime.ubuntu.20.04-x64.nuspec EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.21.04-x64", "libclang.runtime.ubuntu.21.04-x64", "{F3254760-351E-4886-A243-FF3778837C40}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.ubuntu.21.10-x64", "libclang.runtime.ubuntu.21.10-x64", "{F3254760-351E-4886-A243-FF3778837C40}" ProjectSection(SolutionItems) = preProject - packages\libclang\libclang.runtime.ubuntu.21.04-x64\libclang.runtime.ubuntu.21.04-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.21.04-x64\libclang.runtime.ubuntu.21.04-x64.nuspec + packages\libclang\libclang.runtime.ubuntu.21.10-x64\libclang.runtime.ubuntu.21.10-x64.nuspec = packages\libclang\libclang.runtime.ubuntu.21.10-x64\libclang.runtime.ubuntu.21.10-x64.nuspec EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.win-arm64", "libclang.runtime.win-arm64", "{B3F3A831-DA09-40A2-A25C-DE47A58BB93B}" @@ -195,9 +175,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.win-arm64" packages\libclang\libclang.runtime.win-arm64\libclang.runtime.win-arm64.nuspec = packages\libclang\libclang.runtime.win-arm64\libclang.runtime.win-arm64.nuspec EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.ubuntu.21.04-x64", "libClangSharp.runtime.ubuntu.21.04-x64", "{D90C3C52-DA8D-44BB-B8B0-3E4EF4CBF4DC}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.ubuntu.21.10-x64", "libClangSharp.runtime.ubuntu.21.10-x64", "{D90C3C52-DA8D-44BB-B8B0-3E4EF4CBF4DC}" ProjectSection(SolutionItems) = preProject - packages\libClangSharp\libClangSharp.runtime.ubuntu.21.04-x64\libClangSharp.runtime.ubuntu.21.04-x64.nuspec = packages\libClangSharp\libClangSharp.runtime.ubuntu.21.04-x64\libClangSharp.runtime.ubuntu.21.04-x64.nuspec + packages\libClangSharp\libClangSharp.runtime.ubuntu.21.10-x64\libClangSharp.runtime.ubuntu.21.10-x64.nuspec = packages\libClangSharp\libClangSharp.runtime.ubuntu.21.10-x64\libClangSharp.runtime.ubuntu.21.10-x64.nuspec EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.win-arm64", "libClangSharp.runtime.win-arm64", "{69B805C6-230D-49A2-A569-3CAC2EC9F293}" @@ -212,16 +192,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.freebsd.13 packages\libclang\libclang.runtime.freebsd.13-x64\libclang.runtime.freebsd.13-x64.nuspec = packages\libclang\libclang.runtime.freebsd.13-x64\libclang.runtime.freebsd.13-x64.nuspec EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libclang.runtime.freebsd.13-x86", "libclang.runtime.freebsd.13-x86", "{E76E41C3-FD6E-47FB-BC1E-120C8F88C07C}" - ProjectSection(SolutionItems) = preProject - packages\libclang\libclang.runtime.freebsd.13-x86\libclang.runtime.freebsd.13-x86.nuspec = packages\libclang\libclang.runtime.freebsd.13-x86\libclang.runtime.freebsd.13-x86.nuspec - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.freebsd.13-x86", "libClangSharp.runtime.freebsd.13-x86", "{19337D54-F5B0-4131-A753-B788EF5FE677}" - ProjectSection(SolutionItems) = preProject - packages\libClangSharp\libClangSharp.runtime.freebsd.13-x86\libClangSharp.runtime.freebsd.13-x86.nuspec = packages\libClangSharp\libClangSharp.runtime.freebsd.13-x86\libClangSharp.runtime.freebsd.13-x86.nuspec - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libClangSharp.runtime.freebsd.13-x64", "libClangSharp.runtime.freebsd.13-x64", "{B3A22C21-0699-4963-B665-F9AA74F0AF08}" ProjectSection(SolutionItems) = preProject packages\libClangSharp\libClangSharp.runtime.freebsd.13-x64\libClangSharp.runtime.freebsd.13-x64.nuspec = packages\libClangSharp\libClangSharp.runtime.freebsd.13-x64\libClangSharp.runtime.freebsd.13-x64.nuspec @@ -277,8 +247,6 @@ Global {DFACF682-2673-4AE1-8F10-816D025C2D45} = {AE6CF12F-5CC3-463B-A74B-6CCAE26EE4EF} {C8DB18BE-701A-46C4-98F9-2524914CB5DC} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {C90094F6-26DF-4B2C-BD61-540D4CE988A4} = {DFACF682-2673-4AE1-8F10-816D025C2D45} - {C57B4A74-2791-44C3-92D3-9B8AD5993F27} = {DFACF682-2673-4AE1-8F10-816D025C2D45} - {F9915660-2229-418C-B269-83FE74C1943E} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {7D89072F-8E3E-4009-BCCD-5D3C69F88042} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {8006B5D7-5E0E-4A0A-884F-62C5216144EE} = {DFACF682-2673-4AE1-8F10-816D025C2D45} {8756B75F-F244-43AD-9C79-1610059BDF36} = {DFACF682-2673-4AE1-8F10-816D025C2D45} @@ -287,8 +255,6 @@ Global {EDEC2130-DA14-4415-91A3-225733FB61F8} = {AE6CF12F-5CC3-463B-A74B-6CCAE26EE4EF} {B043C50D-8B06-4663-943A-DEBB6CFACEA6} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {8DCBB5E9-A44C-462F-B9FE-418B18EC7E31} = {EDEC2130-DA14-4415-91A3-225733FB61F8} - {47E5622B-77C6-44B7-8528-F03C3B63A217} = {EDEC2130-DA14-4415-91A3-225733FB61F8} - {B48A71F0-AF48-4010-941F-AF24FDB614F2} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {4F2F7171-202E-4E23-AABF-EB3501BDB0B2} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {C2BE41E6-95E9-431A-9C49-923BD50692AB} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {A04F314B-2373-496E-879F-763B5C8EAF00} = {EDEC2130-DA14-4415-91A3-225733FB61F8} @@ -303,8 +269,6 @@ Global {69B805C6-230D-49A2-A569-3CAC2EC9F293} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {AADBAAC3-45F0-484F-BCB2-9809EDF1CA82} = {732BA761-B58E-4C34-9C96-097382A55A7A} {8FD0223B-88AD-4FA9-AE29-0B446FF17922} = {DFACF682-2673-4AE1-8F10-816D025C2D45} - {E76E41C3-FD6E-47FB-BC1E-120C8F88C07C} = {DFACF682-2673-4AE1-8F10-816D025C2D45} - {19337D54-F5B0-4131-A753-B788EF5FE677} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {B3A22C21-0699-4963-B665-F9AA74F0AF08} = {EDEC2130-DA14-4415-91A3-225733FB61F8} {034EBD16-E96F-4530-B37D-30B16C4E9876} = {FF42B475-5025-45BA-B278-60F29B53C023} EndGlobalSection diff --git a/Directory.Build.props b/Directory.Build.props index 472c2eb9..5933a82a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -42,7 +42,7 @@ true $(BaseArtifactsPath)pkg/$(Configuration)/ ClangSharp - 13.0.0 + 14.0.0 beta2 pr diff --git a/Directory.Build.targets b/Directory.Build.targets index 1df25982..ba351db4 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -33,13 +33,13 @@ - - + + - + - - + + diff --git a/README.md b/README.md index 63ef3c1a..a4ec7eaa 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Building this requires [CMake 3.13 or later](https://cmake.org/download/) as wel To succesfully build `libClangSharp` you must first build Clang (https://clang.llvm.org/get_started.html). The process done on Windows is roughly: ```cmd -git clone --single-branch --branch llvmorg-13.0.0 https://github.com/llvm/llvm-project +git clone --single-branch --branch llvmorg-14.0.0 https://github.com/llvm/llvm-project cd llvm-project mkdir artifacts/bin cd artifacts/bin @@ -93,7 +93,7 @@ git clone https://github.com/dotnet/clangsharp cd clangsharp mkdir artifacts/bin/native cd artifacts/bin/native -cmake -DPATH_TO_LLVM=/usr/lib/llvm/13/ ../../.. +cmake -DPATH_TO_LLVM=/usr/lib/llvm/14/ ../../.. make ``` @@ -103,7 +103,7 @@ git clone https://github.com/dotnet/clangsharp cd clangsharp mkdir artifacts/bin/native cd artifacts/bin/native -cmake -DPATH_TO_LLVM=/usr/lib/llvm/13/ -G Ninja ../../.. +cmake -DPATH_TO_LLVM=/usr/lib/llvm/14/ -G Ninja ../../.. ninja ``` @@ -113,7 +113,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 13.0.0-beta1 +dotnet tool install --global ClangSharpPInvokeGenerator --version 14.0.0-beta1 ClangSharpPInvokeGenerator @generate.rsp ``` diff --git a/packages/libClangSharp/libClangSharp.runtime.freebsd.12-x64/libClangSharp.runtime.freebsd.12-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.freebsd.12-x64/libClangSharp.runtime.freebsd.12-x64.nuspec index 591cd507..50435f6e 100644 --- a/packages/libClangSharp/libClangSharp.runtime.freebsd.12-x64/libClangSharp.runtime.freebsd.12-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.freebsd.12-x64/libClangSharp.runtime.freebsd.12-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.freebsd.12-x64 - 13.0.0-beta1 + 14.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.freebsd.12-x86/libClangSharp.runtime.freebsd.12-x86.nuspec b/packages/libClangSharp/libClangSharp.runtime.freebsd.12-x86/libClangSharp.runtime.freebsd.12-x86.nuspec deleted file mode 100644 index 997818e9..00000000 --- a/packages/libClangSharp/libClangSharp.runtime.freebsd.12-x86/libClangSharp.runtime.freebsd.12-x86.nuspec +++ /dev/null @@ -1,20 +0,0 @@ - - - - libClangSharp.runtime.freebsd.12-x86 - 13.0.0-beta1 - Microsoft and Contributors - Microsoft and Contributors - true - NCSA - https://github.com/dotnet/clangsharp - freebsd 12 x86 native library for libClangSharp. - Copyright © Microsoft and Contributors - - - - - - - - diff --git a/packages/libClangSharp/libClangSharp.runtime.freebsd.13-x64/libClangSharp.runtime.freebsd.13-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.freebsd.13-x64/libClangSharp.runtime.freebsd.13-x64.nuspec index ba1d1eae..890dc5fe 100644 --- a/packages/libClangSharp/libClangSharp.runtime.freebsd.13-x64/libClangSharp.runtime.freebsd.13-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.freebsd.13-x64/libClangSharp.runtime.freebsd.13-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.freebsd.13-x64 - 13.0.0-beta1 + 14.0.0-beta1 Microsoft and Contributors Microsoft and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.freebsd.13-x86/libClangSharp.runtime.freebsd.13-x86.nuspec b/packages/libClangSharp/libClangSharp.runtime.freebsd.13-x86/libClangSharp.runtime.freebsd.13-x86.nuspec deleted file mode 100644 index ce9ad693..00000000 --- a/packages/libClangSharp/libClangSharp.runtime.freebsd.13-x86/libClangSharp.runtime.freebsd.13-x86.nuspec +++ /dev/null @@ -1,20 +0,0 @@ - - - - libClangSharp.runtime.freebsd.13-x86 - 13.0.0-beta1 - Microsoft and Contributors - Microsoft and Contributors - true - NCSA - https://github.com/dotnet/clangsharp - freebsd 13 x86 native library for libClangSharp. - Copyright © Microsoft and Contributors - - - - - - - - diff --git a/packages/libClangSharp/libClangSharp.runtime.linux-arm/libClangSharp.runtime.linux-arm.nuspec b/packages/libClangSharp/libClangSharp.runtime.linux-arm/libClangSharp.runtime.linux-arm.nuspec deleted file mode 100644 index 59a269f0..00000000 --- a/packages/libClangSharp/libClangSharp.runtime.linux-arm/libClangSharp.runtime.linux-arm.nuspec +++ /dev/null @@ -1,20 +0,0 @@ - - - - libClangSharp.runtime.linux-arm - 13.0.0-beta1 - .NET Foundation and Contributors - .NET Foundation and Contributors - true - MIT - https://github.com/dotnet/clangsharp - linux arm native library for libClangSharp. - Copyright © .NET Foundation and Contributors - - - - - - - - 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 f9d91981..82dbaec5 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 - 13.0.0-beta1 + 14.0.0-beta1 .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 index 710bc91d..29aa6e26 100644 --- a/packages/libClangSharp/libClangSharp.runtime.osx-x64/libClangSharp.runtime.osx-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.osx-x64/libClangSharp.runtime.osx-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.osx-x64 - 13.0.0-beta1 + 14.0.0-beta1 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.ubuntu.18.04-x64/libClangSharp.runtime.ubuntu.18.04-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.ubuntu.18.04-x64/libClangSharp.runtime.ubuntu.18.04-x64.nuspec index 753c7a66..bc379b95 100644 --- a/packages/libClangSharp/libClangSharp.runtime.ubuntu.18.04-x64/libClangSharp.runtime.ubuntu.18.04-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.ubuntu.18.04-x64/libClangSharp.runtime.ubuntu.18.04-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.ubuntu.18.04-x64 - 13.0.0-beta1 + 14.0.0-beta1 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.ubuntu.20.04-x64/libClangSharp.runtime.ubuntu.20.04-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.ubuntu.20.04-x64/libClangSharp.runtime.ubuntu.20.04-x64.nuspec index 0e4dc956..9bdef46e 100644 --- a/packages/libClangSharp/libClangSharp.runtime.ubuntu.20.04-x64/libClangSharp.runtime.ubuntu.20.04-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.ubuntu.20.04-x64/libClangSharp.runtime.ubuntu.20.04-x64.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.ubuntu.20.04-x64 - 13.0.0-beta1 + 14.0.0-beta1 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.ubuntu.21.04-x64/libClangSharp.runtime.ubuntu.21.04-x64.nuspec b/packages/libClangSharp/libClangSharp.runtime.ubuntu.21.10-x64/libClangSharp.runtime.ubuntu.21.10-x64.nuspec similarity index 78% rename from packages/libClangSharp/libClangSharp.runtime.ubuntu.21.04-x64/libClangSharp.runtime.ubuntu.21.04-x64.nuspec rename to packages/libClangSharp/libClangSharp.runtime.ubuntu.21.10-x64/libClangSharp.runtime.ubuntu.21.10-x64.nuspec index 3a510629..e07338da 100644 --- a/packages/libClangSharp/libClangSharp.runtime.ubuntu.21.04-x64/libClangSharp.runtime.ubuntu.21.04-x64.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.ubuntu.21.10-x64/libClangSharp.runtime.ubuntu.21.10-x64.nuspec @@ -1,20 +1,20 @@ - libClangSharp.runtime.ubuntu.21.04-x64 - 13.0.0-beta1 + libClangSharp.runtime.ubuntu.21.10-x64 + 14.0.0-beta1 .NET Foundation and Contributors .NET Foundation and Contributors true MIT https://github.com/dotnet/clangsharp - ubuntu 21.04 x64 native library for libClangSharp. + ubuntu 21.10 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 252f4bbd..b14dc91d 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 - 13.0.0-beta1 + 14.0.0-beta1 .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 08077d72..7f701a3f 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 - 13.0.0-beta1 + 14.0.0-beta1 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp.runtime.win-x86/libClangSharp.runtime.win-x86.nuspec b/packages/libClangSharp/libClangSharp.runtime.win-x86/libClangSharp.runtime.win-x86.nuspec index d5a9f5c3..b7b2dcf9 100644 --- a/packages/libClangSharp/libClangSharp.runtime.win-x86/libClangSharp.runtime.win-x86.nuspec +++ b/packages/libClangSharp/libClangSharp.runtime.win-x86/libClangSharp.runtime.win-x86.nuspec @@ -2,7 +2,7 @@ libClangSharp.runtime.win-x86 - 13.0.0-beta1 + 14.0.0-beta1 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp/libClangSharp.nuspec b/packages/libClangSharp/libClangSharp/libClangSharp.nuspec index e902d891..51ad6b10 100644 --- a/packages/libClangSharp/libClangSharp/libClangSharp.nuspec +++ b/packages/libClangSharp/libClangSharp/libClangSharp.nuspec @@ -2,7 +2,7 @@ libClangSharp - 13.0.0-beta1 + 14.0.0-beta1 .NET Foundation and Contributors .NET Foundation and Contributors true diff --git a/packages/libClangSharp/libClangSharp/runtime.json b/packages/libClangSharp/libClangSharp/runtime.json index 04c79820..680eaae4 100644 --- a/packages/libClangSharp/libClangSharp/runtime.json +++ b/packages/libClangSharp/libClangSharp/runtime.json @@ -2,67 +2,52 @@ "runtimes": { "freebsd.12-x64": { "libClangSharp": { - "libClangSharp.runtime.freebsd.12-x64": "13.0.0-beta1" - } - }, - "freebsd.12-x86": { - "libClangSharp": { - "libClangSharp.runtime.freebsd.12-x86": "13.0.0-beta1" + "libClangSharp.runtime.freebsd.12-x64": "14.0.0-beta1" } }, "freebsd.13-x64": { "libClangSharp": { - "libClangSharp.runtime.freebsd.13-x64": "13.0.0-beta1" - } - }, - "freebsd.13-x86": { - "libClangSharp": { - "libClangSharp.runtime.freebsd.13-x86": "13.0.0-beta1" - } - }, - "linux-arm": { - "libClangSharp": { - "libClangSharp.runtime.linux-arm": "13.0.0-beta1" + "libClangSharp.runtime.freebsd.13-x64": "14.0.0-beta1" } }, "linux-arm64": { "libClangSharp": { - "libClangSharp.runtime.linux-arm64": "13.0.0-beta1" + "libClangSharp.runtime.linux-arm64": "14.0.0-beta1" } }, "osx-x64": { "libClangSharp": { - "libClangSharp.runtime.osx-x64": "13.0.0-beta1" + "libClangSharp.runtime.osx-x64": "14.0.0-beta1" } }, "ubuntu.18.04-x64": { "libClangSharp": { - "libClangSharp.runtime.ubuntu.18.04-x64": "13.0.0-beta1" + "libClangSharp.runtime.ubuntu.18.04-x64": "14.0.0-beta1" } }, "ubuntu.20.04-x64": { "libClangSharp": { - "libClangSharp.runtime.ubuntu.20.04-x64": "13.0.0-beta1" + "libClangSharp.runtime.ubuntu.20.04-x64": "14.0.0-beta1" } }, - "ubuntu.21.04-x64": { + "ubuntu.21.10-x64": { "libClangSharp": { - "libClangSharp.runtime.ubuntu.21.04-x64": "13.0.0-beta1" + "libClangSharp.runtime.ubuntu.21.10-x64": "14.0.0-beta1" } }, "win-arm64": { "libClangSharp": { - "libClangSharp.runtime.win-arm64": "13.0.0-beta1" + "libClangSharp.runtime.win-arm64": "14.0.0-beta1" } }, "win-x64": { "libClangSharp": { - "libClangSharp.runtime.win-x64": "13.0.0-beta1" + "libClangSharp.runtime.win-x64": "14.0.0-beta1" } }, "win-x86": { "libClangSharp": { - "libClangSharp.runtime.win-x86": "13.0.0-beta1" + "libClangSharp.runtime.win-x86": "14.0.0-beta1" } } } diff --git a/packages/libclang/libclang.runtime.freebsd.12-x64/libclang.runtime.freebsd.12-x64.nuspec b/packages/libclang/libclang.runtime.freebsd.12-x64/libclang.runtime.freebsd.12-x64.nuspec index 8351403a..b12c2270 100644 --- a/packages/libclang/libclang.runtime.freebsd.12-x64/libclang.runtime.freebsd.12-x64.nuspec +++ b/packages/libclang/libclang.runtime.freebsd.12-x64/libclang.runtime.freebsd.12-x64.nuspec @@ -2,7 +2,7 @@ libclang.runtime.freebsd.12-x64 - 13.0.0 + 14.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp freebsd 12 x64 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang.runtime.freebsd.12-x86/libclang.runtime.freebsd.12-x86.nuspec b/packages/libclang/libclang.runtime.freebsd.12-x86/libclang.runtime.freebsd.12-x86.nuspec deleted file mode 100644 index f483fe5d..00000000 --- a/packages/libclang/libclang.runtime.freebsd.12-x86/libclang.runtime.freebsd.12-x86.nuspec +++ /dev/null @@ -1,19 +0,0 @@ - - - - libclang.runtime.freebsd.12-x86 - 13.0.0 - Microsoft and Contributors - Microsoft and Contributors - true - Apache-2.0 WITH LLVM-exception - https://github.com/dotnet/clangsharp - freebsd 12 x86 native library for libclang. - Copyright © LLVM Project - - - - - - - diff --git a/packages/libclang/libclang.runtime.freebsd.13-x64/libclang.runtime.freebsd.13-x64.nuspec b/packages/libclang/libclang.runtime.freebsd.13-x64/libclang.runtime.freebsd.13-x64.nuspec index c8a995d1..a9d2fa4f 100644 --- a/packages/libclang/libclang.runtime.freebsd.13-x64/libclang.runtime.freebsd.13-x64.nuspec +++ b/packages/libclang/libclang.runtime.freebsd.13-x64/libclang.runtime.freebsd.13-x64.nuspec @@ -2,7 +2,7 @@ libclang.runtime.freebsd.13-x64 - 13.0.0 + 14.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp freebsd 13 x64 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang.runtime.freebsd.13-x86/libclang.runtime.freebsd.13-x86.nuspec b/packages/libclang/libclang.runtime.freebsd.13-x86/libclang.runtime.freebsd.13-x86.nuspec deleted file mode 100644 index 5c7440d2..00000000 --- a/packages/libclang/libclang.runtime.freebsd.13-x86/libclang.runtime.freebsd.13-x86.nuspec +++ /dev/null @@ -1,19 +0,0 @@ - - - - libclang.runtime.freebsd.13-x86 - 13.0.0 - Microsoft and Contributors - Microsoft and Contributors - true - Apache-2.0 WITH LLVM-exception - https://github.com/dotnet/clangsharp - freebsd 13 x86 native library for libclang. - Copyright © LLVM Project - - - - - - - diff --git a/packages/libclang/libclang.runtime.linux-arm/libclang.runtime.linux-arm.nuspec b/packages/libclang/libclang.runtime.linux-arm/libclang.runtime.linux-arm.nuspec deleted file mode 100644 index cd892287..00000000 --- a/packages/libclang/libclang.runtime.linux-arm/libclang.runtime.linux-arm.nuspec +++ /dev/null @@ -1,19 +0,0 @@ - - - - libclang.runtime.linux-arm - 13.0.0 - .NET Foundation and Contributors - .NET Foundation and Contributors - true - Apache-2.0 WITH LLVM-exception - https://github.com/dotnet/clangsharp - linux arm native library for libclang. - Copyright © LLVM Project - - - - - - - diff --git a/packages/libclang/libclang.runtime.linux-arm64/libclang.runtime.linux-arm64.nuspec b/packages/libclang/libclang.runtime.linux-arm64/libclang.runtime.linux-arm64.nuspec index db4bcd84..2fc218e5 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 - 13.0.0 + 14.0.0 .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.osx-x64/libclang.runtime.osx-x64.nuspec b/packages/libclang/libclang.runtime.osx-x64/libclang.runtime.osx-x64.nuspec index 14b65171..09eb4714 100644 --- a/packages/libclang/libclang.runtime.osx-x64/libclang.runtime.osx-x64.nuspec +++ b/packages/libclang/libclang.runtime.osx-x64/libclang.runtime.osx-x64.nuspec @@ -2,7 +2,7 @@ libclang.runtime.osx-x64 - 13.0.0 + 14.0.0 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp osx x64 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang.runtime.ubuntu.18.04-x64/libclang.runtime.ubuntu.18.04-x64.nuspec b/packages/libclang/libclang.runtime.ubuntu.18.04-x64/libclang.runtime.ubuntu.18.04-x64.nuspec index 78690b71..564cb8c6 100644 --- a/packages/libclang/libclang.runtime.ubuntu.18.04-x64/libclang.runtime.ubuntu.18.04-x64.nuspec +++ b/packages/libclang/libclang.runtime.ubuntu.18.04-x64/libclang.runtime.ubuntu.18.04-x64.nuspec @@ -2,7 +2,7 @@ libclang.runtime.ubuntu.18.04-x64 - 13.0.0 + 14.0.0 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp ubuntu 18.04 x64 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang.runtime.ubuntu.20.04-x64/libclang.runtime.ubuntu.20.04-x64.nuspec b/packages/libclang/libclang.runtime.ubuntu.20.04-x64/libclang.runtime.ubuntu.20.04-x64.nuspec index 6bd7837b..01a27106 100644 --- a/packages/libclang/libclang.runtime.ubuntu.20.04-x64/libclang.runtime.ubuntu.20.04-x64.nuspec +++ b/packages/libclang/libclang.runtime.ubuntu.20.04-x64/libclang.runtime.ubuntu.20.04-x64.nuspec @@ -2,7 +2,7 @@ libclang.runtime.ubuntu.20.04-x64 - 13.0.0 + 14.0.0 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp ubuntu 20.04 x64 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang.runtime.ubuntu.21.04-x64/libclang.runtime.ubuntu.21.04-x64.nuspec b/packages/libclang/libclang.runtime.ubuntu.21.10-x64/libclang.runtime.ubuntu.21.10-x64.nuspec similarity index 75% rename from packages/libclang/libclang.runtime.ubuntu.21.04-x64/libclang.runtime.ubuntu.21.04-x64.nuspec rename to packages/libclang/libclang.runtime.ubuntu.21.10-x64/libclang.runtime.ubuntu.21.10-x64.nuspec index cff85eed..d82a90a0 100644 --- a/packages/libclang/libclang.runtime.ubuntu.21.04-x64/libclang.runtime.ubuntu.21.04-x64.nuspec +++ b/packages/libclang/libclang.runtime.ubuntu.21.10-x64/libclang.runtime.ubuntu.21.10-x64.nuspec @@ -1,19 +1,19 @@ - libclang.runtime.ubuntu.21.04-x64 - 13.0.0 + libclang.runtime.ubuntu.21.10-x64 + 14.0.0 .NET Foundation and Contributors .NET Foundation and Contributors true Apache-2.0 WITH LLVM-exception https://github.com/dotnet/clangsharp - ubuntu 21.04 x64 native library for libclang. + ubuntu 21.10 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 769f7453..6e9be542 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 - 13.0.0 + 14.0.0 .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 b21588fe..b92dd1c1 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 - 13.0.0 + 14.0.0 .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.runtime.win-x86/libclang.runtime.win-x86.nuspec b/packages/libclang/libclang.runtime.win-x86/libclang.runtime.win-x86.nuspec index 38860fc3..a980c73e 100644 --- a/packages/libclang/libclang.runtime.win-x86/libclang.runtime.win-x86.nuspec +++ b/packages/libclang/libclang.runtime.win-x86/libclang.runtime.win-x86.nuspec @@ -2,7 +2,7 @@ libclang.runtime.win-x86 - 13.0.0 + 14.0.0 .NET Foundation and Contributors .NET Foundation and Contributors true @@ -10,7 +10,7 @@ https://github.com/dotnet/clangsharp win x86 native library for libclang. Copyright © LLVM Project - + diff --git a/packages/libclang/libclang/libclang.nuspec b/packages/libclang/libclang/libclang.nuspec index d76e9b55..9b7c68b9 100644 --- a/packages/libclang/libclang/libclang.nuspec +++ b/packages/libclang/libclang/libclang.nuspec @@ -2,7 +2,7 @@ libclang - 13.0.1 + 14.0.0 .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 a2404a57..68a6757b 100644 --- a/packages/libclang/libclang/runtime.json +++ b/packages/libclang/libclang/runtime.json @@ -2,67 +2,52 @@ "runtimes": { "freebsd.12-x64": { "libclang": { - "libclang.runtime.freebsd.12-x64": "13.0.0" - } - }, - "freebsd.12-x86": { - "libclang": { - "libclang.runtime.freebsd.12-x86": "13.0.0" + "libclang.runtime.freebsd.12-x64": "14.0.0" } }, "freebsd.13-x64": { "libclang": { - "libclang.runtime.freebsd.13-x64": "13.0.0" - } - }, - "freebsd.13-x86": { - "libclang": { - "libclang.runtime.freebsd.13-x86": "13.0.0" - } - }, - "linux-arm": { - "libclang": { - "libclang.runtime.linux-arm": "13.0.0" + "libclang.runtime.freebsd.13-x64": "14.0.0" } }, "linux-arm64": { "libclang": { - "libclang.runtime.linux-arm64": "13.0.0" + "libclang.runtime.linux-arm64": "14.0.0" } }, "osx-x64": { "libclang": { - "libclang.runtime.osx-x64": "13.0.0" + "libclang.runtime.osx-x64": "14.0.0" } }, "ubuntu.18.04-x64": { "libclang": { - "libclang.runtime.ubuntu.18.04-x64": "13.0.0" + "libclang.runtime.ubuntu.18.04-x64": "14.0.0" } }, "ubuntu.20.04-x64": { "libclang": { - "libclang.runtime.ubuntu.20.04-x64": "13.0.0" + "libclang.runtime.ubuntu.20.04-x64": "14.0.0" } }, - "ubuntu.21.04-x64": { + "ubuntu.21.10-x64": { "libclang": { - "libclang.runtime.ubuntu.21.04-x64": "13.0.0" + "libclang.runtime.ubuntu.21.10-x64": "14.0.0" } }, "win-arm64": { "libclang": { - "libclang.runtime.win-arm64": "13.0.0" + "libclang.runtime.win-arm64": "14.0.0" } }, "win-x64": { "libclang": { - "libclang.runtime.win-x64": "13.0.0" + "libclang.runtime.win-x64": "14.0.0" } }, "win-x86": { "libclang": { - "libclang.runtime.win-x86": "13.0.0" + "libclang.runtime.win-x86": "14.0.0" } } } diff --git a/sources/ClangSharp.Interop/CXAvailabilityKind.cs b/sources/ClangSharp.Interop/CXAvailabilityKind.cs index baf70d47..48d3ba04 100644 --- a/sources/ClangSharp.Interop/CXAvailabilityKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCallingConv.cs b/sources/ClangSharp.Interop/CXCallingConv.cs index d7e93867..45891705 100644 --- a/sources/ClangSharp.Interop/CXCallingConv.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXChildVisitResult.cs b/sources/ClangSharp.Interop/CXChildVisitResult.cs index e8175a51..5c308dcd 100644 --- a/sources/ClangSharp.Interop/CXChildVisitResult.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCodeCompleteResults.cs b/sources/ClangSharp.Interop/CXCodeCompleteResults.cs index 198147c6..c22b42b0 100644 --- a/sources/ClangSharp.Interop/CXCodeCompleteResults.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCodeComplete_Flags.cs b/sources/ClangSharp.Interop/CXCodeComplete_Flags.cs index ac4cf110..262fcf13 100644 --- a/sources/ClangSharp.Interop/CXCodeComplete_Flags.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXComment.cs b/sources/ClangSharp.Interop/CXComment.cs index 3391426c..53f57c77 100644 --- a/sources/ClangSharp.Interop/CXComment.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCommentInlineCommandRenderKind.cs b/sources/ClangSharp.Interop/CXCommentInlineCommandRenderKind.cs index 6699a168..142de8ff 100644 --- a/sources/ClangSharp.Interop/CXCommentInlineCommandRenderKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCommentKind.cs b/sources/ClangSharp.Interop/CXCommentKind.cs index d0984eda..494cbef4 100644 --- a/sources/ClangSharp.Interop/CXCommentKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCommentParamPassDirection.cs b/sources/ClangSharp.Interop/CXCommentParamPassDirection.cs index d140b5f8..558917e5 100644 --- a/sources/ClangSharp.Interop/CXCommentParamPassDirection.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCompilationDatabase_Error.cs b/sources/ClangSharp.Interop/CXCompilationDatabase_Error.cs index de7b33dc..dd4d96ca 100644 --- a/sources/ClangSharp.Interop/CXCompilationDatabase_Error.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCompletionChunkKind.cs b/sources/ClangSharp.Interop/CXCompletionChunkKind.cs index cb6067c9..7075721a 100644 --- a/sources/ClangSharp.Interop/CXCompletionChunkKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCompletionContext.cs b/sources/ClangSharp.Interop/CXCompletionContext.cs index a4c44633..3b4d64ce 100644 --- a/sources/ClangSharp.Interop/CXCompletionContext.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCompletionResult.cs b/sources/ClangSharp.Interop/CXCompletionResult.cs index 2916d7dc..10a00e19 100644 --- a/sources/ClangSharp.Interop/CXCompletionResult.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCursor.cs b/sources/ClangSharp.Interop/CXCursor.cs index dafc034b..6797955d 100644 --- a/sources/ClangSharp.Interop/CXCursor.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCursorAndRangeVisitor.cs b/sources/ClangSharp.Interop/CXCursorAndRangeVisitor.cs index 0e44e29f..970e002e 100644 --- a/sources/ClangSharp.Interop/CXCursorAndRangeVisitor.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/ClangSharp.Interop/CXCursorKind.cs b/sources/ClangSharp.Interop/CXCursorKind.cs index 2a870db8..036950ef 100644 --- a/sources/ClangSharp.Interop/CXCursorKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop @@ -218,7 +218,9 @@ public enum CXCursorKind CXCursor_OMPDispatchDirective = 291, CXCursor_OMPMaskedDirective = 292, CXCursor_OMPUnrollDirective = 293, - CXCursor_LastStmt = CXCursor_OMPUnrollDirective, + CXCursor_OMPMetaDirective = 294, + CXCursor_OMPGenericLoopDirective = 295, + CXCursor_LastStmt = CXCursor_OMPGenericLoopDirective, CXCursor_TranslationUnit = 300, CXCursor_FirstAttr = 400, CXCursor_UnexposedAttr = 400, diff --git a/sources/ClangSharp.Interop/CXCursorSetImpl.cs b/sources/ClangSharp.Interop/CXCursorSetImpl.cs index 3d399370..14b68fb9 100644 --- a/sources/ClangSharp.Interop/CXCursorSetImpl.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXCursorVisitor.cs b/sources/ClangSharp.Interop/CXCursorVisitor.cs index 8dd9b742..260e891a 100644 --- a/sources/ClangSharp.Interop/CXCursorVisitor.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/ClangSharp.Interop/CXCursor_ExceptionSpecificationKind.cs b/sources/ClangSharp.Interop/CXCursor_ExceptionSpecificationKind.cs index 2c5ae146..4df7a33f 100644 --- a/sources/ClangSharp.Interop/CXCursor_ExceptionSpecificationKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXDiagnosticDisplayOptions.cs b/sources/ClangSharp.Interop/CXDiagnosticDisplayOptions.cs index 235db138..acfab9d4 100644 --- a/sources/ClangSharp.Interop/CXDiagnosticDisplayOptions.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXDiagnosticSeverity.cs b/sources/ClangSharp.Interop/CXDiagnosticSeverity.cs index 8cd15ef9..0aaf3d2d 100644 --- a/sources/ClangSharp.Interop/CXDiagnosticSeverity.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXErrorCode.cs b/sources/ClangSharp.Interop/CXErrorCode.cs index a2fb3018..3d37f8c1 100644 --- a/sources/ClangSharp.Interop/CXErrorCode.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXEvalResultKind.cs b/sources/ClangSharp.Interop/CXEvalResultKind.cs index ec89ae6a..4aa7c5db 100644 --- a/sources/ClangSharp.Interop/CXEvalResultKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXFieldVisitor.cs b/sources/ClangSharp.Interop/CXFieldVisitor.cs index ebc34730..0fb466cf 100644 --- a/sources/ClangSharp.Interop/CXFieldVisitor.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/ClangSharp.Interop/CXFileUniqueID.cs b/sources/ClangSharp.Interop/CXFileUniqueID.cs index 941a26f4..2afdfa7a 100644 --- a/sources/ClangSharp.Interop/CXFileUniqueID.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXGlobalOptFlags.cs b/sources/ClangSharp.Interop/CXGlobalOptFlags.cs index f43716c6..f479d26c 100644 --- a/sources/ClangSharp.Interop/CXGlobalOptFlags.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxAttrInfo.cs b/sources/ClangSharp.Interop/CXIdxAttrInfo.cs index 6079c13b..4e77fa7e 100644 --- a/sources/ClangSharp.Interop/CXIdxAttrInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxAttrKind.cs b/sources/ClangSharp.Interop/CXIdxAttrKind.cs index c41f1dfd..40d1edff 100644 --- a/sources/ClangSharp.Interop/CXIdxAttrKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxBaseClassInfo.cs b/sources/ClangSharp.Interop/CXIdxBaseClassInfo.cs index b7e442fc..0488d531 100644 --- a/sources/ClangSharp.Interop/CXIdxBaseClassInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxCXXClassDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxCXXClassDeclInfo.cs index 7e582f9b..8f948836 100644 --- a/sources/ClangSharp.Interop/CXIdxCXXClassDeclInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxContainerInfo.cs b/sources/ClangSharp.Interop/CXIdxContainerInfo.cs index 408492ad..e2ff305d 100644 --- a/sources/ClangSharp.Interop/CXIdxContainerInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxDeclInfo.cs index 13f5a54c..b27bff1f 100644 --- a/sources/ClangSharp.Interop/CXIdxDeclInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxDeclInfoFlags.cs b/sources/ClangSharp.Interop/CXIdxDeclInfoFlags.cs index a5923ee3..b4e3e771 100644 --- a/sources/ClangSharp.Interop/CXIdxDeclInfoFlags.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxEntityCXXTemplateKind.cs b/sources/ClangSharp.Interop/CXIdxEntityCXXTemplateKind.cs index 635d990c..1d72b3b9 100644 --- a/sources/ClangSharp.Interop/CXIdxEntityCXXTemplateKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxEntityInfo.cs b/sources/ClangSharp.Interop/CXIdxEntityInfo.cs index 8e8f2742..870541a8 100644 --- a/sources/ClangSharp.Interop/CXIdxEntityInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxEntityKind.cs b/sources/ClangSharp.Interop/CXIdxEntityKind.cs index c8394ab8..51545cd6 100644 --- a/sources/ClangSharp.Interop/CXIdxEntityKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxEntityLanguage.cs b/sources/ClangSharp.Interop/CXIdxEntityLanguage.cs index 9815e46b..ebdac6ea 100644 --- a/sources/ClangSharp.Interop/CXIdxEntityLanguage.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxEntityRefInfo.cs b/sources/ClangSharp.Interop/CXIdxEntityRefInfo.cs index c1873917..f854b1a4 100644 --- a/sources/ClangSharp.Interop/CXIdxEntityRefInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxEntityRefKind.cs b/sources/ClangSharp.Interop/CXIdxEntityRefKind.cs index 6473c675..bff95de2 100644 --- a/sources/ClangSharp.Interop/CXIdxEntityRefKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxIBOutletCollectionAttrInfo.cs b/sources/ClangSharp.Interop/CXIdxIBOutletCollectionAttrInfo.cs index 9b49695a..bc6b4c77 100644 --- a/sources/ClangSharp.Interop/CXIdxIBOutletCollectionAttrInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxImportedASTFileInfo.cs b/sources/ClangSharp.Interop/CXIdxImportedASTFileInfo.cs index e587cc1c..de613135 100644 --- a/sources/ClangSharp.Interop/CXIdxImportedASTFileInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxIncludedFileInfo.cs b/sources/ClangSharp.Interop/CXIdxIncludedFileInfo.cs index 887f6f02..4c241f3a 100644 --- a/sources/ClangSharp.Interop/CXIdxIncludedFileInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxLoc.cs b/sources/ClangSharp.Interop/CXIdxLoc.cs index 02a4ac83..88457a5b 100644 --- a/sources/ClangSharp.Interop/CXIdxLoc.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxObjCCategoryDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCCategoryDeclInfo.cs index 0c7b7ac5..1eeddf7d 100644 --- a/sources/ClangSharp.Interop/CXIdxObjCCategoryDeclInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxObjCContainerDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCContainerDeclInfo.cs index c8148b66..e748cf84 100644 --- a/sources/ClangSharp.Interop/CXIdxObjCContainerDeclInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxObjCContainerKind.cs b/sources/ClangSharp.Interop/CXIdxObjCContainerKind.cs index c384dc7b..f95d070b 100644 --- a/sources/ClangSharp.Interop/CXIdxObjCContainerKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxObjCInterfaceDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCInterfaceDeclInfo.cs index b0fb52a9..e7fa9ec3 100644 --- a/sources/ClangSharp.Interop/CXIdxObjCInterfaceDeclInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxObjCPropertyDeclInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCPropertyDeclInfo.cs index 084b9fca..521f7bee 100644 --- a/sources/ClangSharp.Interop/CXIdxObjCPropertyDeclInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxObjCProtocolRefInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCProtocolRefInfo.cs index 872a32b7..1531313a 100644 --- a/sources/ClangSharp.Interop/CXIdxObjCProtocolRefInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXIdxObjCProtocolRefListInfo.cs b/sources/ClangSharp.Interop/CXIdxObjCProtocolRefListInfo.cs index 60013942..da87ca37 100644 --- a/sources/ClangSharp.Interop/CXIdxObjCProtocolRefListInfo.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXInclusionVisitor.cs b/sources/ClangSharp.Interop/CXInclusionVisitor.cs index 45c3cdff..80eef2bc 100644 --- a/sources/ClangSharp.Interop/CXInclusionVisitor.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/ClangSharp.Interop/CXIndexOptFlags.cs b/sources/ClangSharp.Interop/CXIndexOptFlags.cs index 84b10fda..15ddcdf7 100644 --- a/sources/ClangSharp.Interop/CXIndexOptFlags.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXLanguageKind.cs b/sources/ClangSharp.Interop/CXLanguageKind.cs index e87378c3..394a3ea9 100644 --- a/sources/ClangSharp.Interop/CXLanguageKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXLinkageKind.cs b/sources/ClangSharp.Interop/CXLinkageKind.cs index 08114be5..f54f425c 100644 --- a/sources/ClangSharp.Interop/CXLinkageKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXLoadDiag_Error.cs b/sources/ClangSharp.Interop/CXLoadDiag_Error.cs index cecb9053..858195b4 100644 --- a/sources/ClangSharp.Interop/CXLoadDiag_Error.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXModuleMapDescriptorImpl.cs b/sources/ClangSharp.Interop/CXModuleMapDescriptorImpl.cs index 1286f831..5a40b21a 100644 --- a/sources/ClangSharp.Interop/CXModuleMapDescriptorImpl.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXNameRefFlags.cs b/sources/ClangSharp.Interop/CXNameRefFlags.cs index 21dba522..f8ce9d3c 100644 --- a/sources/ClangSharp.Interop/CXNameRefFlags.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXObjCDeclQualifierKind.cs b/sources/ClangSharp.Interop/CXObjCDeclQualifierKind.cs index c401edf9..54961133 100644 --- a/sources/ClangSharp.Interop/CXObjCDeclQualifierKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXObjCPropertyAttrKind.cs b/sources/ClangSharp.Interop/CXObjCPropertyAttrKind.cs index 3692c0c5..36341ca0 100644 --- a/sources/ClangSharp.Interop/CXObjCPropertyAttrKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXPlatformAvailability.cs b/sources/ClangSharp.Interop/CXPlatformAvailability.cs index a2b9e9ac..c23d8a43 100644 --- a/sources/ClangSharp.Interop/CXPlatformAvailability.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXPrintingPolicyProperty.cs b/sources/ClangSharp.Interop/CXPrintingPolicyProperty.cs index e20c3404..ef33f128 100644 --- a/sources/ClangSharp.Interop/CXPrintingPolicyProperty.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXRefQualifierKind.cs b/sources/ClangSharp.Interop/CXRefQualifierKind.cs index 5cd2124d..265ecbe0 100644 --- a/sources/ClangSharp.Interop/CXRefQualifierKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXReparse_Flags.cs b/sources/ClangSharp.Interop/CXReparse_Flags.cs index 65f52f4b..146df608 100644 --- a/sources/ClangSharp.Interop/CXReparse_Flags.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXResult.cs b/sources/ClangSharp.Interop/CXResult.cs index f9441197..7eca03c7 100644 --- a/sources/ClangSharp.Interop/CXResult.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXSaveError.cs b/sources/ClangSharp.Interop/CXSaveError.cs index 28d87215..12576a60 100644 --- a/sources/ClangSharp.Interop/CXSaveError.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXSaveTranslationUnit_Flags.cs b/sources/ClangSharp.Interop/CXSaveTranslationUnit_Flags.cs index e8fccce5..6c8e24cb 100644 --- a/sources/ClangSharp.Interop/CXSaveTranslationUnit_Flags.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXSourceLocation.cs b/sources/ClangSharp.Interop/CXSourceLocation.cs index 0f76d348..1b753711 100644 --- a/sources/ClangSharp.Interop/CXSourceLocation.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXSourceRange.cs b/sources/ClangSharp.Interop/CXSourceRange.cs index 13e06960..eb91824e 100644 --- a/sources/ClangSharp.Interop/CXSourceRange.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXSourceRangeList.cs b/sources/ClangSharp.Interop/CXSourceRangeList.cs index a29bbea9..cfc62dc7 100644 --- a/sources/ClangSharp.Interop/CXSourceRangeList.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXString.cs b/sources/ClangSharp.Interop/CXString.cs index 29f1e4f5..0bc028b3 100644 --- a/sources/ClangSharp.Interop/CXString.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXStringSet.cs b/sources/ClangSharp.Interop/CXStringSet.cs index 190f5e15..30c88dd2 100644 --- a/sources/ClangSharp.Interop/CXStringSet.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXSymbolRole.cs b/sources/ClangSharp.Interop/CXSymbolRole.cs index 9377c7e2..5c6d63c7 100644 --- a/sources/ClangSharp.Interop/CXSymbolRole.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTLSKind.cs b/sources/ClangSharp.Interop/CXTLSKind.cs index f1c7b619..da45a1c9 100644 --- a/sources/ClangSharp.Interop/CXTLSKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTUResourceUsage.cs b/sources/ClangSharp.Interop/CXTUResourceUsage.cs index 611416dc..04894c94 100644 --- a/sources/ClangSharp.Interop/CXTUResourceUsage.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTUResourceUsageEntry.cs b/sources/ClangSharp.Interop/CXTUResourceUsageEntry.cs index b5b56f6d..41e5ac3d 100644 --- a/sources/ClangSharp.Interop/CXTUResourceUsageEntry.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/ClangSharp.Interop/CXTUResourceUsageKind.cs b/sources/ClangSharp.Interop/CXTUResourceUsageKind.cs index dea82acb..faae467e 100644 --- a/sources/ClangSharp.Interop/CXTUResourceUsageKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTargetInfoImpl.cs b/sources/ClangSharp.Interop/CXTargetInfoImpl.cs index 8a43bc00..b2a04aff 100644 --- a/sources/ClangSharp.Interop/CXTargetInfoImpl.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTemplateArgumentKind.cs b/sources/ClangSharp.Interop/CXTemplateArgumentKind.cs index 009f3193..f8c32647 100644 --- a/sources/ClangSharp.Interop/CXTemplateArgumentKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXToken.cs b/sources/ClangSharp.Interop/CXToken.cs index 57f71398..32b6af4d 100644 --- a/sources/ClangSharp.Interop/CXToken.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTokenKind.cs b/sources/ClangSharp.Interop/CXTokenKind.cs index 342456e3..96db2609 100644 --- a/sources/ClangSharp.Interop/CXTokenKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTranslationUnitImpl.cs b/sources/ClangSharp.Interop/CXTranslationUnitImpl.cs index 6e51013d..bd5c8b0b 100644 --- a/sources/ClangSharp.Interop/CXTranslationUnitImpl.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTranslationUnit_Flags.cs b/sources/ClangSharp.Interop/CXTranslationUnit_Flags.cs index d47a7c53..c108f856 100644 --- a/sources/ClangSharp.Interop/CXTranslationUnit_Flags.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXType.cs b/sources/ClangSharp.Interop/CXType.cs index 819a922a..7d3edb25 100644 --- a/sources/ClangSharp.Interop/CXType.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTypeKind.cs b/sources/ClangSharp.Interop/CXTypeKind.cs index 88f39278..0e843c84 100644 --- a/sources/ClangSharp.Interop/CXTypeKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop @@ -47,8 +47,9 @@ public enum CXTypeKind CXType_UAccum = 37, CXType_ULongAccum = 38, CXType_BFloat16 = 39, + CXType_Ibm128 = 40, CXType_FirstBuiltin = CXType_Void, - CXType_LastBuiltin = CXType_BFloat16, + CXType_LastBuiltin = CXType_Ibm128, CXType_Complex = 100, CXType_Pointer = 101, CXType_BlockPointer = 102, diff --git a/sources/ClangSharp.Interop/CXTypeLayoutError.cs b/sources/ClangSharp.Interop/CXTypeLayoutError.cs index 61da5468..3f497f14 100644 --- a/sources/ClangSharp.Interop/CXTypeLayoutError.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXTypeNullabilityKind.cs b/sources/ClangSharp.Interop/CXTypeNullabilityKind.cs index fceeca2c..3291df34 100644 --- a/sources/ClangSharp.Interop/CXTypeNullabilityKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXUnsavedFile.cs b/sources/ClangSharp.Interop/CXUnsavedFile.cs index c6263ffa..be17a965 100644 --- a/sources/ClangSharp.Interop/CXUnsavedFile.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/ClangSharp.Interop/CXVersion.cs b/sources/ClangSharp.Interop/CXVersion.cs index 98773b29..7134d2b2 100644 --- a/sources/ClangSharp.Interop/CXVersion.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXVirtualFileOverlayImpl.cs b/sources/ClangSharp.Interop/CXVirtualFileOverlayImpl.cs index 23bf5c1e..08c6d42c 100644 --- a/sources/ClangSharp.Interop/CXVirtualFileOverlayImpl.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXVisibilityKind.cs b/sources/ClangSharp.Interop/CXVisibilityKind.cs index cf40b886..72fa216e 100644 --- a/sources/ClangSharp.Interop/CXVisibilityKind.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CXVisitorResult.cs b/sources/ClangSharp.Interop/CXVisitorResult.cs index cbe934bc..925f7262 100644 --- a/sources/ClangSharp.Interop/CXVisitorResult.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CX_AtomicOperatorKind.cs b/sources/ClangSharp.Interop/CX_AtomicOperatorKind.cs index 49ffa709..2c9b73e0 100644 --- a/sources/ClangSharp.Interop/CX_AtomicOperatorKind.cs +++ b/sources/ClangSharp.Interop/CX_AtomicOperatorKind.cs @@ -17,6 +17,7 @@ public enum CX_AtomicOperatorKind 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, @@ -56,5 +57,16 @@ public enum CX_AtomicOperatorKind 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_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, } } diff --git a/sources/ClangSharp.Interop/CX_AttrKind.cs b/sources/ClangSharp.Interop/CX_AttrKind.cs index 5839344a..d8b235b6 100644 --- a/sources/ClangSharp.Interop/CX_AttrKind.cs +++ b/sources/ClangSharp.Interop/CX_AttrKind.cs @@ -8,6 +8,7 @@ public enum CX_AttrKind CX_AttrKind_Invalid, CX_AttrKind_AddressSpace, CX_AttrKind_ArmMveStrictPolymorphism, + CX_AttrKind_BTFTypeTag, CX_AttrKind_CmseNSCall, CX_AttrKind_NoDeref, CX_AttrKind_ObjCGC, @@ -101,6 +102,7 @@ public enum CX_AttrKind CX_AttrKind_Assumption, CX_AttrKind_Availability, CX_AttrKind_BPFPreserveAccessIndex, + CX_AttrKind_BTFDeclTag, CX_AttrKind_Blocks, CX_AttrKind_Builtin, CX_AttrKind_C11NoReturn, @@ -144,13 +146,16 @@ public enum CX_AttrKind CX_AttrKind_DLLImportStaticLocal, CX_AttrKind_Deprecated, CX_AttrKind_Destructor, + CX_AttrKind_DiagnoseAsBuiltin, CX_AttrKind_DiagnoseIf, + CX_AttrKind_DisableSanitizerInstrumentation, CX_AttrKind_DisableTailCalls, CX_AttrKind_EmptyBases, CX_AttrKind_EnableIf, CX_AttrKind_EnforceTCB, CX_AttrKind_EnforceTCBLeaf, CX_AttrKind_EnumExtensibility, + CX_AttrKind_Error, CX_AttrKind_ExcludeFromExplicitInstantiation, CX_AttrKind_ExclusiveTrylockFunction, CX_AttrKind_ExternalSourceSymbol, @@ -270,6 +275,7 @@ public enum CX_AttrKind CX_AttrKind_ReturnsNonNull, CX_AttrKind_ReturnsTwice, CX_AttrKind_SYCLKernel, + CX_AttrKind_SYCLSpecialClass, CX_AttrKind_ScopedLockable, CX_AttrKind_Section, CX_AttrKind_SelectAny, @@ -291,6 +297,7 @@ public enum CX_AttrKind CX_AttrKind_SwiftPrivate, CX_AttrKind_TLSModel, CX_AttrKind_Target, + CX_AttrKind_TargetClones, CX_AttrKind_TestTypestate, CX_AttrKind_TransparentUnion, CX_AttrKind_TrivialABI, diff --git a/sources/ClangSharp.Interop/CX_CXXAccessSpecifier.cs b/sources/ClangSharp.Interop/CX_CXXAccessSpecifier.cs index fa38ab65..8e3f8667 100644 --- a/sources/ClangSharp.Interop/CX_CXXAccessSpecifier.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CX_StmtClass.cs b/sources/ClangSharp.Interop/CX_StmtClass.cs index 6e0c8488..5b4045ea 100644 --- a/sources/ClangSharp.Interop/CX_StmtClass.cs +++ b/sources/ClangSharp.Interop/CX_StmtClass.cs @@ -43,6 +43,7 @@ public enum CX_StmtClass CX_StmtClass_OMPDistributeSimdDirective, CX_StmtClass_OMPForDirective, CX_StmtClass_OMPForSimdDirective, + CX_StmtClass_OMPGenericLoopDirective, CX_StmtClass_OMPMasterTaskLoopDirective, CX_StmtClass_OMPMasterTaskLoopSimdDirective, CX_StmtClass_OMPParallelForDirective, @@ -66,10 +67,13 @@ public enum CX_StmtClass CX_StmtClass_LastOMPLoopDirective = CX_StmtClass_OMPTeamsDistributeSimdDirective, CX_StmtClass_OMPTileDirective, CX_StmtClass_OMPUnrollDirective, + CX_StmtClass_FirstOMPLoopTransformationDirective = CX_StmtClass_OMPTileDirective, + CX_StmtClass_LastOMPLoopTransformationDirective = CX_StmtClass_OMPUnrollDirective, CX_StmtClass_FirstOMPLoopBasedDirective = CX_StmtClass_OMPDistributeDirective, CX_StmtClass_LastOMPLoopBasedDirective = CX_StmtClass_OMPUnrollDirective, CX_StmtClass_OMPMaskedDirective, CX_StmtClass_OMPMasterDirective, + CX_StmtClass_OMPMetaDirective, CX_StmtClass_OMPOrderedDirective, CX_StmtClass_OMPParallelDirective, CX_StmtClass_OMPParallelMasterDirective, diff --git a/sources/ClangSharp.Interop/CX_StorageClass.cs b/sources/ClangSharp.Interop/CX_StorageClass.cs index d8073374..a7bb5de7 100644 --- a/sources/ClangSharp.Interop/CX_StorageClass.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace ClangSharp.Interop diff --git a/sources/ClangSharp.Interop/CX_TypeClass.cs b/sources/ClangSharp.Interop/CX_TypeClass.cs index 818b18e8..fbdc7599 100644 --- a/sources/ClangSharp.Interop/CX_TypeClass.cs +++ b/sources/ClangSharp.Interop/CX_TypeClass.cs @@ -14,6 +14,7 @@ public enum CX_TypeClass CX_TypeClass_VariableArray, CX_TypeClass_Atomic, CX_TypeClass_Attributed, + CX_TypeClass_BitInt, CX_TypeClass_BlockPointer, CX_TypeClass_Builtin, CX_TypeClass_Complex, @@ -21,13 +22,12 @@ public enum CX_TypeClass CX_TypeClass_Auto, CX_TypeClass_DeducedTemplateSpecialization, CX_TypeClass_DependentAddressSpace, - CX_TypeClass_DependentExtInt, + CX_TypeClass_DependentBitInt, CX_TypeClass_DependentName, CX_TypeClass_DependentSizedExtVector, CX_TypeClass_DependentTemplateSpecialization, CX_TypeClass_DependentVector, CX_TypeClass_Elaborated, - CX_TypeClass_ExtInt, CX_TypeClass_FunctionNoProto, CX_TypeClass_FunctionProto, CX_TypeClass_InjectedClassName, @@ -56,6 +56,7 @@ public enum CX_TypeClass CX_TypeClass_Typedef, CX_TypeClass_UnaryTransform, CX_TypeClass_UnresolvedUsing, + CX_TypeClass_Using, CX_TypeClass_Vector, CX_TypeClass_ExtVector, CX_TypeClass_TypeLast = CX_TypeClass_ExtVector, diff --git a/sources/ClangSharp.Interop/Extensions/CXType.cs b/sources/ClangSharp.Interop/Extensions/CXType.cs index a243b71a..cb864a69 100644 --- a/sources/ClangSharp.Interop/Extensions/CXType.cs +++ b/sources/ClangSharp.Interop/Extensions/CXType.cs @@ -163,13 +163,13 @@ public string TypeClassSpelling CX_TypeClass.CX_TypeClass_Auto => "Auto", CX_TypeClass.CX_TypeClass_DeducedTemplateSpecialization => "DeducedTemplateSpecialization", CX_TypeClass.CX_TypeClass_DependentAddressSpace => "DependentAddressSpace", - CX_TypeClass.CX_TypeClass_DependentExtInt => "DependentExtInt", + CX_TypeClass.CX_TypeClass_DependentBitInt => "DependentBitInt", CX_TypeClass.CX_TypeClass_DependentName => "DependentName", CX_TypeClass.CX_TypeClass_DependentSizedExtVector => "DependentSizedExtVector", CX_TypeClass.CX_TypeClass_DependentTemplateSpecialization => "DependentTemplateSpecialization", CX_TypeClass.CX_TypeClass_DependentVector => "DependentVector", CX_TypeClass.CX_TypeClass_Elaborated => "Elaborated", - CX_TypeClass.CX_TypeClass_ExtInt => "ExtInt", + CX_TypeClass.CX_TypeClass_BitInt => "BitInt", CX_TypeClass.CX_TypeClass_FunctionNoProto => "FunctionNoProto", CX_TypeClass.CX_TypeClass_FunctionProto => "FunctionProto", CX_TypeClass.CX_TypeClass_InjectedClassName => "InjectedClassName", diff --git a/sources/ClangSharp.Interop/IndexerCallbacks.cs b/sources/ClangSharp.Interop/IndexerCallbacks.cs index a59252c4..d6e0bb6d 100644 --- a/sources/ClangSharp.Interop/IndexerCallbacks.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/ClangSharp.Interop/clang.cs b/sources/ClangSharp.Interop/clang.cs index 460607fa..e215e047 100644 --- a/sources/ClangSharp.Interop/clang.cs +++ b/sources/ClangSharp.Interop/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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs index bef3b095..841fb96f 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs @@ -21,8 +21,8 @@ public sealed partial class PInvokeGenerator : IDisposable private static readonly Encoding s_defaultStreamWriterEncoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true); private static readonly Regex s_needsSystemSupportRegex = new Regex(@"\b(?:Guid|IntPtr|UIntPtr)\b", RegexOptions.Compiled); - private const string ExpectedClangVersion = "13.0.0"; - private const string ExpectedClangSharpVersion = "13.0.0"; + private const string ExpectedClangVersion = "14.0.0"; + private const string ExpectedClangSharpVersion = "14.0.0"; private readonly CXIndex _index; private readonly OutputBuilderFactory _outputBuilderFactory; @@ -72,14 +72,14 @@ public PInvokeGenerator(PInvokeGeneratorConfiguration config, Func _numBitsExpr; - internal DependentExtIntType(CXType handle) : base(handle, CXTypeKind.CXType_Unexposed, CX_TypeClass.CX_TypeClass_DependentExtInt) + internal DependentBitIntType(CXType handle) : base(handle, CXTypeKind.CXType_Unexposed, CX_TypeClass.CX_TypeClass_DependentBitInt) { _numBitsExpr = new Lazy(() => TranslationUnit.GetOrCreate(handle.NumBitsExpr)); } diff --git a/sources/ClangSharp/Types/Type.cs b/sources/ClangSharp/Types/Type.cs index 2ea515e5..f4f43647 100644 --- a/sources/ClangSharp/Types/Type.cs +++ b/sources/ClangSharp/Types/Type.cs @@ -59,7 +59,7 @@ public TagDecl AsTagDecl public bool IsAnyPointerType => IsPointerType || IsObjCObjectPointerType; - public bool IsExtIntType => CanonicalType is ExtIntType; + public bool IsBitIntType => CanonicalType is BitIntType; public bool IsIntegerType => (CanonicalType is BuiltinType builtinType) && builtinType.Kind is >= CXTypeKind.CXType_Bool and <= CXTypeKind.CXType_Int128; @@ -69,7 +69,7 @@ public bool IsIntegralOrEnumerationType { return CanonicalType is BuiltinType bt ? bt.Kind is >= CXTypeKind.CXType_Bool and <= CXTypeKind.CXType_Int128 - : CanonicalType is EnumType et ? et.Decl.IsComplete : IsExtIntType; + : CanonicalType is EnumType et ? et.Decl.IsComplete : IsBitIntType; } } @@ -132,13 +132,13 @@ public Type UnqualifiedDesugaredType CX_TypeClass.CX_TypeClass_Auto => new AutoType(handle), CX_TypeClass.CX_TypeClass_DeducedTemplateSpecialization => new DeducedTemplateSpecializationType(handle), CX_TypeClass.CX_TypeClass_DependentAddressSpace => new DependentAddressSpaceType(handle), - CX_TypeClass.CX_TypeClass_DependentExtInt => new DependentExtIntType(handle), + CX_TypeClass.CX_TypeClass_DependentBitInt => new DependentBitIntType(handle), CX_TypeClass.CX_TypeClass_DependentName => new DependentNameType(handle), CX_TypeClass.CX_TypeClass_DependentSizedExtVector => new DependentSizedExtVectorType(handle), CX_TypeClass.CX_TypeClass_DependentTemplateSpecialization => new DependentTemplateSpecializationType(handle), CX_TypeClass.CX_TypeClass_DependentVector => new DependentVectorType(handle), CX_TypeClass.CX_TypeClass_Elaborated => new ElaboratedType(handle), - CX_TypeClass.CX_TypeClass_ExtInt => new ExtIntType(handle), + CX_TypeClass.CX_TypeClass_BitInt => new BitIntType(handle), CX_TypeClass.CX_TypeClass_FunctionNoProto => new FunctionNoProtoType(handle), CX_TypeClass.CX_TypeClass_FunctionProto => new FunctionProtoType(handle), CX_TypeClass.CX_TypeClass_InjectedClassName => new InjectedClassNameType(handle), diff --git a/sources/ClangSharp/Types/UsingType.cs b/sources/ClangSharp/Types/UsingType.cs new file mode 100644 index 00000000..9e222f64 --- /dev/null +++ b/sources/ClangSharp/Types/UsingType.cs @@ -0,0 +1,13 @@ +// 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; + +namespace ClangSharp +{ + public sealed class UsingType : Type + { + internal UsingType(CXType handle) : base(handle, CXTypeKind.CXType_Unexposed, CX_TypeClass.CX_TypeClass_Using) + { + } + } +} diff --git a/sources/ClangSharpPInvokeGenerator/Program.cs b/sources/ClangSharpPInvokeGenerator/Program.cs index 8193accb..5879bc38 100644 --- a/sources/ClangSharpPInvokeGenerator/Program.cs +++ b/sources/ClangSharpPInvokeGenerator/Program.cs @@ -171,7 +171,7 @@ public static int Run(InvocationContext context) { var helpBuilder = new CustomHelpBuilder(context.Console); - helpBuilder.WriteLine($"{s_rootCommand.Description} version 13.0.0"); + helpBuilder.WriteLine($"{s_rootCommand.Description} version 14.0.0"); helpBuilder.WriteLine($" {clang.getClangVersion()}"); helpBuilder.WriteLine($" {clangsharp.getVersion()}"); diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang-LICENSE.txt index 0167aae4..6ccf71a1 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang.rsp b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang.rsp index 76e1e778..40772d87 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang.rsp +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClang.rsp @@ -1,7 +1,7 @@ --config compatible-codegen generate-macro-bindings -generate-tests-xunit +generate-tests-nunit multi-file unix-types --exclude diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClangSharp.rsp b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClangSharp.rsp index c4915301..d0910da3 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateClangSharp.rsp +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateClangSharp.rsp @@ -1,7 +1,7 @@ --config compatible-codegen generate-macro-bindings -generate-tests-xunit +generate-tests-nunit multi-file --define-macro _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM-LICENSE.txt index a4d05960..3692a69c 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-13.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. diff --git a/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM.rsp b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM.rsp index 73241edd..d8bd943d 100644 --- a/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM.rsp +++ b/sources/ClangSharpPInvokeGenerator/Properties/GenerateLLVM.rsp @@ -14,6 +14,7 @@ llvm-c/Comdat.h llvm-c/Core.h llvm-c/DataTypes.h llvm-c/DebugInfo.h +llvm-c/Deprecated.h llvm-c/Disassembler.h llvm-c/DisassemblerTypes.h llvm-c/Error.h diff --git a/sources/libClangSharp/CIndexDiagnostic.cpp b/sources/libClangSharp/CIndexDiagnostic.cpp index b237be90..d734457a 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "CIndexDiagnostic.h" diff --git a/sources/libClangSharp/CIndexDiagnostic.h b/sources/libClangSharp/CIndexDiagnostic.h index c1fbcdc3..e30f55ce 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CINDEXDIAGNOSTIC_H diff --git a/sources/libClangSharp/CMakeLists.txt b/sources/libClangSharp/CMakeLists.txt index f0dbc59d..2c64cc1f 100644 --- a/sources/libClangSharp/CMakeLists.txt +++ b/sources/libClangSharp/CMakeLists.txt @@ -39,11 +39,7 @@ find_package(Clang REQUIRED CONFIG add_library(ClangSharp SHARED ${SOURCES}) -if (TARGET clang-cpp) # Linux packages install libclang and clang-cpp - target_link_libraries(ClangSharp PRIVATE clang-cpp libclang) -else() - target_link_libraries(ClangSharp PRIVATE clangAST clangFrontend libclang) -endif() +target_link_libraries(ClangSharp PRIVATE clangAST clangFrontend libclang) target_include_directories(ClangSharp PRIVATE ${CLANG_INCLUDE_DIRS}) diff --git a/sources/libClangSharp/CXCursor.cpp b/sources/libClangSharp/CXCursor.cpp index 50d8ff86..db404d57 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "ClangSharp.h" diff --git a/sources/libClangSharp/CXCursor.h b/sources/libClangSharp/CXCursor.h index 14353133..4125ecfa 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXCURSOR_H diff --git a/sources/libClangSharp/CXLoadedDiagnostic.cpp b/sources/libClangSharp/CXLoadedDiagnostic.cpp index bba0c7a9..15ef25d5 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "CXLoadedDiagnostic.h" diff --git a/sources/libClangSharp/CXLoadedDiagnostic.h b/sources/libClangSharp/CXLoadedDiagnostic.h index 712e5dd7..8ae6bc80 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXLOADEDDIAGNOSTIC_H diff --git a/sources/libClangSharp/CXSourceLocation.cpp b/sources/libClangSharp/CXSourceLocation.cpp index 1bf71575..50f12bbb 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "ClangSharp.h" diff --git a/sources/libClangSharp/CXSourceLocation.h b/sources/libClangSharp/CXSourceLocation.h index d0f37691..afc4af9b 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXSOURCELOCATION_H diff --git a/sources/libClangSharp/CXString.cpp b/sources/libClangSharp/CXString.cpp index d2172648..5ff3b728 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "CXString.h" diff --git a/sources/libClangSharp/CXString.h b/sources/libClangSharp/CXString.h index 4fd76882..e43b552f 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXSTRING_H diff --git a/sources/libClangSharp/CXTranslationUnit.cpp b/sources/libClangSharp/CXTranslationUnit.cpp index 3459e9c6..bb680a87 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "CXTranslationUnit.h" diff --git a/sources/libClangSharp/CXTranslationUnit.h b/sources/libClangSharp/CXTranslationUnit.h index a87cc503..03f171cd 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXTRANSLATIONUNIT_H diff --git a/sources/libClangSharp/CXType.cpp b/sources/libClangSharp/CXType.cpp index 6e06d70c..47acf2dc 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #include "ClangSharp.h" diff --git a/sources/libClangSharp/CXType.h b/sources/libClangSharp/CXType.h index b5b6e4b4..4b70d39d 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-13.0.0/clang/tools/libclang +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/tools/libclang // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. #ifndef LIBCLANGSHARP_CXTYPE_H diff --git a/sources/libClangSharp/ClangSharp.cpp b/sources/libClangSharp/ClangSharp.cpp index f871238a..a1ae1be9 100644 --- a/sources/libClangSharp/ClangSharp.cpp +++ b/sources/libClangSharp/ClangSharp.cpp @@ -4744,7 +4744,7 @@ int64_t clangsharp_Cursor_getVtblIdx(CXCursor C) { } CXString clangsharp_getVersion() { - return cxstring::createDup("clangsharp version 13.0.0"); + return cxstring::createDup("clangsharp version 14.0.0"); } void clangsharp_TemplateArgument_dispose(CX_TemplateArgument T) { @@ -5160,11 +5160,11 @@ unsigned clangsharp_Type_getIsSigned(CXType CT) { QualType T = GetQualType(CT); const Type* TP = T.getTypePtrOrNull(); - if (const DependentExtIntType* DEIT = dyn_cast(TP)) { + if (const DependentBitIntType* DEIT = dyn_cast(TP)) { return DEIT->isSigned(); } - if (const ExtIntType* EIT = dyn_cast(TP)) { + if (const BitIntType* EIT = dyn_cast(TP)) { return EIT->isSigned(); } @@ -5200,11 +5200,11 @@ unsigned clangsharp_Type_getIsUnsigned(CXType CT) { QualType T = GetQualType(CT); const Type* TP = T.getTypePtrOrNull(); - if (const DependentExtIntType* DEIT = dyn_cast(TP)) { + if (const DependentBitIntType* DEIT = dyn_cast(TP)) { return DEIT->isUnsigned(); } - if (const ExtIntType* EIT = dyn_cast(TP)) { + if (const BitIntType* EIT = dyn_cast(TP)) { return EIT->isUnsigned(); } @@ -5226,7 +5226,7 @@ int clangsharp_Type_getNumBits(CXType CT) { QualType T = GetQualType(CT); const Type* TP = T.getTypePtrOrNull(); - if (const ExtIntType* EIT = dyn_cast(TP)) { + if (const BitIntType* EIT = dyn_cast(TP)) { return EIT->getNumBits(); } @@ -5237,7 +5237,7 @@ CXCursor clangsharp_Type_getNumBitsExpr(CXType CT) { QualType T = GetQualType(CT); const Type* TP = T.getTypePtrOrNull(); - if (const DependentExtIntType* DEIT = dyn_cast(TP)) { + if (const DependentBitIntType* DEIT = dyn_cast(TP)) { CXCursor C = clang_getTypeDeclaration(CT); return MakeCXCursor(DEIT->getNumBitsExpr(), getCursorDecl(C), GetTypeTU(CT)); } diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/FunctionDeclarationDllImportTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/FunctionDeclarationDllImportTest.cs index 6d98bcc9..c2e111f6 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/FunctionDeclarationDllImportTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/FunctionDeclarationDllImportTest.cs @@ -39,7 +39,7 @@ namespace ClangSharp.Test public static unsafe partial class Methods { [DllImport(""ClangSharpPInvokeGenerator"", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void MyFunction([NativeTypeName(""const float [4]"")] float* color); + public static extern void MyFunction([NativeTypeName(""const float[4]"")] float* color); } } "; diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/StructDeclarationTest.cs index ed9c82c3..4854b6df 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/StructDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/StructDeclarationTest.cs @@ -330,7 +330,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [3]"")] + [NativeTypeName(""MyStruct[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -379,7 +379,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [2][1][3][4]"")] + [NativeTypeName(""MyStruct[2][1][3][4]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -512,7 +512,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [3]"")] + [NativeTypeName(""MyStruct[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -590,7 +590,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str {{ public unsafe partial struct MyStruct {{ - [NativeTypeName(""{nativeType} [3]"")] + [NativeTypeName(""{nativeType}[3]"")] public fixed {expectedManagedType} c[3]; }} }} @@ -611,7 +611,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string {{ public unsafe partial struct MyStruct {{ - [NativeTypeName(""{nativeType} [2][1][3][4]"")] + [NativeTypeName(""{nativeType}[2][1][3][4]"")] public fixed {expectedManagedType} c[2 * 1 * 3 * 4]; }} }} @@ -968,10 +968,10 @@ public unsafe partial struct _Anonymous_e__Struct public MyUnion u; - [NativeTypeName(""{nativeType} [4]"")] + [NativeTypeName(""{nativeType}[4]"")] public fixed {expectedManagedType} buffer1[4]; - [NativeTypeName(""MyUnion [4]"")] + [NativeTypeName(""MyUnion[4]"")] public _buffer2_e__FixedBuffer buffer2; public partial struct _w_e__Struct diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/UnionDeclarationTest.cs index a2582663..9ac32faa 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/UnionDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/UnionDeclarationTest.cs @@ -365,7 +365,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [3]"")] + [NativeTypeName(""MyUnion[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -420,7 +420,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [2][1][3][4]"")] + [NativeTypeName(""MyUnion[2][1][3][4]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -565,7 +565,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [3]"")] + [NativeTypeName(""MyUnion[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -651,7 +651,7 @@ namespace ClangSharp.Test public unsafe partial struct MyUnion {{ [FieldOffset(0)] - [NativeTypeName(""{nativeType} [3]"")] + [NativeTypeName(""{nativeType}[3]"")] public fixed {expectedManagedType} c[3]; }} }} @@ -676,7 +676,7 @@ namespace ClangSharp.Test public unsafe partial struct MyUnion {{ [FieldOffset(0)] - [NativeTypeName(""{nativeType} [2][1][3][4]"")] + [NativeTypeName(""{nativeType}[2][1][3][4]"")] public fixed {expectedManagedType} c[2 * 1 * 3 * 4]; }} }} @@ -857,7 +857,7 @@ public unsafe partial struct _Anonymous_e__Union public MyStruct s; [FieldOffset(0)] - [NativeTypeName(""{nativeType} [4]"")] + [NativeTypeName(""{nativeType}[4]"")] public fixed {expectedManagedType} buffer[4]; }} }} diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/VarDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/VarDeclarationTest.cs index 86c073c9..bf63b29d 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/VarDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/VarDeclarationTest.cs @@ -165,7 +165,7 @@ namespace ClangSharp.Test {{ public static partial class Methods {{ - [NativeTypeName(""const char [5]"")] + [NativeTypeName(""const char[5]"")] public static ReadOnlySpan MyConst1 => new byte[] {{ 0x54, 0x65, 0x73, 0x74, 0x00 }}; }} }} @@ -278,7 +278,7 @@ protected override Task MultidimensionlArrayTestImpl() {{ public static partial class Methods {{ - [NativeTypeName(""const int [2][2]"")] + [NativeTypeName(""const int[2][2]"")] public static readonly int[][] MyArray = new int[2][] {{ new int[2] diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/FunctionDeclarationDllImportTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/FunctionDeclarationDllImportTest.cs index 0a813ade..5c20714a 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/FunctionDeclarationDllImportTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/FunctionDeclarationDllImportTest.cs @@ -38,7 +38,7 @@ namespace ClangSharp.Test public static unsafe partial class Methods { [DllImport(""ClangSharpPInvokeGenerator"", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void MyFunction([NativeTypeName(""const float [4]"")] float* color); + public static extern void MyFunction([NativeTypeName(""const float[4]"")] float* color); } } "; diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/StructDeclarationTest.cs index 4e3135a8..a4b7a4ae 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/StructDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/StructDeclarationTest.cs @@ -334,7 +334,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [3]"")] + [NativeTypeName(""MyStruct[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -383,7 +383,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [2][1][3][4]"")] + [NativeTypeName(""MyStruct[2][1][3][4]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -516,7 +516,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [3]"")] + [NativeTypeName(""MyStruct[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -594,7 +594,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str {{ public unsafe partial struct MyStruct {{ - [NativeTypeName(""{nativeType} [3]"")] + [NativeTypeName(""{nativeType}[3]"")] public fixed {expectedManagedType} c[3]; }} }} @@ -615,7 +615,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string {{ public unsafe partial struct MyStruct {{ - [NativeTypeName(""{nativeType} [2][1][3][4]"")] + [NativeTypeName(""{nativeType}[2][1][3][4]"")] public fixed {expectedManagedType} c[2 * 1 * 3 * 4]; }} }} @@ -972,10 +972,10 @@ public unsafe partial struct _Anonymous_e__Struct public MyUnion u; - [NativeTypeName(""{nativeType} [4]"")] + [NativeTypeName(""{nativeType}[4]"")] public fixed {expectedManagedType} buffer1[4]; - [NativeTypeName(""MyUnion [4]"")] + [NativeTypeName(""MyUnion[4]"")] public _buffer2_e__FixedBuffer buffer2; public partial struct _w_e__Struct diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/UnionDeclarationTest.cs index e89af6de..6fd56189 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/UnionDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/UnionDeclarationTest.cs @@ -372,7 +372,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [3]"")] + [NativeTypeName(""MyUnion[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -427,7 +427,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [2][1][3][4]"")] + [NativeTypeName(""MyUnion[2][1][3][4]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -572,7 +572,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [3]"")] + [NativeTypeName(""MyUnion[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -658,7 +658,7 @@ namespace ClangSharp.Test public unsafe partial struct MyUnion {{ [FieldOffset(0)] - [NativeTypeName(""{nativeType} [3]"")] + [NativeTypeName(""{nativeType}[3]"")] public fixed {expectedManagedType} c[3]; }} }} @@ -683,7 +683,7 @@ namespace ClangSharp.Test public unsafe partial struct MyUnion {{ [FieldOffset(0)] - [NativeTypeName(""{nativeType} [2][1][3][4]"")] + [NativeTypeName(""{nativeType}[2][1][3][4]"")] public fixed {expectedManagedType} c[2 * 1 * 3 * 4]; }} }} @@ -864,7 +864,7 @@ public unsafe partial struct _Anonymous_e__Union public MyStruct s; [FieldOffset(0)] - [NativeTypeName(""{nativeType} [4]"")] + [NativeTypeName(""{nativeType}[4]"")] public fixed {expectedManagedType} buffer[4]; }} }} diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/VarDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/VarDeclarationTest.cs index 3a796ebb..2e711cb9 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/VarDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/VarDeclarationTest.cs @@ -159,7 +159,7 @@ protected override Task WideStringLiteralConstTestImpl() {{ public static partial class Methods {{ - [NativeTypeName(""const wchar_t [5]"")] + [NativeTypeName(""const wchar_t[5]"")] public const string MyConst1 = ""Test""; }} }} @@ -178,7 +178,7 @@ namespace ClangSharp.Test {{ public static partial class Methods {{ - [NativeTypeName(""const char [5]"")] + [NativeTypeName(""const char[5]"")] public static ReadOnlySpan MyConst1 => new byte[] {{ 0x54, 0x65, 0x73, 0x74, 0x00 }}; }} }} @@ -287,7 +287,7 @@ protected override Task MultidimensionlArrayTestImpl() {{ public static partial class Methods {{ - [NativeTypeName(""const int [2][2]"")] + [NativeTypeName(""const int[2][2]"")] public static readonly int[][] MyArray = new int[2][] {{ new int[2] diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/FunctionDeclarationDllImportTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/FunctionDeclarationDllImportTest.cs index 4309f2ab..a239d6f4 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/FunctionDeclarationDllImportTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/FunctionDeclarationDllImportTest.cs @@ -38,7 +38,7 @@ namespace ClangSharp.Test public static unsafe partial class Methods { [DllImport(""ClangSharpPInvokeGenerator"", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void MyFunction([NativeTypeName(""const float [4]"")] float* color); + public static extern void MyFunction([NativeTypeName(""const float[4]"")] float* color); } } "; diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/StructDeclarationTest.cs index 6b2285bd..c2188ff5 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/StructDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/StructDeclarationTest.cs @@ -333,7 +333,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [3]"")] + [NativeTypeName(""MyStruct[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -384,7 +384,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [2][1][3][4]"")] + [NativeTypeName(""MyStruct[2][1][3][4]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -521,7 +521,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [3]"")] + [NativeTypeName(""MyStruct[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -598,7 +598,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str {{ public unsafe partial struct MyStruct {{ - [NativeTypeName(""{nativeType} [3]"")] + [NativeTypeName(""{nativeType}[3]"")] public fixed {expectedManagedType} c[3]; }} }} @@ -619,7 +619,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string {{ public unsafe partial struct MyStruct {{ - [NativeTypeName(""{nativeType} [2][1][3][4]"")] + [NativeTypeName(""{nativeType}[2][1][3][4]"")] public fixed {expectedManagedType} c[2 * 1 * 3 * 4]; }} }} @@ -953,10 +953,10 @@ public unsafe partial struct _Anonymous_e__Struct public MyUnion u; - [NativeTypeName(""{nativeType} [4]"")] + [NativeTypeName(""{nativeType}[4]"")] public fixed {expectedManagedType} buffer1[4]; - [NativeTypeName(""MyUnion [4]"")] + [NativeTypeName(""MyUnion[4]"")] public _buffer2_e__FixedBuffer buffer2; public partial struct _w_e__Struct diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/UnionDeclarationTest.cs index 0b74d096..3265521f 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/UnionDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/UnionDeclarationTest.cs @@ -367,7 +367,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [3]"")] + [NativeTypeName(""MyUnion[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -422,7 +422,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [2][1][3][4]"")] + [NativeTypeName(""MyUnion[2][1][3][4]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -567,7 +567,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [3]"")] + [NativeTypeName(""MyUnion[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -652,7 +652,7 @@ namespace ClangSharp.Test public unsafe partial struct MyUnion {{ [FieldOffset(0)] - [NativeTypeName(""{nativeType} [3]"")] + [NativeTypeName(""{nativeType}[3]"")] public fixed {expectedManagedType} c[3]; }} }} @@ -677,7 +677,7 @@ namespace ClangSharp.Test public unsafe partial struct MyUnion {{ [FieldOffset(0)] - [NativeTypeName(""{nativeType} [2][1][3][4]"")] + [NativeTypeName(""{nativeType}[2][1][3][4]"")] public fixed {expectedManagedType} c[2 * 1 * 3 * 4]; }} }} @@ -850,7 +850,7 @@ public unsafe partial struct _Anonymous_e__Union public MyStruct s; [FieldOffset(0)] - [NativeTypeName(""{nativeType} [4]"")] + [NativeTypeName(""{nativeType}[4]"")] public fixed {expectedManagedType} buffer[4]; }} }} diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/VarDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/VarDeclarationTest.cs index 8b274010..d2bff0d1 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/VarDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/VarDeclarationTest.cs @@ -165,7 +165,7 @@ namespace ClangSharp.Test {{ public static partial class Methods {{ - [NativeTypeName(""const char [5]"")] + [NativeTypeName(""const char[5]"")] public static ReadOnlySpan MyConst1 => new byte[] {{ 0x54, 0x65, 0x73, 0x74, 0x00 }}; }} }} @@ -274,7 +274,7 @@ protected override Task MultidimensionlArrayTestImpl() {{ public static partial class Methods {{ - [NativeTypeName(""const int [2][2]"")] + [NativeTypeName(""const int[2][2]"")] public static readonly int[][] MyArray = new int[2][] {{ new int[2] diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/FunctionDeclarationDllImportTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/FunctionDeclarationDllImportTest.cs index 8193be76..ed593417 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/FunctionDeclarationDllImportTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/FunctionDeclarationDllImportTest.cs @@ -38,7 +38,7 @@ namespace ClangSharp.Test public static unsafe partial class Methods { [DllImport(""ClangSharpPInvokeGenerator"", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void MyFunction([NativeTypeName(""const float [4]"")] float* color); + public static extern void MyFunction([NativeTypeName(""const float[4]"")] float* color); } } "; diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/StructDeclarationTest.cs index 65810378..f73c7106 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/StructDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/StructDeclarationTest.cs @@ -337,7 +337,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [3]"")] + [NativeTypeName(""MyStruct[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -388,7 +388,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [2][1][3][4]"")] + [NativeTypeName(""MyStruct[2][1][3][4]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -525,7 +525,7 @@ public partial struct MyStruct public partial struct MyOtherStruct {{ - [NativeTypeName(""MyStruct [3]"")] + [NativeTypeName(""MyStruct[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -602,7 +602,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str {{ public unsafe partial struct MyStruct {{ - [NativeTypeName(""{nativeType} [3]"")] + [NativeTypeName(""{nativeType}[3]"")] public fixed {expectedManagedType} c[3]; }} }} @@ -623,7 +623,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string {{ public unsafe partial struct MyStruct {{ - [NativeTypeName(""{nativeType} [2][1][3][4]"")] + [NativeTypeName(""{nativeType}[2][1][3][4]"")] public fixed {expectedManagedType} c[2 * 1 * 3 * 4]; }} }} @@ -957,10 +957,10 @@ public unsafe partial struct _Anonymous_e__Struct public MyUnion u; - [NativeTypeName(""{nativeType} [4]"")] + [NativeTypeName(""{nativeType}[4]"")] public fixed {expectedManagedType} buffer1[4]; - [NativeTypeName(""MyUnion [4]"")] + [NativeTypeName(""MyUnion[4]"")] public _buffer2_e__FixedBuffer buffer2; public partial struct _w_e__Struct diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/UnionDeclarationTest.cs index 09e2f84c..7a59f5f0 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/UnionDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/UnionDeclarationTest.cs @@ -373,7 +373,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [3]"")] + [NativeTypeName(""MyUnion[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -428,7 +428,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [2][1][3][4]"")] + [NativeTypeName(""MyUnion[2][1][3][4]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -573,7 +573,7 @@ public partial struct MyUnion public partial struct MyOtherUnion {{ [FieldOffset(0)] - [NativeTypeName(""MyUnion [3]"")] + [NativeTypeName(""MyUnion[3]"")] public _c_e__FixedBuffer c; public partial struct _c_e__FixedBuffer @@ -658,7 +658,7 @@ namespace ClangSharp.Test public unsafe partial struct MyUnion {{ [FieldOffset(0)] - [NativeTypeName(""{nativeType} [3]"")] + [NativeTypeName(""{nativeType}[3]"")] public fixed {expectedManagedType} c[3]; }} }} @@ -683,7 +683,7 @@ namespace ClangSharp.Test public unsafe partial struct MyUnion {{ [FieldOffset(0)] - [NativeTypeName(""{nativeType} [2][1][3][4]"")] + [NativeTypeName(""{nativeType}[2][1][3][4]"")] public fixed {expectedManagedType} c[2 * 1 * 3 * 4]; }} }} @@ -856,7 +856,7 @@ public unsafe partial struct _Anonymous_e__Union public MyStruct s; [FieldOffset(0)] - [NativeTypeName(""{nativeType} [4]"")] + [NativeTypeName(""{nativeType}[4]"")] public fixed {expectedManagedType} buffer[4]; }} }} diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/VarDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/VarDeclarationTest.cs index a0edbc07..3b682bff 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/VarDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/VarDeclarationTest.cs @@ -159,7 +159,7 @@ protected override Task WideStringLiteralConstTestImpl() {{ public static partial class Methods {{ - [NativeTypeName(""const wchar_t [5]"")] + [NativeTypeName(""const wchar_t[5]"")] public const string MyConst1 = ""Test""; }} }} @@ -178,7 +178,7 @@ namespace ClangSharp.Test {{ public static partial class Methods {{ - [NativeTypeName(""const char [5]"")] + [NativeTypeName(""const char[5]"")] public static ReadOnlySpan MyConst1 => new byte[] {{ 0x54, 0x65, 0x73, 0x74, 0x00 }}; }} }} @@ -287,7 +287,7 @@ protected override Task MultidimensionlArrayTestImpl() {{ public static partial class Methods {{ - [NativeTypeName(""const int [2][2]"")] + [NativeTypeName(""const int[2][2]"")] public static readonly int[][] MyArray = new int[2][] {{ new int[2] diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/StructDeclarationTest.cs index 0543e453..1bb1c075 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/StructDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/StructDeclarationTest.cs @@ -305,7 +305,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -361,7 +361,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -538,7 +538,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -630,7 +630,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str - {expectedManagedType} + {expectedManagedType} @@ -653,7 +653,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string - {expectedManagedType} + {expectedManagedType} @@ -957,10 +957,10 @@ struct MyStruct MyUnion - {expectedManagedType} + {expectedManagedType} - MyUnion + MyUnion diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/UnionDeclarationTest.cs index 69384eed..ac5fd20e 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/UnionDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/UnionDeclarationTest.cs @@ -306,7 +306,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -362,7 +362,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -539,7 +539,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -631,7 +631,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str - {expectedManagedType} + {expectedManagedType} @@ -654,7 +654,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string - {expectedManagedType} + {expectedManagedType} @@ -813,7 +813,7 @@ union MyUnion MyStruct - {expectedManagedType} + {expectedManagedType} diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/StructDeclarationTest.cs index 1efc9e7c..039fb6f6 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/StructDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/StructDeclarationTest.cs @@ -311,7 +311,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -367,7 +367,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -544,7 +544,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -636,7 +636,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str - {expectedManagedType} + {expectedManagedType} @@ -659,7 +659,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string - {expectedManagedType} + {expectedManagedType} @@ -963,10 +963,10 @@ struct MyStruct MyUnion - {expectedManagedType} + {expectedManagedType} - MyUnion + MyUnion diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/UnionDeclarationTest.cs index 4a0429e9..2d820839 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/UnionDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/UnionDeclarationTest.cs @@ -312,7 +312,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -368,7 +368,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -545,7 +545,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -637,7 +637,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str - {expectedManagedType} + {expectedManagedType} @@ -660,7 +660,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string - {expectedManagedType} + {expectedManagedType} @@ -819,7 +819,7 @@ union MyUnion MyStruct - {expectedManagedType} + {expectedManagedType} diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/StructDeclarationTest.cs index 96b7faf7..1eb4a3b4 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/StructDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/StructDeclarationTest.cs @@ -305,7 +305,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -362,7 +362,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -541,7 +541,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -634,7 +634,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str - {expectedManagedType} + {expectedManagedType} @@ -657,7 +657,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string - {expectedManagedType} + {expectedManagedType} @@ -946,10 +946,10 @@ struct MyStruct MyUnion - {expectedManagedType} + {expectedManagedType} - MyUnion + MyUnion diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/UnionDeclarationTest.cs index 2cd277c8..9711f866 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/UnionDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/UnionDeclarationTest.cs @@ -306,7 +306,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -363,7 +363,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -542,7 +542,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -635,7 +635,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str - {expectedManagedType} + {expectedManagedType} @@ -658,7 +658,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string - {expectedManagedType} + {expectedManagedType} @@ -808,7 +808,7 @@ union MyUnion MyStruct - {expectedManagedType} + {expectedManagedType} diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/StructDeclarationTest.cs index b8158df8..8e203f47 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/StructDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/StructDeclarationTest.cs @@ -311,7 +311,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -368,7 +368,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -547,7 +547,7 @@ struct MyOtherStruct - MyStruct + MyStruct @@ -640,7 +640,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str - {expectedManagedType} + {expectedManagedType} @@ -663,7 +663,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string - {expectedManagedType} + {expectedManagedType} @@ -952,10 +952,10 @@ struct MyStruct MyUnion - {expectedManagedType} + {expectedManagedType} - MyUnion + MyUnion diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/UnionDeclarationTest.cs index d7a77a96..e5794ac2 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/UnionDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/UnionDeclarationTest.cs @@ -312,7 +312,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -369,7 +369,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -548,7 +548,7 @@ union MyOtherUnion - MyUnion + MyUnion @@ -641,7 +641,7 @@ protected override Task FixedSizedBufferPrimitiveTestImpl(string nativeType, str - {expectedManagedType} + {expectedManagedType} @@ -664,7 +664,7 @@ protected override Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string - {expectedManagedType} + {expectedManagedType} @@ -814,7 +814,7 @@ union MyUnion MyStruct - {expectedManagedType} + {expectedManagedType} diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCodeCompleteResultsTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCodeCompleteResultsTests.cs index b5f2369f..db75b412 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCodeCompleteResultsTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCodeCompleteResultsTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXCodeCompleteResultsTests + public static unsafe partial class CXCodeCompleteResultsTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXCodeCompleteResults), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXCodeCompleteResults))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXCodeCompleteResults).IsLayoutSequential); + Assert.That(typeof(CXCodeCompleteResults).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXCodeCompleteResults)); + Assert.That(sizeof(CXCodeCompleteResults), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXCodeCompleteResults)); + Assert.That(sizeof(CXCodeCompleteResults), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCommentTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCommentTests.cs index daa99c1c..d2182d4a 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCommentTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCommentTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXCommentTests + public static unsafe partial class CXCommentTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXComment), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXComment))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXComment).IsLayoutSequential); + Assert.That(typeof(CXComment).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXComment)); + Assert.That(sizeof(CXComment), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXComment)); + Assert.That(sizeof(CXComment), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCompletionResultTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCompletionResultTests.cs index a313b2b1..9f8da4ff 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCompletionResultTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCompletionResultTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXCompletionResultTests + public static unsafe partial class CXCompletionResultTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXCompletionResult), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXCompletionResult))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXCompletionResult).IsLayoutSequential); + Assert.That(typeof(CXCompletionResult).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXCompletionResult)); + Assert.That(sizeof(CXCompletionResult), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXCompletionResult)); + Assert.That(sizeof(CXCompletionResult), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCursorAndRangeVisitorTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCursorAndRangeVisitorTests.cs index e2935a6d..2b246065 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCursorAndRangeVisitorTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCursorAndRangeVisitorTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXCursorAndRangeVisitorTests + public static unsafe partial class CXCursorAndRangeVisitorTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXCursorAndRangeVisitor), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXCursorAndRangeVisitor))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXCursorAndRangeVisitor).IsLayoutSequential); + Assert.That(typeof(CXCursorAndRangeVisitor).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXCursorAndRangeVisitor)); + Assert.That(sizeof(CXCursorAndRangeVisitor), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXCursorAndRangeVisitor)); + Assert.That(sizeof(CXCursorAndRangeVisitor), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCursorSetImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCursorSetImplTests.cs index 97051589..6fdcdb42 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCursorSetImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCursorSetImplTests.cs @@ -1,35 +1,35 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. -using System.Runtime.InteropServices; using NUnit.Framework; +using System.Runtime.InteropServices; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXCursorSetImplTests + public static unsafe partial class CXCursorSetImplTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXCursorSetImpl), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXCursorSetImpl))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXCursorSetImpl).IsLayoutSequential); + Assert.That(typeof(CXCursorSetImpl).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.AreEqual(1, sizeof(CXCursorSetImpl)); + Assert.That(sizeof(CXCursorSetImpl), Is.EqualTo(1)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXCursorTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXCursorTests.cs index ffe7825b..4cfed460 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXCursorTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXCursorTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXCursorTests + public static unsafe partial class CXCursorTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXCursor), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXCursor))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXCursor).IsLayoutSequential); + Assert.That(typeof(CXCursor).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(32, sizeof(CXCursor)); + Assert.That(sizeof(CXCursor), Is.EqualTo(32)); } else { - Assert.AreEqual(20, sizeof(CXCursor)); + Assert.That(sizeof(CXCursor), Is.EqualTo(20)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXFileUniqueIDTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXFileUniqueIDTests.cs index c9eb8dd5..a52c936f 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXFileUniqueIDTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXFileUniqueIDTests.cs @@ -1,35 +1,35 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. -using System.Runtime.InteropServices; using NUnit.Framework; +using System.Runtime.InteropServices; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXFileUniqueIDTests + public static unsafe partial class CXFileUniqueIDTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXFileUniqueID), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXFileUniqueID))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXFileUniqueID).IsLayoutSequential); + Assert.That(typeof(CXFileUniqueID).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.AreEqual(24, sizeof(CXFileUniqueID)); + Assert.That(sizeof(CXFileUniqueID), Is.EqualTo(24)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxAttrInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxAttrInfoTests.cs index 9ab9eb82..3c5324b1 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxAttrInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxAttrInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxAttrInfoTests + public static unsafe partial class CXIdxAttrInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxAttrInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxAttrInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxAttrInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxAttrInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(64, sizeof(CXIdxAttrInfo)); + Assert.That(sizeof(CXIdxAttrInfo), Is.EqualTo(64)); } else { - Assert.AreEqual(36, sizeof(CXIdxAttrInfo)); + Assert.That(sizeof(CXIdxAttrInfo), Is.EqualTo(36)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxBaseClassInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxBaseClassInfoTests.cs index 30235419..a4556e1e 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxBaseClassInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxBaseClassInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxBaseClassInfoTests + public static unsafe partial class CXIdxBaseClassInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxBaseClassInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxBaseClassInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxBaseClassInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxBaseClassInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(64, sizeof(CXIdxBaseClassInfo)); + Assert.That(sizeof(CXIdxBaseClassInfo), Is.EqualTo(64)); } else { - Assert.AreEqual(36, sizeof(CXIdxBaseClassInfo)); + Assert.That(sizeof(CXIdxBaseClassInfo), Is.EqualTo(36)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxCXXClassDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxCXXClassDeclInfoTests.cs index b96dbd20..5af00d3f 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxCXXClassDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxCXXClassDeclInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxCXXClassDeclInfoTests + public static unsafe partial class CXIdxCXXClassDeclInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxCXXClassDeclInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxCXXClassDeclInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxCXXClassDeclInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxCXXClassDeclInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXIdxCXXClassDeclInfo)); + Assert.That(sizeof(CXIdxCXXClassDeclInfo), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CXIdxCXXClassDeclInfo)); + Assert.That(sizeof(CXIdxCXXClassDeclInfo), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxContainerInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxContainerInfoTests.cs index a5437ef2..d400cad9 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxContainerInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxContainerInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxContainerInfoTests + public static unsafe partial class CXIdxContainerInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxContainerInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxContainerInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxContainerInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxContainerInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(32, sizeof(CXIdxContainerInfo)); + Assert.That(sizeof(CXIdxContainerInfo), Is.EqualTo(32)); } else { - Assert.AreEqual(20, sizeof(CXIdxContainerInfo)); + Assert.That(sizeof(CXIdxContainerInfo), Is.EqualTo(20)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxDeclInfoTests.cs index f532db8c..69b36390 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxDeclInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxDeclInfoTests + public static unsafe partial class CXIdxDeclInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxDeclInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxDeclInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxDeclInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxDeclInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(128, sizeof(CXIdxDeclInfo)); + Assert.That(sizeof(CXIdxDeclInfo), Is.EqualTo(128)); } else { - Assert.AreEqual(76, sizeof(CXIdxDeclInfo)); + Assert.That(sizeof(CXIdxDeclInfo), Is.EqualTo(76)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityInfoTests.cs index e2e03bd9..64d87539 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxEntityInfoTests + public static unsafe partial class CXIdxEntityInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxEntityInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxEntityInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxEntityInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxEntityInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(80, sizeof(CXIdxEntityInfo)); + Assert.That(sizeof(CXIdxEntityInfo), Is.EqualTo(80)); } else { - Assert.AreEqual(48, sizeof(CXIdxEntityInfo)); + Assert.That(sizeof(CXIdxEntityInfo), Is.EqualTo(48)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityRefInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityRefInfoTests.cs index c578d4d0..2cc1099a 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityRefInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxEntityRefInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxEntityRefInfoTests + public static unsafe partial class CXIdxEntityRefInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxEntityRefInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxEntityRefInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxEntityRefInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxEntityRefInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(96, sizeof(CXIdxEntityRefInfo)); + Assert.That(sizeof(CXIdxEntityRefInfo), Is.EqualTo(96)); } else { - Assert.AreEqual(52, sizeof(CXIdxEntityRefInfo)); + Assert.That(sizeof(CXIdxEntityRefInfo), Is.EqualTo(52)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxIBOutletCollectionAttrInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxIBOutletCollectionAttrInfoTests.cs index c2dd5f3b..c179126a 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxIBOutletCollectionAttrInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxIBOutletCollectionAttrInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxIBOutletCollectionAttrInfoTests + public static unsafe partial class CXIdxIBOutletCollectionAttrInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxIBOutletCollectionAttrInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxIBOutletCollectionAttrInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxIBOutletCollectionAttrInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxIBOutletCollectionAttrInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(72, sizeof(CXIdxIBOutletCollectionAttrInfo)); + Assert.That(sizeof(CXIdxIBOutletCollectionAttrInfo), Is.EqualTo(72)); } else { - Assert.AreEqual(40, sizeof(CXIdxIBOutletCollectionAttrInfo)); + Assert.That(sizeof(CXIdxIBOutletCollectionAttrInfo), Is.EqualTo(40)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxImportedASTFileInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxImportedASTFileInfoTests.cs index 75bca2f1..653cb4ea 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxImportedASTFileInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxImportedASTFileInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxImportedASTFileInfoTests + public static unsafe partial class CXIdxImportedASTFileInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxImportedASTFileInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxImportedASTFileInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxImportedASTFileInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxImportedASTFileInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(48, sizeof(CXIdxImportedASTFileInfo)); + Assert.That(sizeof(CXIdxImportedASTFileInfo), Is.EqualTo(48)); } else { - Assert.AreEqual(24, sizeof(CXIdxImportedASTFileInfo)); + Assert.That(sizeof(CXIdxImportedASTFileInfo), Is.EqualTo(24)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxIncludedFileInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxIncludedFileInfoTests.cs index 8414fd25..9d448d53 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxIncludedFileInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxIncludedFileInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxIncludedFileInfoTests + public static unsafe partial class CXIdxIncludedFileInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxIncludedFileInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxIncludedFileInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxIncludedFileInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxIncludedFileInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(56, sizeof(CXIdxIncludedFileInfo)); + Assert.That(sizeof(CXIdxIncludedFileInfo), Is.EqualTo(56)); } else { - Assert.AreEqual(32, sizeof(CXIdxIncludedFileInfo)); + Assert.That(sizeof(CXIdxIncludedFileInfo), Is.EqualTo(32)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxLocTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxLocTests.cs index 34bac8f9..d04b099a 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxLocTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxLocTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxLocTests + public static unsafe partial class CXIdxLocTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxLoc), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxLoc))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxLoc).IsLayoutSequential); + Assert.That(typeof(CXIdxLoc).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXIdxLoc)); + Assert.That(sizeof(CXIdxLoc), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CXIdxLoc)); + Assert.That(sizeof(CXIdxLoc), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCCategoryDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCCategoryDeclInfoTests.cs index 166ea8df..9b14cbd7 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCCategoryDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCCategoryDeclInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxObjCCategoryDeclInfoTests + public static unsafe partial class CXIdxObjCCategoryDeclInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxObjCCategoryDeclInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxObjCCategoryDeclInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxObjCCategoryDeclInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxObjCCategoryDeclInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(80, sizeof(CXIdxObjCCategoryDeclInfo)); + Assert.That(sizeof(CXIdxObjCCategoryDeclInfo), Is.EqualTo(80)); } else { - Assert.AreEqual(44, sizeof(CXIdxObjCCategoryDeclInfo)); + Assert.That(sizeof(CXIdxObjCCategoryDeclInfo), Is.EqualTo(44)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCContainerDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCContainerDeclInfoTests.cs index f903bb39..64631a01 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCContainerDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCContainerDeclInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxObjCContainerDeclInfoTests + public static unsafe partial class CXIdxObjCContainerDeclInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxObjCContainerDeclInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxObjCContainerDeclInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxObjCContainerDeclInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxObjCContainerDeclInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXIdxObjCContainerDeclInfo)); + Assert.That(sizeof(CXIdxObjCContainerDeclInfo), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXIdxObjCContainerDeclInfo)); + Assert.That(sizeof(CXIdxObjCContainerDeclInfo), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCInterfaceDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCInterfaceDeclInfoTests.cs index 219ba103..dc4a9c90 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCInterfaceDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCInterfaceDeclInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxObjCInterfaceDeclInfoTests + public static unsafe partial class CXIdxObjCInterfaceDeclInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxObjCInterfaceDeclInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxObjCInterfaceDeclInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxObjCInterfaceDeclInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxObjCInterfaceDeclInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXIdxObjCInterfaceDeclInfo)); + Assert.That(sizeof(CXIdxObjCInterfaceDeclInfo), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CXIdxObjCInterfaceDeclInfo)); + Assert.That(sizeof(CXIdxObjCInterfaceDeclInfo), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCPropertyDeclInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCPropertyDeclInfoTests.cs index 0c2f157c..528caade 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCPropertyDeclInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCPropertyDeclInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxObjCPropertyDeclInfoTests + public static unsafe partial class CXIdxObjCPropertyDeclInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxObjCPropertyDeclInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxObjCPropertyDeclInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxObjCPropertyDeclInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxObjCPropertyDeclInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXIdxObjCPropertyDeclInfo)); + Assert.That(sizeof(CXIdxObjCPropertyDeclInfo), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CXIdxObjCPropertyDeclInfo)); + Assert.That(sizeof(CXIdxObjCPropertyDeclInfo), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefInfoTests.cs index 45b0b342..9b92ed8f 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxObjCProtocolRefInfoTests + public static unsafe partial class CXIdxObjCProtocolRefInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxObjCProtocolRefInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxObjCProtocolRefInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxObjCProtocolRefInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxObjCProtocolRefInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(64, sizeof(CXIdxObjCProtocolRefInfo)); + Assert.That(sizeof(CXIdxObjCProtocolRefInfo), Is.EqualTo(64)); } else { - Assert.AreEqual(36, sizeof(CXIdxObjCProtocolRefInfo)); + Assert.That(sizeof(CXIdxObjCProtocolRefInfo), Is.EqualTo(36)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefListInfoTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefListInfoTests.cs index eca01ac9..8bbf63fd 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefListInfoTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXIdxObjCProtocolRefListInfoTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXIdxObjCProtocolRefListInfoTests + public static unsafe partial class CXIdxObjCProtocolRefListInfoTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXIdxObjCProtocolRefListInfo), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXIdxObjCProtocolRefListInfo))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXIdxObjCProtocolRefListInfo).IsLayoutSequential); + Assert.That(typeof(CXIdxObjCProtocolRefListInfo).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXIdxObjCProtocolRefListInfo)); + Assert.That(sizeof(CXIdxObjCProtocolRefListInfo), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXIdxObjCProtocolRefListInfo)); + Assert.That(sizeof(CXIdxObjCProtocolRefListInfo), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXModuleMapDescriptorImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXModuleMapDescriptorImplTests.cs index 7ce2428c..50853e48 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXModuleMapDescriptorImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXModuleMapDescriptorImplTests.cs @@ -1,35 +1,35 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. -using System.Runtime.InteropServices; using NUnit.Framework; +using System.Runtime.InteropServices; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXModuleMapDescriptorImplTests + public static unsafe partial class CXModuleMapDescriptorImplTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXModuleMapDescriptorImpl), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXModuleMapDescriptorImpl))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXModuleMapDescriptorImpl).IsLayoutSequential); + Assert.That(typeof(CXModuleMapDescriptorImpl).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.AreEqual(1, sizeof(CXModuleMapDescriptorImpl)); + Assert.That(sizeof(CXModuleMapDescriptorImpl), Is.EqualTo(1)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXPlatformAvailabilityTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXPlatformAvailabilityTests.cs index d9dae14a..2d0de4e3 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXPlatformAvailabilityTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXPlatformAvailabilityTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXPlatformAvailabilityTests + public static unsafe partial class CXPlatformAvailabilityTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXPlatformAvailability), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXPlatformAvailability))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXPlatformAvailability).IsLayoutSequential); + Assert.That(typeof(CXPlatformAvailability).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(72, sizeof(CXPlatformAvailability)); + Assert.That(sizeof(CXPlatformAvailability), Is.EqualTo(72)); } else { - Assert.AreEqual(56, sizeof(CXPlatformAvailability)); + Assert.That(sizeof(CXPlatformAvailability), Is.EqualTo(56)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXSourceLocationTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXSourceLocationTests.cs index 55bab261..218e7908 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXSourceLocationTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXSourceLocationTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXSourceLocationTests + public static unsafe partial class CXSourceLocationTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXSourceLocation), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXSourceLocation))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXSourceLocation).IsLayoutSequential); + Assert.That(typeof(CXSourceLocation).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXSourceLocation)); + Assert.That(sizeof(CXSourceLocation), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CXSourceLocation)); + Assert.That(sizeof(CXSourceLocation), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeListTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeListTests.cs index 199ac2b9..399d1a5d 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeListTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeListTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXSourceRangeListTests + public static unsafe partial class CXSourceRangeListTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXSourceRangeList), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXSourceRangeList))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXSourceRangeList).IsLayoutSequential); + Assert.That(typeof(CXSourceRangeList).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXSourceRangeList)); + Assert.That(sizeof(CXSourceRangeList), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXSourceRangeList)); + Assert.That(sizeof(CXSourceRangeList), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeTests.cs index 5c263ebe..de960cbb 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXSourceRangeTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXSourceRangeTests + public static unsafe partial class CXSourceRangeTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXSourceRange), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXSourceRange))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXSourceRange).IsLayoutSequential); + Assert.That(typeof(CXSourceRange).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXSourceRange)); + Assert.That(sizeof(CXSourceRange), Is.EqualTo(24)); } else { - Assert.AreEqual(16, sizeof(CXSourceRange)); + Assert.That(sizeof(CXSourceRange), Is.EqualTo(16)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXStringSetTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXStringSetTests.cs index 4b75d5e1..bb7c4439 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXStringSetTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXStringSetTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXStringSetTests + public static unsafe partial class CXStringSetTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXStringSet), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXStringSet))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXStringSet).IsLayoutSequential); + Assert.That(typeof(CXStringSet).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXStringSet)); + Assert.That(sizeof(CXStringSet), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXStringSet)); + Assert.That(sizeof(CXStringSet), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXStringTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXStringTests.cs index e2914bd6..22e76b2b 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXStringTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXStringTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXStringTests + public static unsafe partial class CXStringTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXString), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXString))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXString).IsLayoutSequential); + Assert.That(typeof(CXString).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXString)); + Assert.That(sizeof(CXString), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXString)); + Assert.That(sizeof(CXString), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageEntryTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageEntryTests.cs index c8df8136..c0ad8d4d 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageEntryTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageEntryTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXTUResourceUsageEntryTests + public static unsafe partial class CXTUResourceUsageEntryTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXTUResourceUsageEntry), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXTUResourceUsageEntry))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXTUResourceUsageEntry).IsLayoutSequential); + Assert.That(typeof(CXTUResourceUsageEntry).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CXTUResourceUsageEntry)); + Assert.That(sizeof(CXTUResourceUsageEntry), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CXTUResourceUsageEntry)); + Assert.That(sizeof(CXTUResourceUsageEntry), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageTests.cs index 6d1c709b..3b50e34b 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTUResourceUsageTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXTUResourceUsageTests + public static unsafe partial class CXTUResourceUsageTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXTUResourceUsage), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXTUResourceUsage))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXTUResourceUsage).IsLayoutSequential); + Assert.That(typeof(CXTUResourceUsage).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXTUResourceUsage)); + Assert.That(sizeof(CXTUResourceUsage), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CXTUResourceUsage)); + Assert.That(sizeof(CXTUResourceUsage), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTargetInfoImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTargetInfoImplTests.cs index a72e7bc7..9f7bec13 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTargetInfoImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTargetInfoImplTests.cs @@ -1,35 +1,35 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. -using System.Runtime.InteropServices; using NUnit.Framework; +using System.Runtime.InteropServices; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXTargetInfoImplTests + public static unsafe partial class CXTargetInfoImplTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXTargetInfoImpl), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXTargetInfoImpl))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXTargetInfoImpl).IsLayoutSequential); + Assert.That(typeof(CXTargetInfoImpl).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.AreEqual(1, sizeof(CXTargetInfoImpl)); + Assert.That(sizeof(CXTargetInfoImpl), Is.EqualTo(1)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTokenTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTokenTests.cs index 63c9f3a0..71c74103 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTokenTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTokenTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXTokenTests + public static unsafe partial class CXTokenTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXToken), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXToken))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXToken).IsLayoutSequential); + Assert.That(typeof(CXToken).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXToken)); + Assert.That(sizeof(CXToken), Is.EqualTo(24)); } else { - Assert.AreEqual(20, sizeof(CXToken)); + Assert.That(sizeof(CXToken), Is.EqualTo(20)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTranslationUnitImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTranslationUnitImplTests.cs index 85b3c887..4a53a907 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTranslationUnitImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTranslationUnitImplTests.cs @@ -1,35 +1,35 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. -using System.Runtime.InteropServices; using NUnit.Framework; +using System.Runtime.InteropServices; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXTranslationUnitImplTests + public static unsafe partial class CXTranslationUnitImplTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXTranslationUnitImpl), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXTranslationUnitImpl))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXTranslationUnitImpl).IsLayoutSequential); + Assert.That(typeof(CXTranslationUnitImpl).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.AreEqual(1, sizeof(CXTranslationUnitImpl)); + Assert.That(sizeof(CXTranslationUnitImpl), Is.EqualTo(1)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXTypeTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXTypeTests.cs index d0a1b8c9..768b4027 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXTypeTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXTypeTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXTypeTests + public static unsafe partial class CXTypeTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXType), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXType))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXType).IsLayoutSequential); + Assert.That(typeof(CXType).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXType)); + Assert.That(sizeof(CXType), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CXType)); + Assert.That(sizeof(CXType), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXUnsavedFileTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXUnsavedFileTests.cs index aeb2f4c7..88f440bb 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXUnsavedFileTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXUnsavedFileTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXUnsavedFileTests + public static unsafe partial class CXUnsavedFileTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXUnsavedFile), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXUnsavedFile))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXUnsavedFile).IsLayoutSequential); + Assert.That(typeof(CXUnsavedFile).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CXUnsavedFile)); + Assert.That(sizeof(CXUnsavedFile), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CXUnsavedFile)); + Assert.That(sizeof(CXUnsavedFile), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXVersionTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXVersionTests.cs index a1ba63ad..3ffbaa97 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXVersionTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXVersionTests.cs @@ -1,35 +1,35 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. -using System.Runtime.InteropServices; using NUnit.Framework; +using System.Runtime.InteropServices; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXVersionTests + public static unsafe partial class CXVersionTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXVersion), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXVersion))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXVersion).IsLayoutSequential); + Assert.That(typeof(CXVersion).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.AreEqual(12, sizeof(CXVersion)); + Assert.That(sizeof(CXVersion), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CXVirtualFileOverlayImplTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CXVirtualFileOverlayImplTests.cs index b82dcc34..55701bf0 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CXVirtualFileOverlayImplTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CXVirtualFileOverlayImplTests.cs @@ -1,35 +1,35 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. -using System.Runtime.InteropServices; using NUnit.Framework; +using System.Runtime.InteropServices; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CXVirtualFileOverlayImplTests + public static unsafe partial class CXVirtualFileOverlayImplTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CXVirtualFileOverlayImpl), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CXVirtualFileOverlayImpl))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CXVirtualFileOverlayImpl).IsLayoutSequential); + Assert.That(typeof(CXVirtualFileOverlayImpl).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.AreEqual(1, sizeof(CXVirtualFileOverlayImpl)); + Assert.That(sizeof(CXVirtualFileOverlayImpl), Is.EqualTo(1)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentLocTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentLocTests.cs index 8660fdca..f61c3078 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentLocTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentLocTests.cs @@ -1,27 +1,27 @@ // 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/dotnet/clangsharp/blob/main/sources/libClangSharp +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CX_TemplateArgumentLocTests + public static unsafe partial class CX_TemplateArgumentLocTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CX_TemplateArgumentLoc), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CX_TemplateArgumentLoc))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CX_TemplateArgumentLoc).IsLayoutSequential); + Assert.That(typeof(CX_TemplateArgumentLoc).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -30,11 +30,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(16, sizeof(CX_TemplateArgumentLoc)); + Assert.That(sizeof(CX_TemplateArgumentLoc), Is.EqualTo(16)); } else { - Assert.AreEqual(8, sizeof(CX_TemplateArgumentLoc)); + Assert.That(sizeof(CX_TemplateArgumentLoc), Is.EqualTo(8)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentTests.cs index f1af47e8..2fa80dba 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateArgumentTests.cs @@ -1,27 +1,27 @@ // 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/dotnet/clangsharp/blob/main/sources/libClangSharp +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CX_TemplateArgumentTests + public static unsafe partial class CX_TemplateArgumentTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CX_TemplateArgument), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CX_TemplateArgument))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CX_TemplateArgument).IsLayoutSequential); + Assert.That(typeof(CX_TemplateArgument).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -30,11 +30,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CX_TemplateArgument)); + Assert.That(sizeof(CX_TemplateArgument), Is.EqualTo(24)); } else { - Assert.AreEqual(16, sizeof(CX_TemplateArgument)); + Assert.That(sizeof(CX_TemplateArgument), Is.EqualTo(16)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateNameTests.cs b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateNameTests.cs index efec0c69..ce0e46d1 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateNameTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/CX_TemplateNameTests.cs @@ -1,27 +1,27 @@ // 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/dotnet/clangsharp/blob/main/sources/libClangSharp +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class CX_TemplateNameTests + public static unsafe partial class CX_TemplateNameTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(CX_TemplateName), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CX_TemplateName))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(CX_TemplateName).IsLayoutSequential); + Assert.That(typeof(CX_TemplateName).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -30,11 +30,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(24, sizeof(CX_TemplateName)); + Assert.That(sizeof(CX_TemplateName), Is.EqualTo(24)); } else { - Assert.AreEqual(12, sizeof(CX_TemplateName)); + Assert.That(sizeof(CX_TemplateName), Is.EqualTo(12)); } } } diff --git a/tests/ClangSharp.UnitTests/InteropTests/IndexerCallbacksTests.cs b/tests/ClangSharp.UnitTests/InteropTests/IndexerCallbacksTests.cs index 47a4cc44..ddd84678 100644 --- a/tests/ClangSharp.UnitTests/InteropTests/IndexerCallbacksTests.cs +++ b/tests/ClangSharp.UnitTests/InteropTests/IndexerCallbacksTests.cs @@ -1,29 +1,29 @@ // 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-13.0.0/clang/include/clang-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. +using NUnit.Framework; using System; using System.Runtime.InteropServices; -using NUnit.Framework; namespace ClangSharp.Interop.UnitTests { /// Provides validation of the struct. - public static unsafe class IndexerCallbacksTests + public static unsafe partial class IndexerCallbacksTests { /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.AreEqual(sizeof(IndexerCallbacks), Marshal.SizeOf()); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(IndexerCallbacks))); } /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.True(typeof(IndexerCallbacks).IsLayoutSequential); + Assert.That(typeof(IndexerCallbacks).IsLayoutSequential, Is.True); } /// Validates that the struct has the correct size. @@ -32,11 +32,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.AreEqual(64, sizeof(IndexerCallbacks)); + Assert.That(sizeof(IndexerCallbacks), Is.EqualTo(64)); } else { - Assert.AreEqual(32, sizeof(IndexerCallbacks)); + Assert.That(sizeof(IndexerCallbacks), Is.EqualTo(32)); } } }