[clang] [llvm] Add source file name for template instantiations in -ftime-trace (PR #98320)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 17 07:31:12 PDT 2024


================
@@ -3430,6 +3430,7 @@ Sema::InstantiateClass(SourceLocation PointOfInstantiation,
     llvm::raw_string_ostream OS(Name);
     Instantiation->getNameForDiagnostic(OS, getPrintingPolicy(),
                                         /*Qualified=*/true);
+    OS << ", file:" << SourceMgr.getFilename(Instantiation->getLocation());
----------------
usx95 wrote:

Done.

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


More information about the cfe-commits mailing list