[clang] 8b32289 - [libclang/python] Add missing concept declaration CursorKind (#69125)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 25 11:25:12 PDT 2023
Author: Nick Renieris
Date: 2023-10-25T14:25:08-04:00
New Revision: 8b322895207c34b434698954dc67404e0bbf8d8e
URL: https://github.com/llvm/llvm-project/commit/8b322895207c34b434698954dc67404e0bbf8d8e
DIFF: https://github.com/llvm/llvm-project/commit/8b322895207c34b434698954dc67404e0bbf8d8e.diff
LOG: [libclang/python] Add missing concept declaration CursorKind (#69125)
Maps to
[`CXCursor_ConceptDecl`](https://github.com/llvm/llvm-project/blob/ee8524087c78a673fcf5486ded69ee597a85e0f1/clang/include/clang-c/Index.h#L2716),
added in ee8524087c78a673fcf5486ded69ee597a85e0f1.
Without this I get this error on my codebase which uses C++20 concept
decls:
```
ValueError: Unknown template argument kind 604
```
Added:
Modified:
clang/bindings/python/clang/cindex.py
Removed:
################################################################################
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index ff386d2094a0b88..6a16f3a9ef6e957 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -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)
More information about the cfe-commits
mailing list