Home | History | Annotate | Download | only in cindex

Lines Matching refs:tu

34     tu = get_tu(kInput)
37 it = tu.cursor.get_children()
78 tu = get_tu('int x;')
79 cursors = list(tu.cursor.get_children())
85 # Delete reference to TU and perform a full GC.
86 del tu
90 # If the TU was destroyed, this should cause a segfault.
95 tu = get_tu(source)
98 for cursor in tu.cursor.get_children():
109 tu = get_tu(source, lang='cpp')
111 cls = get_cursor(tu, 'X')
112 foo = get_cursor(tu, 'foo')
113 bar = get_cursor(tu, 'bar')
122 tu = get_tu('typedef int foo;')
123 typedef = get_cursor(tu, 'foo')
138 tu = get_tu(kParentTest, 'cpp')
139 curs = get_cursors(tu, 'f')
140 decl = get_cursor(tu, 'C')
146 tu = get_tu(kParentTest, 'cpp')
147 curs = get_cursors(tu, 'f')
148 decl = get_cursor(tu, 'C')
152 assert(curs[1].lexical_parent == tu.cursor)
155 tu = get_tu('enum TEST { FOO=1, BAR=2 };')
156 enum = get_cursor(tu, 'TEST')
164 tu = get_tu('enum TEST : long long { FOO=1, BAR=2 };', lang="cpp")
165 enum = get_cursor(tu, 'TEST')
172 tu = get_tu('int i;', lang='objc')
173 i = get_cursor(tu, 'i')
179 tu = get_tu('enum TEST { SPAM=1, EGG, HAM = EGG * 20};')
180 enum = get_cursor(tu, 'TEST')
198 tu = get_tu('enum TEST : long long { SPAM = -1, HAM = 0x10000000000};', lang="cpp")
199 enum = get_cursor(tu, 'TEST')
215 tu = get_tu('int foo (void) __attribute__ ((annotate("here be annotation attribute")));')
217 foo = get_cursor(tu, 'foo')
228 tu = get_tu('int foo();')
229 foo = get_cursor(tu, 'foo')
237 tu = get_tu('int foo(int i);')
238 foo = get_cursor(tu, 'foo')
246 tu = get_tu('void foo(int i, int j);')
247 foo = get_cursor(tu, 'foo')
255 tu = get_tu('void foo(); void bar() { foo(); }')
256 foo = get_cursor(tu, 'foo')
257 bar = get_cursor(tu, 'bar')