/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/lib/Parse/ |
ParseCXXInlineMethods.cpp | 131 LexTemplateFunctionForLateParsing(LPT->Toks); 133 CachedTokens Toks; 134 LexTemplateFunctionForLateParsing(Toks); 145 CachedTokens &Toks = LM->Toks; 150 if (ConsumeAndStoreFunctionPrologue(Toks)) { 162 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); 168 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); 169 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); 207 CachedTokens &Toks = MI->Toks [all...] |
ParsePragma.cpp | 233 Token *Toks = new Token[1]; 234 Toks[0].startToken(); 235 Toks[0].setKind(tok::annot_pragma_vis); 236 Toks[0].setLocation(VisLoc); 237 Toks[0].setAnnotationValue( 239 PP.EnterTokenStream(Toks, 1, /*DisableMacroExpansion=*/true, 349 Token *Toks = 352 new (Toks) Token(); 353 Toks[0].startToken(); 354 Toks[0].setKind(tok::annot_pragma_pack) [all...] |
ParseExprCXX.cpp | [all...] |
Parser.cpp | 264 bool Parser::SkipUntil(ArrayRef<tok::TokenKind> Toks, bool StopAtSemi, 271 for (unsigned i = 0, NumToks = Toks.size(); i != NumToks; ++i) { 272 if (Tok.is(Toks[i])) { 285 if (Toks.size() == 1 && Toks[0] == tok::eof && !StopAtSemi && [all...] |
ParseObjc.cpp | [all...] |
/external/clang/lib/Lex/ |
PPMacroExpansion.cpp | 580 Token *Toks = new Token[1]; 581 Toks[0] = Tok; 582 EnterTokenStream(Toks, 1, true, true); [all...] |
Pragma.cpp | 912 Token *Toks = PP.getPreprocessorAllocator().Allocate<Token>(1); 913 Toks->startToken(); 914 Toks->setKind(tok::annot_pragma_captured); 915 Toks->setLocation(NameLoc); 917 PP.EnterTokenStream(Toks, 1, /*DisableMacroExpansion=*/true, [all...] |
PPDirectives.cpp | 801 Token *Toks = new Token[2]; 803 Toks[0] = SavedHash; 804 Toks[1] = Result; 809 Toks[1].setKind(tok::unknown); 814 EnterTokenStream(Toks, 2, false, true); [all...] |
/external/clang/lib/AST/ |
CommentParser.cpp | 30 SmallVector<Token, 16> Toks; 32 /// A position in \c Toks. 41 /// Current position in Toks. 45 return Pos.CurToken >= Toks.size(); 51 const Token &Tok = Toks[Pos.CurToken]; 106 Toks.push_back(P.Tok); 108 if (Toks.size() == 1) 240 P.putBack(llvm::makeArrayRef(Toks.begin() + Pos.CurToken, Toks.end())); 241 Pos.CurToken = Toks.size() [all...] |
/external/clang/include/clang/Parse/ |
Parser.h | 761 bool SkipUntil(ArrayRef<tok::TokenKind> Toks, bool StopAtSemi = true, 817 CachedTokens Toks; 848 CachedTokens Toks; 867 CachedTokens *Toks = 0) 868 : Param(P), Toks(Toks) { } 873 /// Toks - The sequence of tokens that comprises the default 877 CachedTokens *Toks; [all...] |
/external/clang/lib/Sema/ |
SemaDeclCXX.cpp | 390 CachedTokens *Toks = chunk.Fun.ArgInfo[argIdx].DefaultArgTokens; 392 << SourceRange((*Toks)[1].getLocation(), 393 Toks->back().getLocation()); 394 delete Toks; [all...] |