Searched refs:tu (Results 1 - 25 of 52) sorted by relevance

123

/external/clang/bindings/python/tests/cindex/
H A Dtest_diagnostics.py7 tu = get_tu('int f0() {}\n')
8 assert len(tu.diagnostics) == 1
9 assert tu.diagnostics[0].severity == Diagnostic.Warning
10 assert tu.diagnostics[0].location.line == 1
11 assert tu.diagnostics[0].location.column == 11
12 assert (tu.diagnostics[0].spelling ==
17 tu = get_tu('#define A x\nvoid *A = 1;\n')
18 assert len(tu.diagnostics) == 1
19 assert tu.diagnostics[0].severity == Diagnostic.Warning
20 assert tu
[all...]
H A Dtest_translation_unit.py21 tu = TranslationUnit.from_source(path)
22 assert tu.spelling == path
26 tu = get_tu(path)
27 c = tu.cursor
33 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
34 spellings = [c.spelling for c in tu.cursor.get_children()]
40 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
41 tu.reparse()
42 spellings = [c.spelling for c in tu.cursor.get_children()]
47 tu
[all...]
H A Dtest_access_specifiers.py12 tu = get_tu("""
23 test_class = get_cursor(tu, "test_class")
26 public = get_cursor(tu.cursor, "public_member_function")
29 protected = get_cursor(tu.cursor, "protected_member_function")
32 private = get_cursor(tu.cursor, "private_member_function")
H A Dtest_cursor.py31 tu = get_tu(kInput)
33 it = tu.cursor.get_children()
71 tu = get_tu('int x;')
72 cursors = list(tu.cursor.get_children())
79 del tu
88 tu = get_tu(source)
91 for cursor in tu.cursor.get_children():
102 tu = get_tu(source, lang='cpp')
104 cls = get_cursor(tu, 'X')
105 foo = get_cursor(tu, 'fo
[all...]
H A Dtest_location.py16 tu = get_tu(baseInput)
17 one = get_cursor(tu, 'one')
18 two = get_cursor(tu, 'two')
27 tu = get_tu('\n' + baseInput)
28 one = get_cursor(tu, 'one')
29 two = get_cursor(tu, 'two')
38 tu = get_tu(' ' + baseInput)
39 one = get_cursor(tu, 'one')
40 two = get_cursor(tu, 'two')
47 tu
[all...]
H A Dtest_comment.py18 tu = TranslationUnit.from_source('fake.c', ['-std=c99'], unsaved_files=files,
20 test1 = get_cursor(tu, 'test1')
28 test2 = get_cursor(tu, 'test2')
34 f = get_cursor(tu, 'f')
H A Dtest_tokens.py13 tu = get_tu('int i = 5;')
14 r = tu.get_extent('t.c', (0, 9))
15 tokens = list(tu.get_tokens(extent=r))
28 tu = get_tu('int foo = 10;')
29 r = tu.get_extent('t.c', (0, 11))
31 tokens = list(tu.get_tokens(extent=r))
42 tu = get_tu('int foo = 10;')
43 r = tu.get_extent('t.c', (0, 11))
45 tokens = list(tu.get_tokens(extent=r))
H A Dtest_file.py5 tu = index.parse('t.c', unsaved_files = [('t.c', "")])
6 file = File.from_name(tu, "t.c")
H A Dtest_index.py14 tu = index.parse(os.path.join(kInputsDir, 'hello.cpp'))
15 assert isinstance(tu, TranslationUnit)
H A Dtest_code_completion.py25 tu = TranslationUnit.from_source('fake.c', ['-std=c99'], unsaved_files=files,
28 cr = tu.codeComplete('fake.c', 9, 1, unsaved_files=files, include_brief_comments=True)
55 tu = TranslationUnit.from_source('fake.cpp', ['-std=c++98'], unsaved_files=files)
57 cr = tu.codeComplete('fake.cpp', 12, 5, unsaved_files=files)
68 cr = tu.codeComplete('fake.cpp', 13, 5, unsaved_files=files)
H A Dtest_type.py28 tu = get_tu(kInput)
30 teststruct = get_cursor(tu, 'teststruct')
82 tu = get_tu('int x;')
83 children = list(tu.cursor.get_children())
92 del tu
105 tu = get_tu(constarrayInput)
107 teststruct = get_cursor(tu, 'teststruct')
119 tu = get_tu(source)
121 a = get_cursor(tu, 'a')
122 b = get_cursor(tu, '
[all...]
/external/clang/bindings/python/examples/cindex/
H A Dcindex-includes.py33 tu = index.parse(None, args)
34 if not tu:
44 for i in tu.get_includes():
H A Dcindex-dump.py78 tu = index.parse(None, args)
79 if not tu:
82 pprint(('diags', map(get_diag_info, tu.diagnostics)))
83 pprint(('nodes', get_info(tu.cursor)))
/external/clang/tools/libclang/
H A DCXTranslationUnit.h68 CXTUOwner(CXTranslationUnitImpl *tu) : TU(tu) { } argument
/external/yaffs2/yaffs2/
H A Dyaffs_tagscompat.c123 yaffs_TagsUnion *tu = (yaffs_TagsUnion *) tagsPtr; local
127 sparePtr->tagByte0 = tu->asBytes[0];
128 sparePtr->tagByte1 = tu->asBytes[1];
129 sparePtr->tagByte2 = tu->asBytes[2];
130 sparePtr->tagByte3 = tu->asBytes[3];
131 sparePtr->tagByte4 = tu->asBytes[4];
132 sparePtr->tagByte5 = tu->asBytes[5];
133 sparePtr->tagByte6 = tu->asBytes[6];
134 sparePtr->tagByte7 = tu->asBytes[7];
140 yaffs_TagsUnion *tu local
[all...]
/external/clang/test/Sema/
H A Dtransparent-union.c18 TU tu; local
19 tu.ip = ip;
/external/bluetooth/bluedroid/bta/gatt/
H A Dbta_gatts_utils.c195 UINT8 su[LEN_UUID_128], tu[LEN_UUID_128]; local
223 bta_gatt_convert_uuid16_to_uuid128(tu, tar.uu.uuid16);
224 pt = tu;
/external/chromium_org/third_party/polymer/components-chromium/paper-ripple/
H A Dpaper-ripple-extracted.js24 function waveOpacityFn(td, tu, anim) {
27 var touchUp = tu / 1000;
30 if (tu <= 0) { // before touch up
36 function waveOuterOpacityFn(td, tu, anim) {
39 var touchUp = tu / 1000;
44 var waveOpacity = waveOpacityFn(td, tu, anim);
H A Draw-extracted.js32 function waveOpacityFn(td, tu) {
35 var touchUp = tu / 1000;
38 if (tu <= 0) { // before touch up
44 function waveOuterOpacityFn(td, tu) {
47 var touchUp = tu / 1000;
52 var waveOpacity = waveOpacityFn(td, tu);
57 function waveGravityToCenterPercentageFn(td, tu, r) {
60 var touchUp = tu / 1000;
/external/yaffs2/yaffs2/utils/
H A Dmkyaffsimage.c189 yaffs_TagsUnion *tu = (yaffs_TagsUnion *)tagsPtr; local
193 sparePtr->tagByte0 = tu->asBytes[0];
194 sparePtr->tagByte1 = tu->asBytes[1];
195 sparePtr->tagByte2 = tu->asBytes[2];
196 sparePtr->tagByte3 = tu->asBytes[3];
197 sparePtr->tagByte4 = tu->asBytes[4];
198 sparePtr->tagByte5 = tu->asBytes[5];
199 sparePtr->tagByte6 = tu->asBytes[6];
200 sparePtr->tagByte7 = tu->asBytes[7];
/external/llvm/test/Bindings/Ocaml/
H A Dexecutionengine.ml44 let tu = (1, 2) in
45 let ptrgv = GenericValue.of_pointer tu in
46 assert (tu = GenericValue.as_pointer ptrgv);
/external/wpa_supplicant_8/hostapd/src/p2p/
H A Dp2p_dev_disc.c312 unsigned int tu; local
323 tu = 100;
324 if (p2p->cfg->start_listen(p2p->cfg->cb_ctx, rx_freq, 1024 * tu / 1000,
/external/wpa_supplicant_8/src/p2p/
H A Dp2p_dev_disc.c312 unsigned int tu; local
323 tu = 100;
324 if (p2p->cfg->start_listen(p2p->cfg->cb_ctx, rx_freq, 1024 * tu / 1000,
/external/wpa_supplicant_8/wpa_supplicant/src/p2p/
H A Dp2p_dev_disc.c312 unsigned int tu; local
323 tu = 100;
324 if (p2p->cfg->start_listen(p2p->cfg->cb_ctx, rx_freq, 1024 * tu / 1000,
/external/clang/bindings/python/clang/
H A Dcindex.py180 def from_position(tu, file, line, column):
185 return conf.lib.clang_getLocation(tu, file, line, column)
188 def from_offset(tu, file, offset):
191 tu -- TranslationUnit file belongs to
195 return conf.lib.clang_getLocationForOffset(tu, file, offset)
420 def __init__(self, tu, memory, count):
421 self._tu = tu
429 def get_tokens(tu, extent):
438 conf.lib.clang_tokenize(tu, extent, byref(tokens_memory),
450 token_group = TokenGroup(tu, tokens_memor
[all...]

Completed in 3719 milliseconds

123