[clang] [Parser][BoundsSafety] Print attribute as macro if it's system defined (PR #107619)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 16 07:07:26 PDT 2024


================
@@ -493,9 +500,11 @@ class ParsedAttr final
   /// Set the macro identifier info object that this parsed attribute was
   /// declared in if it was declared in a macro. Also set the expansion location
   /// of the macro.
-  void setMacroIdentifier(IdentifierInfo *MacroName, SourceLocation Loc) {
+  void setMacroIdentifier(IdentifierInfo *MacroName, SourceLocation Loc,
+                          bool PrintAsMac) {
----------------
erichkeane wrote:

```suggestion
                          bool PrintAsMacro) {
```

Also, document this argument/what 'PrintAsMacro' means in the comment above this.

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


More information about the cfe-commits mailing list