================
@@ -2377,6 +2385,18 @@ def has_attrs(self) -> bool:
         """
         return bool(conf.lib.clang_Cursor_hasAttrs(self))
 
+    def is_macro_function(self):
+        """
+        Check if the field is a macro function.
+        """
+        return conf.lib.clang_Cursor_isMacroFunctionLike(self)
+
+    def is_macro_builtin(self):
+        """
+        Check if the field is a macro function.
+        """
+        return conf.lib.clang_Cursor_isMacroBuiltin(self)
+
----------------
DeinAlptraum wrote:

These functions require `cursor_null_guard` decoration

https://github.com/llvm/llvm-project/pull/81684
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to