<div dir="ltr">I am using the Python wrapper for libclang (cindex.py), and none of my diagnostics have any SourceRanges associated with them. When I create the translation unit, I even make sure that -fprint-source-range-info and -fdiagnostics-print-source-range-info are passed as arguments (though I don't know if that is strictly necessary).<div>
<br></div><div>AFAICT, I believe that the Python calling and configuration code is correct:</div><div><br></div><div>  conf.lib.clang_getDiagnosticNumRanges(self.diag)</div><div><br></div><div><div>  ("clang_getDiagnosticNumRanges",</div>
<div>   [Diagnostic],</div><div>   c_uint),</div></div><div><br></div><div>Are there any suggestions on how to debug this besides writing against libclang directly in C to make sure everything is working there?</div><div>
<br></div><div>Thank you,</div><div>Michael</div><div><br></div></div>