[clang] [clang] Ignore inline namespace for `hasName` (PR #109147)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 11 05:02:33 PDT 2024


Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=,
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=,
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=,
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=,
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/109147 at github.com>


================
@@ -141,10 +143,11 @@ struct PrintingPolicy {
   unsigned SuppressUnwrittenScope : 1;
 
   /// Suppress printing parts of scope specifiers that correspond
-  /// to inline namespaces, where the name is unambiguous with the specifier
+  /// to inline namespaces.
+  /// If Redudant, where the name is unambiguous with the specifier removed.
+  /// If All, even if the name is ambiguous with the specifier
   /// removed.
-  LLVM_PREFERRED_TYPE(bool)
-  unsigned SuppressInlineNamespace : 1;
+  SuppressInlineNamespaceMode SuppressInlineNamespace : 2;
----------------
AaronBallman wrote:

```suggestion
  LLVM_PREFERRD_TYPE(SuppressInlineNamespaceMode)
  unsigned SuppressInlineNamespace : 2;
```

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


More information about the cfe-commits mailing list