[clang] Add retrieval of unary operator spelling and python bindings (PR #219983)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 21 00:32:35 PDT 2026


================
@@ -2474,6 +2484,36 @@ def is_assignment(self):
     Comma = 33
 
 
+class UnaryOperator(BaseEnumeration):
+    """A UnaryOperator describes an expression's of unary operator kind."""
----------------
ItsRumo wrote:

I was struggling with that docstring for a while... what do you think about using the same docstring as the C enum ("Describes the kind of unary operators.")?

https://github.com/llvm/llvm-project/pull/219983


More information about the cfe-commits mailing list