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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -