[clang] clang: Add -fno-diagnostics-show-note-snippets flag (PR #216250)
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 14 06:21:27 PDT 2026
nico wrote:
I thought the demo was pretty convincing 😅
The motivation is to have less scrollback.
I suppose this is also useful for filling up agents's context windows less quickly.
But IMHO it's nice for humans too. I try to keep Chromium's build output clean (-Werror everywhere, build steps are only allowed to print when they fail). But clang is pretty wordy when it fails, and I thought I might try to do something about it 🙂
(-fno-caret-diagnostics is too aggressive; I think seeing details about the actual diagnostic is very useful, while snippets for notes are much less useful.)
Does that make sense? Want me to put some of that in the commit description?
https://github.com/llvm/llvm-project/pull/216250
More information about the cfe-commits
mailing list