| /netbsd-src/external/apache2/llvm/dist/clang/bindings/python/tests/cindex/ |
| H A D | test_diagnostics.py | 17 tu = get_tu('int f0() {}\n') 18 self.assertEqual(len(tu.diagnostics), 1) 19 self.assertEqual(tu.diagnostics[0].severity, Diagnostic.Warning) 20 self.assertEqual(tu.diagnostics[0].location.line, 1) 21 self.assertEqual(tu.diagnostics[0].location.column, 11) 22 self.assertEqual(tu.diagnostics[0].spelling, 27 tu = get_tu('#define A x\nvoid *A = 1;\n') 28 self.assertEqual(len(tu.diagnostics), 1) 29 self.assertEqual(tu.diagnostics[0].severity, Diagnostic.Warning) 30 self.assertEqual(tu.diagnostics[0].location.line, 2) [all …]
|
| H A D | test_cursor.py | 58 tu = get_tu(kInput) 60 it = tu.cursor.get_children() 98 tu = get_tu('int x;') 99 cursors = list(tu.cursor.get_children()) 106 del tu 115 tu = get_tu(source) 118 for cursor in tu.cursor.get_children(): 128 tu = get_tu(source, lang='cpp') 130 cls = get_cursor(tu, 'X') 131 foo = get_cursor(tu, 'foo') [all …]
|
| H A D | test_translation_unit.py | 32 def save_tu(tu): argument 38 tu.save(t.name) 43 def save_tu_pathlike(tu): argument 49 tu.save(str_to_path(t.name)) 56 tu = TranslationUnit.from_source(path) 57 self.assertEqual(tu.spelling, path) 61 tu = get_tu(path) 62 c = tu.cursor 68 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi']) 69 spellings = [c.spelling for c in tu.cursor.get_children()] [all …]
|
| H A D | test_location.py | 26 tu = get_tu(baseInput) 27 one = get_cursor(tu, 'one') 28 two = get_cursor(tu, 'two') 37 tu = get_tu('\n' + baseInput) 38 one = get_cursor(tu, 'one') 39 two = get_cursor(tu, 'two') 48 tu = get_tu(' ' + baseInput) 49 one = get_cursor(tu, 'one') 50 two = get_cursor(tu, 'two') 57 tu = get_tu(baseInput) [all …]
|
| H A D | test_type.py | 43 tu = get_tu(kInput) 45 teststruct = get_cursor(tu, 'teststruct') 119 tu = get_tu('int x;') 120 children = list(tu.cursor.get_children()) 129 del tu 137 tu = get_tu(constarrayInput) 139 teststruct = get_cursor(tu, 'teststruct') 151 tu = get_tu(source) 153 a = get_cursor(tu, 'a') 154 b = get_cursor(tu, 'b') [all …]
|
| H A D | test_tokens.py | 20 tu = get_tu('int i = 5;') 21 r = tu.get_extent('t.c', (0, 9)) 22 tokens = list(tu.get_tokens(extent=r)) 35 tu = get_tu('int foo = 10;') 36 r = tu.get_extent('t.c', (0, 11)) 38 tokens = list(tu.get_tokens(extent=r)) 49 tu = get_tu('int foo = 10;') 50 r = tu.get_extent('t.c', (0, 11)) 52 tokens = list(tu.get_tokens(extent=r))
|
| H A D | test_tls_kind.py | 20 tu = get_tu(""" 26 tls_none = get_cursor(tu.cursor, 'tls_none') 29 tls_dynamic = get_cursor(tu.cursor, 'tls_dynamic') 32 tls_static = get_cursor(tu.cursor, 'tls_static') 40 tu = get_tu(""" 44 tls_declspec_msvc18 = get_cursor(tu.cursor, 'tls_declspec_msvc18') 49 tu = get_tu(""" 53 tls_declspec_msvc19 = get_cursor(tu.cursor, 'tls_declspec_msvc19')
|
| H A D | test_code_completion.py | 36 tu = TranslationUnit.from_source('fake.c', ['-std=c99'], unsaved_files=files, 39 cr = tu.codeComplete('fake.c', 9, 1, unsaved_files=files, include_brief_comments=True) 62 tu = TranslationUnit.from_source(str_to_path('fake.c'), ['-std=c99'], unsaved_files=files, 65 …cr = tu.codeComplete(str_to_path('fake.c'), 9, 1, unsaved_files=files, include_brief_comments=True) 92 tu = TranslationUnit.from_source('fake.cpp', ['-std=c++98'], unsaved_files=files) 94 cr = tu.codeComplete('fake.cpp', 12, 5, unsaved_files=files) 105 cr = tu.codeComplete('fake.cpp', 13, 5, unsaved_files=files)
|
| H A D | test_access_specifiers.py | 20 tu = get_tu(""" 31 test_class = get_cursor(tu, "test_class") 34 public = get_cursor(tu.cursor, "public_member_function") 37 protected = get_cursor(tu.cursor, "protected_member_function") 40 private = get_cursor(tu.cursor, "private_member_function")
|
| H A D | test_linkage.py | 20 tu = get_tu(""" 28 no_linkage = get_cursor(tu.cursor, 'no_linkage') 31 internal = get_cursor(tu.cursor, 'internal') 34 unique_external = get_cursor(tu.cursor, 'unique_external') 37 external = get_cursor(tu.cursor, 'external')
|
| H A D | test_index.py | 23 tu = index.parse(os.path.join(kInputsDir, 'hello.cpp')) 24 self.assertIsInstance(tu, TranslationUnit) 25 tu = index.parse(None, ['-c', os.path.join(kInputsDir, 'hello.cpp')]) 26 self.assertIsInstance(tu, TranslationUnit)
|
| H A D | test_comment.py | 27 tu = TranslationUnit.from_source('fake.c', ['-std=c99'], unsaved_files=files, 29 test1 = get_cursor(tu, 'test1') 37 test2 = get_cursor(tu, 'test2') 43 f = get_cursor(tu, 'f')
|
| H A D | test_file.py | 14 tu = index.parse('t.c', unsaved_files = [('t.c', "")]) 15 file = File.from_name(tu, "t.c")
|
| H A D | test_exception_specification_kind.py | 27 tu = get_tu(source, lang='cpp', flags=['-std=c++14']) 29 declarations = find_function_declarations(tu.cursor)
|
| /netbsd-src/external/bsd/ipf/dist/lib/ |
| H A D | ipf_dotuning.c | 21 ipftune_t tu; local 24 bzero((char *)&tu, sizeof(tu)); 26 obj.ipfo_size = sizeof(tu);; 27 obj.ipfo_ptr = (void *)&tu; 38 if (tu.ipft_cookie == NULL) 41 tu.ipft_name[sizeof(tu.ipft_name) - 1] = '\0'; 42 printtunable(&tu); 45 tu.ipft_cookie = NULL; 47 strncpy(tu.ipft_name, s, sizeof(tu.ipft_name)); 48 if (sscanf(t, "%lu", &tu.ipft_vlong) == 1) { [all …]
|
| /netbsd-src/usr.bin/make/unit-tests/ |
| H A D | varmod-to-separator.mk | 19 .if ${WORDS:ts/:tu} != "ONE/TWO/THREE/FOUR/FIVE/SIX" 25 .if ${WORDS:ts::tu} != "ONE:TWO:THREE:FOUR:FIVE:SIX" 32 .if ${WORDS:ts:tu} != "ONETWOTHREEFOURFIVESIX" 36 # Applying the :tu modifier first and then the :ts modifier does not change 44 .if ${WORDS:tu:ts} != "ONETWOTHREEFOURFIVESIX" 51 .if ${WORDS:tu:ts/} != "ONE/TWO/THREE/FOUR/FIVE/SIX" 62 # As in the ${WORDS:tu:ts} example above, the separator is empty. 140 .if ${WORDS:[1..3]:ts\012:tu} != "ONE${.newline}TWO${.newline}THREE" 145 .if ${WORDS:[1..2]:ts\000000000000000000000000012:tu} != "ONE${.newline}TWO" 153 # expect+1: Invalid character number at "400:tu}" [all...] |
| H A D | varmod-to-upper.mk | 6 .if ${:UUPPER:tu} != "UPPER" 10 .if ${:Ulower:tu} != "LOWER" 14 .if ${:UMixeD case.:tu} != "MIXED CASE." 20 mod-tu-space: 21 @echo $@: ${a b:L:tu:Q}
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
| H A D | etime.c | 35 GFC_REAL_4 tu, ts, tt, *tp; in etime_sub() local 43 tu = (GFC_REAL_4)(user_sec + 1.e-6 * user_usec); in etime_sub() 45 tt = tu + ts; in etime_sub() 49 tu = (GFC_REAL_4)-1.0; in etime_sub() 56 *tp = tu; in etime_sub()
|
| H A D | dtime.c | 44 GFC_REAL_4 tu, ts, tt; in dtime_sub() local 52 tu = (GFC_REAL_4) ((user_sec - us) + 1.e-6 * (user_usec - uu)); in dtime_sub() 54 tt = tu + ts; in dtime_sub() 62 tu = -1; in dtime_sub() 69 *tp = tu; in dtime_sub()
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
| H A D | etime.c | 35 GFC_REAL_4 tu, ts, tt, *tp; in etime_sub() local 43 tu = (GFC_REAL_4)(user_sec + 1.e-6 * user_usec); in etime_sub() 45 tt = tu + ts; in etime_sub() 49 tu = (GFC_REAL_4)-1.0; in etime_sub() 56 *tp = tu; in etime_sub()
|
| H A D | dtime.c | 44 GFC_REAL_4 tu, ts, tt; in dtime_sub() local 52 tu = (GFC_REAL_4) ((user_sec - us) + 1.e-6 * (user_usec - uu)); in dtime_sub() 54 tt = tu + ts; in dtime_sub() 62 tu = -1; in dtime_sub() 69 *tp = tu; in dtime_sub()
|
| /netbsd-src/external/apache2/llvm/dist/clang/bindings/python/examples/cindex/ |
| H A D | cindex-dump.py | 77 tu = index.parse(None, args) 78 if not tu: 81 pprint(('diags', [get_diag_info(d) for d in tu.diagnostics])) 82 pprint(('nodes', get_info(tu.cursor)))
|
| H A D | cindex-includes.py | 32 tu = index.parse(None, args) 33 if not tu: 43 for i in tu.get_includes():
|
| /netbsd-src/share/mk/ |
| H A D | bsd.prog.mk | 198 .ifndef LIB${_lib:tu} 199 LIB${_lib:tu}= ${DESTDIR}/usr/lib/lib${_lib:S/xx/++/:S/atf_c/atf-c/}.a 200 .MADE: ${LIB${_lib:tu}} # Note: ${DESTDIR} will be expanded 262 .ifndef LIB${_lib:tu} 263 LIB${_lib:tu}= ${DESTDIR}${X11USRLIBDIR}/lib${_lib}.a 264 .MADE: ${LIB${_lib:tu}} # Note: ${DESTDIR} will be expanded 270 .ifndef LIBXCB_${_lib:tu} 271 LIBXCB_${_lib:tu}= ${DESTDIR}${X11USRLIBDIR}/libxcb-${_lib}.a 272 .MADE: ${LIBXCB_${_lib:tu}} # Note: ${DESTDIR} will be expanded
|
| /netbsd-src/external/apache2/llvm/dist/clang/bindings/python/clang/ |
| H A D | cindex.py | 252 def from_position(tu, file, line, column): argument 257 return conf.lib.clang_getLocation(tu, file, line, column) 260 def from_offset(tu, file, offset): argument 267 return conf.lib.clang_getLocationForOffset(tu, file, offset) 532 def __init__(self, tu, memory, count): argument 533 self._tu = tu 541 def get_tokens(tu, extent): argument 550 conf.lib.clang_tokenize(tu, extent, byref(tokens_memory), 562 token_group = TokenGroup(tu, tokens_memory, tokens_count) 568 token._tu = tu [all …]
|