Skip to content

Commit

Permalink
clang: update to clang v14.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <[email protected]>
  • Loading branch information
zchee committed Mar 28, 2022
1 parent b39ca1f commit 559d766
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .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: 13
LLVM_VERSION: 14

jobs:
test:
Expand All @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Test in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export CC := clang
export CXX := clang++

LLVM_LIBDIR?=$(shell llvm-config --libdir)
LLVM_VERSION?=9
LLVM_VERSION?=14

GO_TEST_FUNC?=.

Expand Down
13 changes: 11 additions & 2 deletions clang/clang-c/Index.h
Original file line number Diff line number Diff line change
Expand Up @@ -2594,7 +2594,15 @@ enum CXCursorKind {
*/
CXCursor_OMPUnrollDirective = 293,

CXCursor_LastStmt = CXCursor_OMPUnrollDirective,
/** OpenMP metadirective directive.
*/
CXCursor_OMPMetaDirective = 294,

/** OpenMP loop directive.
*/
CXCursor_OMPGenericLoopDirective = 295,

CXCursor_LastStmt = CXCursor_OMPGenericLoopDirective,

/**
* Cursor that represents the translation unit itself.
Expand Down Expand Up @@ -3300,8 +3308,9 @@ 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,
Expand Down
6 changes: 5 additions & 1 deletion clang/cursorkind_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,11 @@ const (
Cursor_OMPMaskedDirective = C.CXCursor_OMPMaskedDirective
// Cursor_OMPUnrollDirective openMP unroll directive.
Cursor_OMPUnrollDirective = C.CXCursor_OMPUnrollDirective
// Cursor_LastStmt openMP unroll directive.
// Cursor_OMPMetaDirective openMP metadirective directive.
Cursor_OMPMetaDirective = C.CXCursor_OMPMetaDirective
// Cursor_OMPGenericLoopDirective openMP loop directive.
Cursor_OMPGenericLoopDirective = C.CXCursor_OMPGenericLoopDirective
// Cursor_LastStmt openMP loop directive.
Cursor_LastStmt = C.CXCursor_LastStmt
// Cursor_TranslationUnit cursor that represents the translation unit itself.
//
Expand Down
2 changes: 1 addition & 1 deletion clang/doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package clang provides native bindings for the clang C API.
// Package clang provides the Clang C API bindings for Go.
package clang

import (
Expand Down
2 changes: 2 additions & 0 deletions clang/typekind_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ const (
Type_ULongAccum = C.CXType_ULongAccum
// Type_BFloat16 a type whose specific kind is not exposed via this interface.
Type_BFloat16 = C.CXType_BFloat16
// Type_Ibm128 a type whose specific kind is not exposed via this interface.
Type_Ibm128 = C.CXType_Ibm128
// Type_FirstBuiltin a type whose specific kind is not exposed via this interface.
Type_FirstBuiltin = C.CXType_FirstBuiltin
// Type_LastBuiltin a type whose specific kind is not exposed via this interface.
Expand Down

0 comments on commit 559d766

Please sign in to comment.