Skip to content

Commit 559d766

Browse files
committed
clang: update to clang v14.0.0
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent b39ca1f commit 559d766

File tree

6 files changed

+22
-7
lines changed

6 files changed

+22
-7
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- "main"
1010

1111
env:
12-
LLVM_VERSION: 13
12+
LLVM_VERSION: 14
1313

1414
jobs:
1515
test:
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222

2323
- name: Test in Docker
2424
run: |

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export CC := clang
44
export CXX := clang++
55

66
LLVM_LIBDIR?=$(shell llvm-config --libdir)
7-
LLVM_VERSION?=9
7+
LLVM_VERSION?=14
88

99
GO_TEST_FUNC?=.
1010

clang/clang-c/Index.h

+11-2
Original file line numberDiff line numberDiff line change
@@ -2594,7 +2594,15 @@ enum CXCursorKind {
25942594
*/
25952595
CXCursor_OMPUnrollDirective = 293,
25962596

2597-
CXCursor_LastStmt = CXCursor_OMPUnrollDirective,
2597+
/** OpenMP metadirective directive.
2598+
*/
2599+
CXCursor_OMPMetaDirective = 294,
2600+
2601+
/** OpenMP loop directive.
2602+
*/
2603+
CXCursor_OMPGenericLoopDirective = 295,
2604+
2605+
CXCursor_LastStmt = CXCursor_OMPGenericLoopDirective,
25982606

25992607
/**
26002608
* Cursor that represents the translation unit itself.
@@ -3300,8 +3308,9 @@ enum CXTypeKind {
33003308
CXType_UAccum = 37,
33013309
CXType_ULongAccum = 38,
33023310
CXType_BFloat16 = 39,
3311+
CXType_Ibm128 = 40,
33033312
CXType_FirstBuiltin = CXType_Void,
3304-
CXType_LastBuiltin = CXType_BFloat16,
3313+
CXType_LastBuiltin = CXType_Ibm128,
33053314

33063315
CXType_Complex = 100,
33073316
CXType_Pointer = 101,

clang/cursorkind_gen.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,11 @@ const (
555555
Cursor_OMPMaskedDirective = C.CXCursor_OMPMaskedDirective
556556
// Cursor_OMPUnrollDirective openMP unroll directive.
557557
Cursor_OMPUnrollDirective = C.CXCursor_OMPUnrollDirective
558-
// Cursor_LastStmt openMP unroll directive.
558+
// Cursor_OMPMetaDirective openMP metadirective directive.
559+
Cursor_OMPMetaDirective = C.CXCursor_OMPMetaDirective
560+
// Cursor_OMPGenericLoopDirective openMP loop directive.
561+
Cursor_OMPGenericLoopDirective = C.CXCursor_OMPGenericLoopDirective
562+
// Cursor_LastStmt openMP loop directive.
559563
Cursor_LastStmt = C.CXCursor_LastStmt
560564
// Cursor_TranslationUnit cursor that represents the translation unit itself.
561565
//

clang/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package clang provides native bindings for the clang C API.
1+
// Package clang provides the Clang C API bindings for Go.
22
package clang
33

44
import (

clang/typekind_gen.go

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ const (
8888
Type_ULongAccum = C.CXType_ULongAccum
8989
// Type_BFloat16 a type whose specific kind is not exposed via this interface.
9090
Type_BFloat16 = C.CXType_BFloat16
91+
// Type_Ibm128 a type whose specific kind is not exposed via this interface.
92+
Type_Ibm128 = C.CXType_Ibm128
9193
// Type_FirstBuiltin a type whose specific kind is not exposed via this interface.
9294
Type_FirstBuiltin = C.CXType_FirstBuiltin
9395
// Type_LastBuiltin a type whose specific kind is not exposed via this interface.

0 commit comments

Comments
 (0)