[PATCH] D96905: Add missing fixed point literal CursorKind to cindex.py

Vince Bridgers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 17 14:36:33 PST 2021


vabridgers created this revision.
Herald added a subscriber: arphaman.
vabridgers requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Experimenting with parsing AST from Python using cindex.py, I discovered
that a CursorKind defintion for fixed point literals was missing. This
change simply adds this defintion following the defintion in
clang/include/clang-c/Index.h


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96905

Files:
  clang/bindings/python/clang/cindex.py


Index: clang/bindings/python/clang/cindex.py
===================================================================
--- clang/bindings/python/clang/cindex.py
+++ clang/bindings/python/clang/cindex.py
@@ -1084,6 +1084,9 @@
 # Represents an @available(...) check.
 CursorKind.OBJC_AVAILABILITY_CHECK_EXPR = CursorKind(148)
 
+# A fixed point literal
+CursorKind.FIXED_POINT_LITERAL = CursorKind(149)
+
 
 # A statement whose specific kind is not exposed via this interface.
 #


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96905.324432.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210217/26b5bfc9/attachment.bin>


More information about the cfe-commits mailing list