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

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 5 16:59:19 PST 2025


================
@@ -4954,19 +4959,76 @@ void TagDecl::setQualifierInfo(NestedNameSpecifierLoc QualifierLoc) {
   }
 }
 
+void TagDecl::printAnonymousTagDecl(llvm::raw_ostream &OS,
+                                    const PrintingPolicy &Policy) const {
----------------
Michael137 wrote:

I'd personally prefer it as a helper just because we also do this stuff with printing source locations, making the function quite chunky already. And I'm planning on adding some additional logic to it in a follow-up patch. But happy to still inline it if you disagree

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


More information about the lldb-commits mailing list