Lines Matching refs:source
6 def get_tu(source, lang='c', all_warnings=False, flags=[]):
7 """Obtain a translation unit from source and language.
9 By default, the translation unit is created from source file "t.<ext>"
31 source)])
33 def get_cursor(source, spelling):
34 """Obtain a cursor from a source object.
37 spelling within a source. The first argument can be either a
43 root_cursor = source if isinstance(source, Cursor) else source.cursor
51 def get_cursors(source, spelling):
52 """Obtain all cursors from a source object with a specific spelling.
55 specific spelling within a source. The first argument can be either a
61 root_cursor = source if isinstance(source, Cursor) else source.cursor