================
@@ -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());
----------------
ilya-biryukov wrote:

Would it be possible to add it in a structured manner rather than as a 
substring?
We are outputting JSON after all, it would be much more convenient to keep 
`args.detail` as is and add another one (e.g. `args.detail_file`)?

https://github.com/llvm/llvm-project/pull/98320
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to