[clang] [clang] Apply internal buffering to clang diagnostics printing (PR #113440)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 23 08:07:37 PDT 2024


================
@@ -133,12 +133,16 @@ void TextDiagnosticPrinter::HandleDiagnostic(DiagnosticsEngine::Level Level,
   // diagnostics in a context that lacks language options, a source manager, or
   // other infrastructure necessary when emitting more rich diagnostics.
   if (!Info.getLocation().isValid()) {
----------------
Fznamznon wrote:

No, it exists for all of them. The handling is a bit different for diagnostics without valid locations, so I had to modify this place and `TextDiagnostic` class to handle the case with valid locations.

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


More information about the cfe-commits mailing list