[clang] [clang-tools-extra] [lldb] [clang][TypePrinter] Unify printing of anonymous/unnamed tag types (PR #169445)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 8 09:28:02 PST 2025


================
@@ -121,6 +123,7 @@ struct PrintingPolicy {
   /// \endcode
   LLVM_PREFERRED_TYPE(bool)
   unsigned SuppressTagKeyword : 1;
+  unsigned SuppressTagKeywordInAnonymousTagNames : 1;
----------------
mizvekov wrote:

Yeah hold on, I thought this would be a three valued enum, but I see it is actually a four valued one.

These are controlling two separate things and we are tying them up unnecessarily.

Maybe two bools instead then, named:
* SuppressTagKeywordInAnonNames
* SuppressTagKeywordInElaboratedNames

Sorry for the confusion!

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


More information about the cfe-commits mailing list