Searched defs:Toks (Results 1 - 16 of 16) sorted by relevance

/external/clang/include/clang/AST/
H A DCommentParser.h75 void putBack(ArrayRef<Token> Toks) { argument
76 if (Toks.empty())
80 for (const Token *I = &Toks.back(),
81 *B = &Toks.front();
86 Tok = Toks[0];
/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/Lex/
H A DPPLexerChange.cpp188 void Preprocessor::EnterTokenStream(const Token *Toks, unsigned NumToks, argument
194 TokLexer = new TokenLexer(Toks, NumToks, DisableMacroExpansion,
198 TokLexer->Init(Toks, NumToks, DisableMacroExpansion, OwnsTokens);
H A DPPMacroExpansion.cpp580 Token *Toks = new Token[1]; local
581 Toks[0] = Tok;
582 EnterTokenStream(Toks, 1, true, true);
H A DPragma.cpp912 Token *Toks = PP.getPreprocessorAllocator().Allocate<Token>(1); local
913 Toks->startToken();
914 Toks->setKind(tok::annot_pragma_captured);
915 Toks->setLocation(NameLoc);
917 PP.EnterTokenStream(Toks, 1, /*DisableMacroExpansion=*/true,
H A DPPDirectives.cpp801 Token *Toks = new Token[2]; local
803 Toks[0] = SavedHash;
804 Toks[1] = Result;
809 Toks[1].setKind(tok::unknown);
814 EnterTokenStream(Toks, 2, false, true);
/external/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp131 LexTemplateFunctionForLateParsing(LPT->Toks);
133 CachedTokens Toks; local
134 LexTemplateFunctionForLateParsing(Toks);
145 CachedTokens &Toks = LM->Toks; local
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 local
559 ConsumeAndStoreUntil(tok::TokenKind T1, tok::TokenKind T2, CachedTokens &Toks, bool StopAtSemi, bool ConsumeFinalToken) argument
656 ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) argument
[all...]
H A DParsePragma.cpp233 Token *Toks = new Token[1]; local
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 = local
352 new (Toks) Token();
353 Toks[0].startToken();
354 Toks[
392 Token *Toks = local
461 Token *Toks = local
553 Token *Toks = local
604 Token *Toks = local
616 Token *Toks = local
661 Token *Toks = local
740 Token *Toks = local
791 Token *Toks = new Token[Pragma.size()]; local
[all...]
H A DParseTemplate.cpp1318 assert(!LMT.Toks.empty() && "Empty body!");
1322 LMT.Toks.push_back(Tok);
1323 PP.EnterTokenStream(LMT.Toks.data(), LMT.Toks.size(), true, false);
1371 void Parser::LexTemplateFunctionForLateParsing(CachedTokens &Toks) { argument
1373 if (!ConsumeAndStoreFunctionPrologue(Toks)) {
1375 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false);
1381 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false);
1382 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false);
H A DParser.cpp264 bool Parser::SkipUntil(ArrayRef<tok::TokenKind> Toks, bool StopAtSemi, argument
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 &&
1023 LexTemplateFunctionForLateParsing(LPT->Toks);
1025 CachedTokens Toks; local
1026 LexTemplateFunctionForLateParsing(Toks);
H A DParseExprCXX.cpp2064 SmallVector<Token, 4> Toks; local
2074 Toks.push_back(Tok);
2078 StringLiteralParser Literal(Toks.data(), Toks.size(), PP);
2927 CachedTokens Toks; local
2931 if (!ConsumeAndStoreUntil(tok::r_paren, Toks)) {
2961 Toks.push_back(Tok);
2964 PP.EnterTokenStream(Toks.data(), Toks.size(),
H A DParseObjc.cpp1978 CachedTokens &Toks = LM->Toks; local
1980 Toks.push_back(Tok);
1984 Toks.push_back(Tok);
1987 ConsumeAndStoreUntil(tok::l_paren, Toks, /*StopAtSemi=*/false);
1988 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false);
1991 Toks.push_back(Tok); // also store '{'
1996 ConsumeAndStoreUntil(tok::l_paren, Toks, /*StopAtSemi=*/false);
1997 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false);
1999 Toks
[all...]
H A DParseStmt.cpp1693 ArrayRef<Token> Toks,
1696 AsmToks(Toks), AsmTokOffsets(Offsets) {
1691 ClangAsmParserCallback(Parser &P, SourceLocation Loc, StringRef AsmString, ArrayRef<Token> Toks, ArrayRef<unsigned> Offsets) argument
/external/clang/lib/AST/
H A DCommentParser.cpp30 SmallVector<Token, 16> Toks; member in class:clang::comments::TextTokenRetokenizer
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
[all...]
/external/clang/include/clang/Parse/
H A DParser.h761 bool SkipUntil(ArrayRef<tok::TokenKind> Toks, bool StopAtSemi = true,
817 CachedTokens Toks; member in struct:clang::Parser::LateParsedAttribute
848 CachedTokens Toks; member in struct:clang::Parser::LexedMethod
867 CachedTokens *Toks = 0)
868 : Param(P), Toks(Toks) { }
873 /// Toks - The sequence of tokens that comprises the default
877 CachedTokens *Toks; member in struct:clang::Parser::LateParsedDefaultArgument
928 CachedTokens Toks; member in struct:clang::Parser::LateParsedMemberInitializer
1060 CachedTokens Toks; member in struct:clang::Parser::LateParsedTemplatedFunction
1101 ConsumeAndStoreUntil(tok::TokenKind T1, CachedTokens &Toks, bool StopAtSemi = true, bool ConsumeFinalToken = true) argument
[all...]
/external/clang/lib/Sema/
H A DSemaDeclCXX.cpp390 CachedTokens *Toks = chunk.Fun.ArgInfo[argIdx].DefaultArgTokens; local
392 << SourceRange((*Toks)[1].getLocation(),
393 Toks->back().getLocation());
394 delete Toks;

Completed in 717 milliseconds