Skip to content

Commit

Permalink
[libclang/python] Add missing concept declaration CursorKind (#69125)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
VelocityRa committed Oct 25, 2023
1 parent c362cc2 commit 8b32289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/bindings/python/clang/cindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,8 @@ def __repr__(self):
CursorKind.STATIC_ASSERT = CursorKind(602)
# A friend declaration
CursorKind.FRIEND_DECL = CursorKind(603)
# A concept declaration
CursorKind.CONCEPT_DECL = CursorKind(604)

# A code completion overload candidate.
CursorKind.OVERLOAD_CANDIDATE = CursorKind(700)
Expand Down

0 comments on commit 8b32289

Please sign in to comment.