Skip to content

Commit

Permalink
clang: update to clang v13
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
  • Loading branch information
zchee committed Nov 20, 2021
1 parent 580092c commit cb31e70
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "main"

env:
LLVM_VERSION: 12
LLVM_VERSION: 13

jobs:
test:
Expand Down
3 changes: 3 additions & 0 deletions clang/callingconv_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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:
Expand Down
29 changes: 27 additions & 2 deletions clang/clang-c/Index.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -3396,6 +3420,7 @@ enum CXCallingConv {
CXCallingConv_PreserveMost = 14,
CXCallingConv_PreserveAll = 15,
CXCallingConv_AArch64VectorCall = 16,
CXCallingConv_SwiftAsync = 17,

CXCallingConv_Invalid = 100,
CXCallingConv_Unexposed = 200
Expand Down
14 changes: 13 additions & 1 deletion clang/cursorkind_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cb31e70

Please sign in to comment.