Home
last modified time | relevance | path

Searched refs:toks (Results 1 – 25 of 25) sorted by relevance

/external/clang/unittests/Lex/
DPPConditionalDirectiveRecordTest.cpp108 std::vector<Token> toks; in TEST_F() local
114 toks.push_back(tok); in TEST_F()
118 ASSERT_EQ(10U, toks.size()); in TEST_F()
121 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F()
123 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F()
125 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F()
127 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F()
129 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F()
131 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F()
133 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F()
[all …]
DLexerTest.cpp75 std::vector<Token> toks; in Lex() local
81 toks.push_back(tok); in Lex()
84 return toks; in Lex()
89 auto toks = Lex(Source); in CheckLex() local
90 EXPECT_EQ(ExpectedTokens.size(), toks.size()); in CheckLex()
92 EXPECT_EQ(ExpectedTokens[i], toks[i].getKind()); in CheckLex()
95 return toks; in CheckLex()
126 std::vector<Token> toks = CheckLex("#define M(x) x\n" in TEST_F() local
130 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2])); in TEST_F()
138 std::vector<Token> toks = CheckLex("#define M(x) x\n" in TEST_F() local
[all …]
/external/clang/unittests/Basic/
DSourceManagerTest.cpp90 std::vector<Token> toks; in TEST_F() local
96 toks.push_back(tok); in TEST_F()
100 ASSERT_EQ(3U, toks.size()); in TEST_F()
101 ASSERT_EQ(tok::l_square, toks[0].getKind()); in TEST_F()
102 ASSERT_EQ(tok::identifier, toks[1].getKind()); in TEST_F()
103 ASSERT_EQ(tok::r_square, toks[2].getKind()); in TEST_F()
105 SourceLocation lsqrLoc = toks[0].getLocation(); in TEST_F()
106 SourceLocation idLoc = toks[1].getLocation(); in TEST_F()
107 SourceLocation rsqrLoc = toks[2].getLocation(); in TEST_F()
210 std::vector<Token> toks; in TEST_F() local
[all …]
/external/yapf/yapftests/
Dunwrapped_line_test.py32 toks = _MakeFormatTokenList([(token.DOT, '.'), (token.VBAR, '|')])
33 uwl = unwrapped_line.UnwrappedLine(20, toks)
38 toks = _MakeFormatTokenList([(token.DOT, '.'), (token.LPAR, '('),
40 uwl = unwrapped_line.UnwrappedLine(20, toks)
46 toks = _MakeFormatTokenList([(token.DOT, '.'), (token.LPAR, '('),
48 uwl = unwrapped_line.UnwrappedLine(2, toks)
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/
DSyncDebuggee.java44 StreamTokenizer toks = new StreamTokenizer(new FileReader("/proc/self/stat")); in getPid() local
45 toks.parseNumbers(); in getPid()
46 if (toks.nextToken() != StreamTokenizer.TT_NUMBER) { in getPid()
51 return Integer.toString((int)toks.nval); in getPid()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_cmdline.c103 struct tgsi_token toks[65536]; in main() local
150 if (!tgsi_text_translate(ptr, toks, ARRAY_SIZE(toks))) in main()
153 tgsi_parse_init(&parse, toks); in main()
156 s.tokens = toks; in main()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_program.c81 struct tgsi_token toks[32]; in assemble_tgsi() local
83 .tokens = toks, in assemble_tgsi()
86 bool ret = tgsi_text_translate(src, toks, ARRAY_SIZE(toks)); in assemble_tgsi()
/external/ipsec-tools/src/racoon/
Dgssapi.c448 vchar_t *toks; in gssapi_get_itokens() local
461 toks = vmalloc(len); in gssapi_get_itokens()
462 if (toks == 0) in gssapi_get_itokens()
464 p = (char *)toks->v; in gssapi_get_itokens()
470 *tokens = toks; in gssapi_get_itokens()
483 vchar_t *toks; in gssapi_get_rtokens() local
502 toks = vmalloc(len); in gssapi_get_rtokens()
503 if (toks == 0) in gssapi_get_rtokens()
505 p = (char *)toks->v; in gssapi_get_rtokens()
511 *tokens = toks; in gssapi_get_rtokens()
/external/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_cmdline.c371 struct tgsi_token toks[65536]; in main() local
382 if (!tgsi_text_translate(ptr, toks, ARRAY_SIZE(toks))) in main()
386 tgsi_dump(toks, 0); in main()
388 nir = ir3_tgsi_to_nir(toks); in main()
/external/iw/
Dwowlan.c134 char *len, *offs, *toks; in wowlan_parse_tcp_file() local
143 toks = strchr(offs, ','); in wowlan_parse_tcp_file()
144 if (!toks) in wowlan_parse_tcp_file()
146 *toks = 0; in wowlan_parse_tcp_file()
147 toks++; in wowlan_parse_tcp_file()
149 stream = parse_hex(toks, &stream_len); in wowlan_parse_tcp_file()
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dlexer_unittest.py183 toks = self._TokensForInput(input_string)
184 assert len(toks) == 1
185 return toks[0]
/external/selinux/libselinux/src/
Davc.c600 static unsigned long toks = 10 * 5 * HZ;
607 toks += now - last_msg;
609 if (toks > AVC_MSG_BURST)
610 toks = AVC_MSG_BURST;
611 if (toks >= AVC_MSG_COST) {
614 toks -= AVC_MSG_COST;
/external/libpcap/
Dgrammar.y208 str2tok(const char *str, const struct tok *toks) in str2tok() argument
212 for (i = 0; toks[i].s != NULL; i++) { in str2tok()
213 if (pcap_strcasecmp(toks[i].s, str) == 0) in str2tok()
214 return (toks[i].v); in str2tok()
Dgrammar.c254 str2tok(const char *str, const struct tok *toks) in str2tok() argument
258 for (i = 0; toks[i].s != NULL; i++) { in str2tok()
259 if (pcap_strcasecmp(toks[i].s, str) == 0) in str2tok()
260 return (toks[i].v); in str2tok()
/external/v8/benchmarks/
Dearley-boyer.js3972 var toks;
4509 (toks = sc_toks_36);
4602 var toks;
4607toks = (parse[(6)])), (states = (parse[(7)])), (BgL_sc_derivzd2treesza2_132z70 = (parse[(9)])), (B…
4612 var toks;
4616toks = (parse[(6)])), (states = (parse[(7)])), (BgL_sc_nbzd2derivzd2treesza2_133za2 = (parse[(10)]…
/external/mesa3d/src/gallium/state_trackers/nine/
Dnine_ff.c174 const struct tgsi_token *toks = ureg_get_tokens(ureg, NULL); in nine_ureg_tgsi_dump() local
175 tgsi_dump(toks, 0); in nine_ureg_tgsi_dump()
176 ureg_free_tokens(toks); in nine_ureg_tgsi_dump()
Dnine_shader.c3719 const struct tgsi_token *toks = ureg_get_tokens(tx->ureg, NULL); in nine_translate_shader() local
3720 tgsi_dump(toks, 0); in nine_translate_shader()
3721 ureg_free_tokens(toks); in nine_translate_shader()
/external/python/setuptools/setuptools/_vendor/
Dpyparsing.py983 def _defaultSuccessDebugAction( instring, startloc, endloc, expr, toks ): argument
984 print ("Matched " + _ustr(expr) + " -> " + str(toks.asList()))
4751 def verifyCol(strg,locn,toks): argument
/external/python/setuptools/pkg_resources/_vendor/
Dpyparsing.py983 def _defaultSuccessDebugAction( instring, startloc, endloc, expr, toks ): argument
984 print ("Matched " + _ustr(expr) + " -> " + str(toks.asList()))
4751 def verifyCol(strg,locn,toks): argument
/external/python/cpython2/Modules/_ctypes/libffi/
Dtexinfo.tex5488 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
5489 % simply yielding the contents of <toks register>. (We also do this for
7446 % In that case, the hook is \the\toks N-1, and we simply set \toks N-1 to the
7489 {\noexpand\noexpand\noexpand\the\toks\the\paramno}%
7586 % value into a new token list register \toks#N
7643 \def\texinonouternewtoks{\alloc@ 5\toks \toksdef \@cclvi}
/external/libffi/
Dtexinfo.tex5488 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
5489 % simply yielding the contents of <toks register>. (We also do this for
7446 % In that case, the hook is \the\toks N-1, and we simply set \toks N-1 to the
7489 {\noexpand\noexpand\noexpand\the\toks\the\paramno}%
7586 % value into a new token list register \toks#N
7643 \def\texinonouternewtoks{\alloc@ 5\toks \toksdef \@cclvi}
/external/e2fsprogs/doc/
Dtexinfo.tex4189 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
4190 % simply yielding the contents of <toks register>. (We also do this for
/external/e2fsprogs/lib/et/
Dtexinfo.tex4189 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
4190 % simply yielding the contents of <toks register>. (We also do this for
/external/cldr/tools/java/org/unicode/cldr/util/data/transforms/
Den-IPA.txt13906 $x{chateaux → ʃəto ; # ʃætoks tʃætjuks
Dinternal_raw_IPA-old.txt197316 toks %9926