Home
last modified time | relevance | path

Searched refs:toks (Results 1 – 21 of 21) 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/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_cmdline.c99 struct tgsi_token toks[65536]; in main() local
132 if (!tgsi_text_translate(ptr, toks, ARRAY_SIZE(toks))) in main()
135 tgsi_parse_init(&parse, toks); in main()
137 shader_obj = etna_compile_shader(&specs_gc2000, toks); in main()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_program.c79 struct tgsi_token toks[32]; in assemble_tgsi() local
81 .tokens = toks, in assemble_tgsi()
84 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.c302 struct tgsi_token toks[65536]; in main() local
313 if (!tgsi_text_translate(ptr, toks, ARRAY_SIZE(toks))) in main()
317 tgsi_dump(toks, 0); in main()
319 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/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dlexer_unittest.py186 toks = self._TokensForInput(input_string)
187 assert len(toks) == 1
188 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.y189 str2tok(const char *str, const struct tok *toks) in str2tok() argument
193 for (i = 0; toks[i].s != NULL; i++) { in str2tok()
194 if (pcap_strcasecmp(toks[i].s, str) == 0) in str2tok()
195 return (toks[i].v); in str2tok()
Dgrammar.c235 str2tok(const char *str, const struct tok *toks) in str2tok() argument
239 for (i = 0; toks[i].s != NULL; i++) { in str2tok()
240 if (pcap_strcasecmp(toks[i].s, str) == 0) in str2tok()
241 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.c175 const struct tgsi_token *toks = ureg_get_tokens(ureg, &count); in nine_ureg_tgsi_dump() local
176 tgsi_dump(toks, 0); in nine_ureg_tgsi_dump()
177 ureg_free_tokens(toks); in nine_ureg_tgsi_dump()
Dnine_shader.c3706 const struct tgsi_token *toks = ureg_get_tokens(tx->ureg, &count); in nine_translate_shader() local
3707 tgsi_dump(toks, 0); in nine_translate_shader()
3708 ureg_free_tokens(toks); in nine_translate_shader()
/external/bison/build-aux/
Dtexinfo.tex5487 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
5488 % simply yielding the contents of <toks register>. (We also do this for
7445 % In that case, the hook is \the\toks N-1, and we simply set \toks N-1 to the
7488 {\noexpand\noexpand\noexpand\the\toks\the\paramno}%
7585 % value into a new token list register \toks#N
7642 \def\texinonouternewtoks{\alloc@ 5\toks \toksdef \@cclvi}
/external/libmicrohttpd/doc/
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/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/netperf/doc/
Dtexinfo.tex3774 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
3775 % 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/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