Searched refs:Toks (Results 1 - 22 of 22) sorted by relevance

/external/clang/unittests/AST/
H A DCommentLexer.cpp46 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 DParseCXXInlineMethods.cpp114 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 DParsePragma.cpp684 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 DParseTemplate.cpp1313 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 DParseObjc.cpp1980 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 DParser.cpp232 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 DParseExprCXX.cpp2184 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 DParseStmtAsm.cpp50 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 DParseDecl.cpp176 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 DCommentParser.h73 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 DParser.h865 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 DCommentParser.cpp39 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 DPPLexerChange.cpp190 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 DPragma.cpp915 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 DPPDirectives.cpp831 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 DPPMacroExpansion.cpp565 Token *Toks = new Token[1]; local
566 Toks[0] = Tok;
567 EnterTokenStream(Toks, 1, true, true);
/external/clang/include/clang/Lex/
H A DPreprocessor.h739 void EnterTokenStream(const Token *Toks, unsigned NumToks,
/external/clang/lib/Sema/
H A DSemaTemplate.cpp8155 CachedTokens &Toks) {
8162 LPT->Toks.swap(Toks);
8154 MarkAsLateParsedTemplate(FunctionDecl *FD, Decl *FnD, CachedTokens &Toks) argument
H A DSemaDeclCXX.cpp384 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 DASTWriter.cpp3843 Record.push_back(LPT->Toks.size());
3845 for (CachedTokens::iterator TokIt = LPT->Toks.begin(),
3846 TokEnd = LPT->Toks.end();
H A DASTReader.cpp7178 LT->Toks.reserve(TokN);
7180 LT->Toks.push_back(ReadToken(*F, LateParsedTemplates, Idx));
/external/clang/include/clang/Sema/
H A DSema.h4936 CachedTokens &Toks);
8441 CachedTokens Toks; member in struct:clang::LateParsedTemplate

Completed in 665 milliseconds