[clang] [clang] NFCI: improve TemplateArgument and TemplateName dump methods (PR #94905)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 10 06:25:30 PDT 2024
================
@@ -360,3 +360,34 @@ LLVM_DUMP_METHOD void ConceptReference::dump(raw_ostream &OS) const {
ASTDumper P(OS, Ctx, Ctx.getDiagnostics().getShowColors());
P.Visit(this);
}
+
+//===----------------------------------------------------------------------===//
+// TemplateName method implementations
+//===----------------------------------------------------------------------===//
+
+// FIXME: These are using the TemplateArgument dumper.
----------------
mizvekov wrote:
Well you are going to hit dump on a TemplateName, and it's going to dump a TemplateArgument of template kind, which is misleading and incorrect, but still helpful in the narrow context this is a debugging aid not actually used in production.
https://github.com/llvm/llvm-project/pull/94905
More information about the cfe-commits
mailing list