================
@@ -2474,6 +2487,35 @@ def is_assignment(self):
Comma = 33
+class UnaryOperator(BaseEnumeration):
+ """
+ Describes the UnaryOperator of a declaration
+ """
+
+ def __nonzero__(self):
+ """Allows checks of the kind ```if cursor.unary_operator:```"""
+ return self.value != 0
+
+ def is_postfix(self):
+ return self == UnaryOperator.PostDec or self == UnaryOperator.PostInc
+
+ Invalid = 0
+ PostInc = 1
+ PostDec = 2
+ PreInc = 3
+ PreDec = 4
+ AddrOf = 5
+ Deref = 6
+ Plus = 7
+ Minus = 8
+ Not = 9
+ LNot = 10
+ Real = 11
+ Imag = 12
+ Extension = 13
+ CoAwait = 14
----------------
DeinAlptraum wrote:
No idea why the C-side is capitalized like that, but the bindings should follow
```suggestion
Coawait = 14
```
https://github.com/llvm/llvm-project/pull/219983
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits