/external/clang/unittests/Lex/ |
D | PPConditionalDirectiveRecordTest.cpp | 108 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 …]
|
D | LexerTest.cpp | 76 std::vector<Token> toks; in CheckLex() local 82 toks.push_back(tok); in CheckLex() 85 EXPECT_EQ(ExpectedTokens.size(), toks.size()); in CheckLex() 87 EXPECT_EQ(ExpectedTokens[i], toks[i].getKind()); in CheckLex() 90 return toks; in CheckLex() 121 std::vector<Token> toks = CheckLex("#define M(x) x\n" in TEST_F() local 125 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2])); in TEST_F() 133 std::vector<Token> toks = CheckLex("#define M(x) x\n" in TEST_F() local 137 EXPECT_EQ("M(i)", getSourceText(toks[0], toks[0])); in TEST_F() 146 std::vector<Token> toks = CheckLex("#define M(x) x\n" in TEST_F() local [all …]
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 90 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() 207 std::vector<Token> toks; in TEST_F() local [all …]
|
/external/ipsec-tools/src/racoon/ |
D | gssapi.c | 448 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/iw/ |
D | wowlan.c | 134 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/chromium-trace/catapult/third_party/coverage/coverage/ |
D | phystokens.py | 18 def phys_tokens(toks): argument 31 for ttype, ttext, (slineno, scol), (elineno, ecol), ltext in toks:
|
/external/libselinux/src/ |
D | avc.c | 560 static unsigned long toks = 10 * 5 * HZ; 567 toks += now - last_msg; 569 if (toks > AVC_MSG_BURST) 570 toks = AVC_MSG_BURST; 571 if (toks >= AVC_MSG_COST) { 574 toks -= AVC_MSG_COST;
|
/external/selinux/libselinux/src/ |
D | avc.c | 600 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/ |
D | grammar.y | 161 str2tok(const char *str, const struct tok *toks) in str2tok() argument 165 for (i = 0; toks[i].s != NULL; i++) { in str2tok() 166 if (pcap_strcasecmp(toks[i].s, str) == 0) in str2tok() 167 return (toks[i].v); in str2tok()
|
D | grammar.c | 234 str2tok(const char *str, const struct tok *toks) in str2tok() argument 238 for (i = 0; toks[i].s != NULL; i++) { in str2tok() 239 if (pcap_strcasecmp(toks[i].s, str) == 0) in str2tok() 240 return (toks[i].v); in str2tok()
|
/external/v8/benchmarks/ |
D | earley-boyer.js | 3972 var toks; 4509 (toks = sc_toks_36); 4602 var toks; 4607 …toks = (parse[(6)])), (states = (parse[(7)])), (BgL_sc_derivzd2treesza2_132z70 = (parse[(9)])), (B… 4612 var toks; 4616 …toks = (parse[(6)])), (states = (parse[(7)])), (BgL_sc_nbzd2derivzd2treesza2_133za2 = (parse[(10)]…
|
/external/libmicrohttpd/doc/ |
D | texinfo.tex | 5488 % \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/bison/build-aux/ |
D | texinfo.tex | 5487 % \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/netperf/doc/ |
D | texinfo.tex | 3774 % \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/ |
D | texinfo.tex | 4189 % \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/ |
D | texinfo.tex | 4189 % \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
|