Sirraide wrote:

> The exact nesting information can only be obtained at the point where a 
> diagnostic is constructed — which always corresponds to an AST / Sema 
> call-stack depth. Even if we modify DiagnosticsEngine, we still wouldn’t have 
> access to the precise nesting structure.

Yeah, maybe I phrased it poorly but this is more or less what I meant: if we 
want to support nested diagnostics, we need to 
1. somehow encode that nesting information in the actual diagnostics that get 
sent to the various consumers;
2. make use of that information when we render the diagnostic (to the terminal, 
sarif, etc.);
3. update all of the places where we issue a diagnostic to actually provide 
nesting information (this is the tedious part)

https://github.com/llvm/llvm-project/pull/174106
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to