Clang: Filter out invalid diagnostic ranges
Apparently libclang might return invalid ranges. Now we discard the invalid ranges. Since there is a diagnostic location (in addition to ranges) the editor will still display an indication for the user. Task-number: QTCREATORBUG-15272 Change-Id: I351e136b9925a53fb2273a394e17873c5533798d Reviewed-by:Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Showing
- src/tools/clangbackend/ipcsource/diagnostic.cpp 6 additions, 4 deletionssrc/tools/clangbackend/ipcsource/diagnostic.cpp
- src/tools/clangbackend/ipcsource/sourcerange.cpp 10 additions, 0 deletionssrc/tools/clangbackend/ipcsource/sourcerange.cpp
- src/tools/clangbackend/ipcsource/sourcerange.h 4 additions, 0 deletionssrc/tools/clangbackend/ipcsource/sourcerange.h
- tests/unit/unittest/data/diagnostic_source_range.cpp 4 additions, 0 deletionstests/unit/unittest/data/diagnostic_source_range.cpp
- tests/unit/unittest/sourcerangetest.cpp 21 additions, 0 deletionstests/unit/unittest/sourcerangetest.cpp
Loading
Please register or sign in to comment