diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 787c641..239a3e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: - "main" env: - LLVM_VERSION: 12 + LLVM_VERSION: 13 jobs: test: diff --git a/clang/callingconv_gen.go b/clang/callingconv_gen.go index a2426e3..3329ad1 100644 --- a/clang/callingconv_gen.go +++ b/clang/callingconv_gen.go @@ -27,6 +27,7 @@ const ( CallingConv_PreserveMost = C.CXCallingConv_PreserveMost CallingConv_PreserveAll = C.CXCallingConv_PreserveAll CallingConv_AArch64VectorCall = C.CXCallingConv_AArch64VectorCall + CallingConv_SwiftAsync = C.CXCallingConv_SwiftAsync CallingConv_Invalid = C.CXCallingConv_Invalid CallingConv_Unexposed = C.CXCallingConv_Unexposed ) @@ -67,6 +68,8 @@ func (cc CallingConv) Spelling() string { return "CallingConv=PreserveAll" case CallingConv_AArch64VectorCall: return "CallingConv=AArch64VectorCall" + case CallingConv_SwiftAsync: + return "CallingConv=SwiftAsync" case CallingConv_Invalid: return "CallingConv=Invalid" case CallingConv_Unexposed: diff --git a/clang/clang-c/Index.h b/clang/clang-c/Index.h index b09623e..37b192b 100644 --- a/clang/clang-c/Index.h +++ b/clang/clang-c/Index.h @@ -35,7 +35,7 @@ * compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable. */ #define CINDEX_VERSION_MAJOR 0 -#define CINDEX_VERSION_MINOR 61 +#define CINDEX_VERSION_MINOR 62 #define CINDEX_VERSION_ENCODE(major, minor) (((major)*10000) + ((minor)*1)) @@ -2570,7 +2570,31 @@ enum CXCursorKind { */ CXCursor_OMPScanDirective = 287, - CXCursor_LastStmt = CXCursor_OMPScanDirective, + /** OpenMP tile directive. + */ + CXCursor_OMPTileDirective = 288, + + /** OpenMP canonical loop. + */ + CXCursor_OMPCanonicalLoop = 289, + + /** OpenMP interop directive. + */ + CXCursor_OMPInteropDirective = 290, + + /** OpenMP dispatch directive. + */ + CXCursor_OMPDispatchDirective = 291, + + /** OpenMP masked directive. + */ + CXCursor_OMPMaskedDirective = 292, + + /** OpenMP unroll directive. + */ + CXCursor_OMPUnrollDirective = 293, + + CXCursor_LastStmt = CXCursor_OMPUnrollDirective, /** * Cursor that represents the translation unit itself. @@ -3396,6 +3420,7 @@ enum CXCallingConv { CXCallingConv_PreserveMost = 14, CXCallingConv_PreserveAll = 15, CXCallingConv_AArch64VectorCall = 16, + CXCallingConv_SwiftAsync = 17, CXCallingConv_Invalid = 100, CXCallingConv_Unexposed = 200 diff --git a/clang/cursorkind_gen.go b/clang/cursorkind_gen.go index 3f7a9cf..7015a42 100644 --- a/clang/cursorkind_gen.go +++ b/clang/cursorkind_gen.go @@ -597,7 +597,19 @@ const ( Cursor_OMPDepobjDirective = C.CXCursor_OMPDepobjDirective // OpenMP scan directive. Cursor_OMPScanDirective = C.CXCursor_OMPScanDirective - // OpenMP scan directive. + // OpenMP tile directive. + Cursor_OMPTileDirective = C.CXCursor_OMPTileDirective + // OpenMP canonical loop. + Cursor_OMPCanonicalLoop = C.CXCursor_OMPCanonicalLoop + // OpenMP interop directive. + Cursor_OMPInteropDirective = C.CXCursor_OMPInteropDirective + // OpenMP dispatch directive. + Cursor_OMPDispatchDirective = C.CXCursor_OMPDispatchDirective + // OpenMP masked directive. + Cursor_OMPMaskedDirective = C.CXCursor_OMPMaskedDirective + // OpenMP unroll directive. + Cursor_OMPUnrollDirective = C.CXCursor_OMPUnrollDirective + // OpenMP unroll directive. Cursor_LastStmt = C.CXCursor_LastStmt /* Cursor that represents the translation unit itself.