libclang python binding don't return any of fixits -
i want dump diagnostics , fixits translation unit (tu). below code don't works.
def dump_fixits(): """return diagnostics fixits of translation unit.""" result = [] diag in tu.diagnostics: diag_fixits = [repr(it) in diag.fixits] location = diag.location file = "" if location.file none else location.file.name result.append((file + ":" + str(location.line) + ":" + str(location.column) + ": " + severity_map[diag.severity] + ": " + diag.spelling, diag_fixits)) return result
(i'm using llvm 3.4)
i noticed conf.lib.clang_getdiagnosticnumfixits()
returns 0
everytime.
is there of solutions?
sorry misunderstood fixit. thought fixit can spell miss isn't. close question. thank you.
Comments
Post a Comment