Skip to content

Commit 8b32289

Browse files
authored
[libclang/python] Add missing concept declaration CursorKind (llvm#69125)
Maps to [`CXCursor_ConceptDecl`](https://github.com/llvm/llvm-project/blob/ee8524087c78a673fcf5486ded69ee597a85e0f1/clang/include/clang-c/Index.h#L2716), added in ee85240. Without this I get this error on my codebase which uses C++20 concept decls: ``` ValueError: Unknown template argument kind 604 ```
1 parent c362cc2 commit 8b32289

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,8 @@ def __repr__(self):
14031403
CursorKind.STATIC_ASSERT = CursorKind(602)
14041404
# A friend declaration
14051405
CursorKind.FRIEND_DECL = CursorKind(603)
1406+
# A concept declaration
1407+
CursorKind.CONCEPT_DECL = CursorKind(604)
14061408

14071409
# A code completion overload candidate.
14081410
CursorKind.OVERLOAD_CANDIDATE = CursorKind(700)

0 commit comments

Comments
 (0)