search for: unsaved_fil

Displaying 2 results from an estimated 2 matches for "unsaved_fil".

Did you mean: unsaved_files
2013 Dec 12
0
[LLVMdev] [libclang] Python bindings bug.
...against this? import clang.cindex as cindex from clang.util import get_cursor,get_cursors t = cindex.TranslationUnit options=t.PARSE_DETAILED_PROCESSING_RECORD | t.PARSE_PRECOMPILED_PREAMBLE src1 =""" #define TEST 5 """ tu = t.from_source('t.c',"",unsaved_files=[('t.c',src1)],options=options) cursor = get_cursor(tu.cursor,'TEST') tokens = list(cursor.get_tokens()) print tokens[-1].spelling #Prints 5 OK src2 = """ #define TEST 5 typedef int int8; """ tu = t.from_source('t.c',"",unsaved_file...
2012 Aug 16
2
[LLVMdev] libclang parsing bug
...??? (in /usr/lib/libclang.so.1) ==5926== Address 0xe0 is not stack'd, malloc'd or (recently) free'd ==5926== libclang: crash detected during parsing: { 'source_filename' : '(null)' 'command_line_args' : ['./bug_report', '../main.cpp'], 'unsaved_files' : [], 'options' : 0, } ==5926== ==5926== HEAP SUMMARY: ==5926== in use at exit: 13,326 bytes in 56 blocks ==5926== total heap usage: 20,674 allocs, 20,618 frees, 29,235,096 bytes allocated ==5926== ==5926== Thread 1: ==5926== 47 bytes in 1 blocks are definitely lost in loss r...