/external/clang/unittests/AST/ |
H A D | 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; local 85 lexString(Source, Toks); 87 ASSERT_EQ(0U, Toks.size()); 96 std::vector<Token> Toks; local 98 lexString(Sources[i], Toks); 100 ASSERT_EQ(1U, Toks.size()); 102 ASSERT_EQ(tok::newline, Toks[ 61 lexString(const char *Source, std::vector<Token> &Toks) argument 112 std::vector<Token> Toks; local 131 std::vector<Token> Toks; local 151 std::vector<Token> Toks; local 174 std::vector<Token> Toks; local 212 std::vector<Token> Toks; local 253 std::vector<Token> Toks; local 270 std::vector<Token> Toks; local 288 std::vector<Token> Toks; local 316 std::vector<Token> Toks; local 334 std::vector<Token> Toks; local 360 std::vector<Token> Toks; local 380 std::vector<Token> Toks; local 412 std::vector<Token> Toks; local 444 std::vector<Token> Toks; local 476 std::vector<Token> Toks; local 498 std::vector<Token> Toks; local 537 std::vector<Token> Toks; local 582 std::vector<Token> Toks; local 606 std::vector<Token> Toks; local 625 std::vector<Token> Toks; local 649 std::vector<Token> Toks; local 680 std::vector<Token> Toks; local 708 std::vector<Token> Toks; local 749 std::vector<Token> Toks; local 790 std::vector<Token> Toks; local 840 std::vector<Token> Toks; local 893 std::vector<Token> Toks; local 918 std::vector<Token> Toks; local 946 std::vector<Token> Toks; local 978 std::vector<Token> Toks; local 997 std::vector<Token> Toks; local 1019 std::vector<Token> Toks; local 1044 std::vector<Token> Toks; local 1064 std::vector<Token> Toks; local 1085 std::vector<Token> Toks; local 1108 std::vector<Token> Toks; local 1129 std::vector<Token> Toks; local 1161 std::vector<Token> Toks; local 1187 std::vector<Token> Toks; local 1217 std::vector<Token> Toks; local 1244 std::vector<Token> Toks; local 1276 std::vector<Token> Toks; local 1307 std::vector<Token> Toks; local 1340 std::vector<Token> Toks; local 1365 std::vector<Token> Toks; local 1390 std::vector<Token> Toks; local 1408 std::vector<Token> Toks; local 1429 std::vector<Token> Toks; local 1447 std::vector<Token> Toks; local 1468 std::vector<Token> Toks; local 1489 std::vector<Token> Toks; local 1507 std::vector<Token> Toks; local 1528 std::vector<Token> Toks; local 1546 std::vector<Token> Toks; local 1567 std::vector<Token> Toks; local 1585 std::vector<Token> Toks; local 1606 std::vector<Token> Toks; local 1624 std::vector<Token> Toks; local 1645 std::vector<Token> Toks; local 1663 std::vector<Token> Toks; local 1684 std::vector<Token> Toks; local 1702 std::vector<Token> Toks; local 1723 std::vector<Token> Toks; local 1741 std::vector<Token> Toks; local 1762 std::vector<Token> Toks; local 1789 std::vector<Token> Toks; local 1813 std::vector<Token> Toks; local [all...] |
/external/clang/lib/Parse/ |
H A D | ParseCXXInlineMethods.cpp | 114 CachedTokens Toks; local 115 LexTemplateFunctionForLateParsing(Toks); 120 Actions.MarkAsLateParsedTemplate(FD, FnD, Toks); 131 CachedTokens &Toks = LM->Toks; local 136 if (ConsumeAndStoreFunctionPrologue(Toks)) { 148 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); 154 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); 155 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); 195 CachedTokens &Toks local 561 ConsumeAndStoreUntil(tok::TokenKind T1, tok::TokenKind T2, CachedTokens &Toks, bool StopAtSemi, bool ConsumeFinalToken) argument 661 ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) argument 833 ConsumeAndStoreConditional(CachedTokens &Toks) argument 886 CachedTokens Toks; member in class:Parser::UnannotatedTentativeParsingAction 894 ConsumeAndStoreInitializer(CachedTokens &Toks, CachedInitKind CIK) argument [all...] |
H A D | ParsePragma.cpp | 684 Token *Toks = new Token[1]; local 685 Toks[0].startToken(); 686 Toks[0].setKind(tok::annot_pragma_vis); 687 Toks[0].setLocation(VisLoc); 688 Toks[0].setAnnotationValue( 690 PP.EnterTokenStream(Toks, 1, /*DisableMacroExpansion=*/true, 800 Token *Toks = local 803 new (Toks) Token(); 804 Toks[0].startToken(); 805 Toks[ 843 Token *Toks = local 912 Token *Toks = local 1004 Token *Toks = local 1055 Token *Toks = local 1067 Token *Toks = local 1112 Token *Toks = local 1192 Token *Toks = local 1245 Token *Toks = new Token[Pragma.size()]; local [all...] |
H A D | ParseTemplate.cpp | 1313 assert(!LPT.Toks.empty() && "Empty body!"); 1317 LPT.Toks.push_back(Tok); 1318 PP.EnterTokenStream(LPT.Toks.data(), LPT.Toks.size(), true, false); 1364 void Parser::LexTemplateFunctionForLateParsing(CachedTokens &Toks) { argument 1366 if (!ConsumeAndStoreFunctionPrologue(Toks)) { 1368 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); 1374 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); 1375 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false);
|
H A D | ParseObjc.cpp | 1980 CachedTokens &Toks = LM->Toks; local 1982 Toks.push_back(Tok); 1986 Toks.push_back(Tok); 1989 ConsumeAndStoreUntil(tok::l_paren, Toks, /*StopAtSemi=*/false); 1990 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); 1993 Toks.push_back(Tok); // also store '{' 1998 ConsumeAndStoreUntil(tok::l_paren, Toks, /*StopAtSemi=*/false); 1999 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); 2001 Toks [all...] |
H A D | Parser.cpp | 232 bool Parser::SkipUntil(ArrayRef<tok::TokenKind> Toks, SkipUntilFlags Flags) { argument 238 for (unsigned i = 0, NumToks = Toks.size(); i != NumToks; ++i) { 239 if (Tok.is(Toks[i])) { 252 if (Toks.size() == 1 && Toks[0] == tok::eof && 995 CachedTokens Toks; local 996 LexTemplateFunctionForLateParsing(Toks); 1001 Actions.MarkAsLateParsedTemplate(FnD, DP, Toks);
|
H A D | ParseExprCXX.cpp | 2184 SmallVector<Token, 4> Toks; local 2194 Toks.push_back(Tok); 2198 StringLiteralParser Literal(Toks, PP); 2941 CachedTokens Toks; local 2945 if (!ConsumeAndStoreUntil(tok::r_paren, Toks)) { 2976 Toks.push_back(Tok); 2979 PP.EnterTokenStream(Toks.data(), Toks.size(),
|
H A D | ParseStmtAsm.cpp | 50 ArrayRef<Token> Toks, ArrayRef<unsigned> Offsets) 51 : TheParser(P), AsmLoc(Loc), AsmString(AsmString), AsmToks(Toks), 49 ClangAsmParserCallback(Parser &P, SourceLocation Loc, StringRef AsmString, ArrayRef<Token> Toks, ArrayRef<unsigned> Offsets) argument
|
H A D | ParseDecl.cpp | 176 ConsumeAndStoreUntil(tok::r_paren, LA->Toks, true, false); 181 LA->Toks.push_back(Eof); 1066 LA.Toks.push_back(Tok); 1067 PP.EnterTokenStream(LA.Toks.data(), LA.Toks.size(), true, false); 5409 // FIXME: Can we use a smart pointer for Toks?
|
/external/clang/include/clang/AST/ |
H A D | CommentParser.h | 73 void putBack(ArrayRef<Token> Toks) { argument 74 if (Toks.empty()) 78 for (const Token *I = &Toks.back(), 79 *B = &Toks.front(); 84 Tok = Toks[0];
|
/external/clang/include/clang/Parse/ |
H A D | Parser.h | 865 bool SkipUntil(ArrayRef<tok::TokenKind> Toks, 921 CachedTokens Toks; member in struct:clang::Parser::LateParsedAttribute 952 CachedTokens Toks; member in struct:clang::Parser::LexedMethod 971 CachedTokens *Toks = nullptr) 972 : Param(P), Toks(Toks) { } 977 /// Toks - The sequence of tokens that comprises the default 981 CachedTokens *Toks; member in struct:clang::Parser::LateParsedDefaultArgument 1033 CachedTokens Toks; member in struct:clang::Parser::LateParsedMemberInitializer 1159 void LexTemplateFunctionForLateParsing(CachedTokens &Toks); 1197 ConsumeAndStoreUntil(tok::TokenKind T1, CachedTokens &Toks, bool StopAtSemi = true, bool ConsumeFinalToken = true) argument [all...] |
/external/clang/lib/AST/ |
H A D | CommentParser.cpp | 39 SmallVector<Token, 16> Toks; member in class:clang::comments::TextTokenRetokenizer 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 [all...] |
/external/clang/lib/Lex/ |
H A D | PPLexerChange.cpp | 190 void Preprocessor::EnterTokenStream(const Token *Toks, unsigned NumToks, argument 196 TokLexer = new TokenLexer(Toks, NumToks, DisableMacroExpansion, 200 TokLexer->Init(Toks, NumToks, DisableMacroExpansion, OwnsTokens);
|
H A D | Pragma.cpp | 915 Token *Toks = PP.getPreprocessorAllocator().Allocate<Token>(1); local 916 Toks->startToken(); 917 Toks->setKind(tok::annot_pragma_captured); 918 Toks->setLocation(NameLoc); 920 PP.EnterTokenStream(Toks, 1, /*DisableMacroExpansion=*/true,
|
H A D | PPDirectives.cpp | 831 Token *Toks = new Token[2]; local 833 Toks[0] = SavedHash; 834 Toks[1] = Result; 839 Toks[1].setKind(tok::unknown); 844 EnterTokenStream(Toks, 2, false, true);
|
H A D | PPMacroExpansion.cpp | 565 Token *Toks = new Token[1]; local 566 Toks[0] = Tok; 567 EnterTokenStream(Toks, 1, true, true);
|
/external/clang/include/clang/Lex/ |
H A D | Preprocessor.h | 739 void EnterTokenStream(const Token *Toks, unsigned NumToks,
|
/external/clang/lib/Sema/ |
H A D | SemaTemplate.cpp | 8155 CachedTokens &Toks) { 8162 LPT->Toks.swap(Toks); 8154 MarkAsLateParsedTemplate(FunctionDecl *FD, Decl *FnD, CachedTokens &Toks) argument
|
H A D | SemaDeclCXX.cpp | 384 CachedTokens *Toks = chunk.Fun.Params[argIdx].DefaultArgTokens; local 386 << SourceRange((*Toks)[1].getLocation(), 387 Toks->back().getLocation()); 388 delete Toks;
|
/external/clang/lib/Serialization/ |
H A D | ASTWriter.cpp | 3843 Record.push_back(LPT->Toks.size()); 3845 for (CachedTokens::iterator TokIt = LPT->Toks.begin(), 3846 TokEnd = LPT->Toks.end();
|
H A D | ASTReader.cpp | 7178 LT->Toks.reserve(TokN); 7180 LT->Toks.push_back(ReadToken(*F, LateParsedTemplates, Idx));
|
/external/clang/include/clang/Sema/ |
H A D | Sema.h | 4936 CachedTokens &Toks); 8441 CachedTokens Toks; member in struct:clang::LateParsedTemplate
|