/external/clang/unittests/AST/ |
CommentLexer.cpp | 46 void lexString(const char *Source, std::vector<Token> &Toks); 62 std::vector<Token> &Toks) { 74 Toks.push_back(Tok); 83 std::vector<Token> Toks; 85 lexString(Source, Toks); 87 ASSERT_EQ(0U, Toks.size()); 96 std::vector<Token> Toks; 98 lexString(Sources[i], Toks); 100 ASSERT_EQ(1U, Toks.size()); 102 ASSERT_EQ(tok::newline, Toks[0].getKind()) [all...] |
/external/clang/unittests/Lex/ |
PPConditionalDirectiveRecordTest.cpp | 108 std::vector<Token> toks; local 114 toks.push_back(tok); 118 ASSERT_EQ(10U, toks.size()); 121 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); 123 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); 125 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); 127 SourceRange(toks[1].getLocation(), toks[5].getLocation()))) [all...] |
LexerTest.cpp | 76 std::vector<Token> toks; local 82 toks.push_back(tok); 85 EXPECT_EQ(ExpectedTokens.size(), toks.size()); 87 EXPECT_EQ(ExpectedTokens[i], toks[i].getKind()); 90 return toks; 121 std::vector<Token> toks = CheckLex("#define M(x) x\n" local 125 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2])); 133 std::vector<Token> toks = CheckLex("#define M(x) x\n" local 137 EXPECT_EQ("M(i)", getSourceText(toks[0], toks[0])) 146 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 159 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 173 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 187 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 202 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 215 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 228 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 243 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 258 std::vector<Token> toks = CheckLex("#define M(x) x\\n" local 278 std::vector<Token> toks = CheckLex("#define M(x) [x]\\n" local [all...] |
/external/clang/lib/Parse/ |
ParseCXXInlineMethods.cpp | 116 CachedTokens Toks; 117 LexTemplateFunctionForLateParsing(Toks); 122 Actions.MarkAsLateParsedTemplate(FD, FnD, Toks); 133 CachedTokens &Toks = LM->Toks; 138 if (ConsumeAndStoreFunctionPrologue(Toks)) { 150 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); 156 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); 157 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); 197 CachedTokens &Toks = MI->Toks [all...] |
ParsePragma.cpp | 717 Token Toks[1]; 718 Toks[0].startToken(); 719 Toks[0].setKind(tok::string_literal); 720 Toks[0].setLocation(Tok.getLocation()); 721 Toks[0].setLiteralData(Section.data()); 722 Toks[0].setLength(Section.size()); 724 cast<StringLiteral>(Actions.ActOnStringLiteral(Toks, nullptr).get()); 759 ArrayRef<Token> Toks; 793 const Token *Toks = Info->Toks.data() [all...] |
ParseTemplate.cpp | [all...] |
ParseObjc.cpp | [all...] |
/external/clang/unittests/Basic/ |
SourceManagerTest.cpp | 90 std::vector<Token> toks; local 96 toks.push_back(tok); 100 ASSERT_EQ(3U, toks.size()); 101 ASSERT_EQ(tok::l_square, toks[0].getKind()); 102 ASSERT_EQ(tok::identifier, toks[1].getKind()); 103 ASSERT_EQ(tok::r_square, toks[2].getKind()); 105 SourceLocation lsqrLoc = toks[0].getLocation(); 106 SourceLocation idLoc = toks[1].getLocation(); 107 SourceLocation rsqrLoc = toks[2].getLocation(); 207 std::vector<Token> toks; local 309 std::vector<Token> toks; local [all...] |
/build/kati/ |
strutil_bench.cc | 37 vector<StringPiece> toks; local 38 WordScanner(s).Split(&toks);
|
shellutil.go | 211 func (p *shellParser) expect(toks ...string) error { 216 for _, t := range toks { 221 return fmt.Errorf("shell: token=%q; want=%q", tok, toks) 224 func (p *shellParser) expectSeq(toks ...string) error { 225 for _, tok := range toks {
|
strutil.cc | 491 vector<string> toks; 493 toks.push_back(tok.as_string()); 495 sort(toks.begin(), toks.end()); 496 return JoinStrings(toks, " ");
|
func.cc | 190 vector<StringPiece> toks; local 191 WordScanner(list).Split(&toks); 192 stable_sort(toks.begin(), toks.end()); 195 for (StringPiece tok : toks) {
|
/external/clang/include/clang/AST/ |
CommentParser.h | 73 void putBack(ArrayRef<Token> Toks) { 74 if (Toks.empty()) 78 MoreLATokens.append(Toks.rbegin(), std::prev(Toks.rend())); 80 Tok = Toks[0];
|
/prebuilts/go/darwin-x86/src/encoding/xml/ |
marshal_test.go | 1288 toks []Token 1293 toks: []Token{ 1299 toks: []Token{ 1305 toks: []Token{ 1311 toks: []Token{ 1317 toks: []Token{ 1323 toks: []Token{ 1329 toks: []Token{ 1335 toks: []Token{ 1341 toks: []Token [all...] |
/prebuilts/go/linux-x86/src/encoding/xml/ |
marshal_test.go | 1288 toks []Token 1293 toks: []Token{ 1299 toks: []Token{ 1305 toks: []Token{ 1311 toks: []Token{ 1317 toks: []Token{ 1323 toks: []Token{ 1329 toks: []Token{ 1335 toks: []Token{ 1341 toks: []Token [all...] |
/external/iw/ |
wowlan.c | 134 char *len, *offs, *toks; local 143 toks = strchr(offs, ','); 144 if (!toks) 146 *toks = 0; 147 toks++; 149 stream = parse_hex(toks, &stream_len);
|
/external/clang/lib/AST/ |
CommentParser.cpp | 39 SmallVector<Token, 16> Toks; 41 /// A position in \c Toks. 50 /// Current position in Toks. 54 return Pos.CurToken >= Toks.size(); 60 const Token &Tok = Toks[Pos.CurToken]; 115 Toks.push_back(P.Tok); 117 if (Toks.size() == 1) 249 P.putBack(llvm::makeArrayRef(Toks.begin() + Pos.CurToken, Toks.end())); 250 Pos.CurToken = Toks.size() [all...] |
/external/ipsec-tools/src/racoon/ |
gssapi.c | 448 vchar_t *toks; local 461 toks = vmalloc(len); 462 if (toks == 0) 464 p = (char *)toks->v; 470 *tokens = toks; 483 vchar_t *toks; local 502 toks = vmalloc(len); 503 if (toks == 0) 505 p = (char *)toks->v; 511 *tokens = toks; [all...] |
/sdk/bash_completion/ |
adb.bash | 396 local -a toks 407 toks=( ${toks[@]-} $( 421 toks=( ${toks[@]-} $( 431 COMPREPLY=( ${COMPREPLY[@]:-} "${toks[@]}" )
|
/external/libselinux/src/ |
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/ |
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/clang/lib/Lex/ |
PPLexerChange.cpp | 191 void Preprocessor::EnterTokenStream(const Token *Toks, unsigned NumToks, 199 Toks, Toks + NumToks); 201 delete [] Toks; 208 EnterTokenStream(Toks, NumToks, DisableMacroExpansion, OwnsTokens); 217 Toks, NumToks, DisableMacroExpansion, OwnsTokens, *this); 220 TokLexer->Init(Toks, NumToks, DisableMacroExpansion, OwnsTokens);
|
/external/chromium-trace/catapult/third_party/coverage/coverage/ |
phystokens.py | 18 def phys_tokens(toks): 31 for ttype, ttext, (slineno, scol), (elineno, ecol), ltext in toks:
|
/external/clang/include/clang/Parse/ |
Parser.h | 876 bool SkipUntil(ArrayRef<tok::TokenKind> Toks, [all...] |
/external/libpcap/ |
grammar.y | 161 str2tok(const char *str, const struct tok *toks) 165 for (i = 0; toks[i].s != NULL; i++) { 166 if (pcap_strcasecmp(toks[i].s, str) == 0) 167 return (toks[i].v);
|