diff options
| author | Balazs Benics <balazs.benics@sigmatechnology.se> | 2021-11-29 09:56:43 +0100 |
|---|---|---|
| committer | Balazs Benics <balazs.benics@sigmatechnology.se> | 2021-11-29 09:56:43 +0100 |
| commit | 0540485436c4dd225e6a40e6db1240f096d145d3 (patch) | |
| tree | 03445ac1e6255cc365bc59dcb99d1c1ef1739f89 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
| parent | 0685e83534ef8917f277b394da2927cabff8129f (diff) | |
| download | llvm-0540485436c4dd225e6a40e6db1240f096d145d3.zip llvm-0540485436c4dd225e6a40e6db1240f096d145d3.tar.gz llvm-0540485436c4dd225e6a40e6db1240f096d145d3.tar.bz2 | |
[libtooling][clang-tidy] Fix crashing on rendering invalid SourceRanges
Invalid SourceRanges can occur generally if the code does not compile,
thus we expect clang error diagnostics.
Unlike `clang`, `clang-tidy` did not swallow invalid source ranges, but
tried to highlight them, and blow various assertions.
The following two examples produce invalid source ranges, but this is
not a complete list:
void test(x); // error: unknown type name 'x'
struct Foo {
member; // error: C++ requires a type specifier for all declarations
};
Thanks @whisperity helping me fix this.
Reviewed-By: xazax.hun
Differential Revision: https://reviews.llvm.org/D114254
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions
