================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to