[clang] Add retrieval of unary operator spelling and python bindings (PR #219983)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 21 00:41:49 PDT 2026
================
@@ -2474,6 +2487,38 @@ def is_assignment(self):
Comma = 33
+class UnaryOperator(BaseEnumeration):
+ """
+ Describes the UnaryOperator of a declaration
+ """
+
+ def __nonzero__(self):
----------------
Endilll wrote:
I wonder if we want this `__bool__` at all, because I don't see any other type in cindex that provides it. Cursor has `is_invalid`, if we look for a precedent, but I'd just drop `__bool__`.
https://github.com/llvm/llvm-project/pull/219983
More information about the cfe-commits
mailing list