This fixes a case where we show diagnostics on arbitrary lines, in an
internal codebase.
Open for ideas on unittesting this.
|  Differential  D64863  
[clangd] Ignore diags from builtin files Authored by kadircet on Jul 17 2019, 6:18 AM. 
Details 
 This fixes a case where we show diagnostics on arbitrary lines, in an Open for ideas on unittesting this. 
Diff Detail 
 Event TimelineComment Actions Thanks for switching to SM everywhere, makes the code much more readable! A rough proposal for testing this: // test.cpp // RUN: clang++ -DFOO=b ./test.cpp int a = FOO; This produces a note inside a <command line> buffer. We could probably have something similar pointing into a <builtin> 
 
 Comment Actions 
 
 
 
 
 
 Comment Actions 
 
 Comment Actions LGTM. Many thanks for fixing this. 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NIT: add a comment that it was adjustDiagFromHeader that made the adjustment.