The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
27.85k
stars
11.47k
forks
source link
Segmentation fault when assessing diagnostics via CodeCompletionResults in Python bindings #36566
Open
llvmbot opened 6 years ago
Extended Description
Recorded terminal session with demonstration of the bug: https://asciinema.org/a/EP1pXTWvy4z3OwUJaN4PH5FCh
Test case:
On my local machine I fixed this by replacing
DiagnosticsIter.__getitem__
with this code:and change definition of
clang_codeCompleteGetDiagnostic
to this:p.s.: sorry, I don't figure out how to highlight code blocks here