Home
last modified time | relevance | path

Searched refs:CachedTokens (Results 1 – 18 of 18) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/
H A DPPCaching.cpp56 if (CachedLexPos < CachedTokens.size()) { in CachingLex()
57 Result = CachedTokens[CachedLexPos++]; in CachingLex()
68 CachedTokens.push_back(Result); in CachingLex()
73 if (CachedLexPos < CachedTokens.size()) { in CachingLex()
77 CachedTokens.clear(); in CachingLex()
106 assert(CachedLexPos + N > CachedTokens.size() && "Confused caching."); in PeekAhead()
108 for (size_t C = CachedLexPos + N - CachedTokens.size(); C > 0; --C) { in PeekAhead()
109 CachedTokens.push_back(Token()); in PeekAhead()
110 Lex(CachedTokens.back()); in PeekAhead()
113 return CachedTokens.back(); in PeekAhead()
[all …]
H A DPPLexerChange.cpp157 if (CachedLexPos < CachedTokens.size()) { in EnterTokenStream()
161 CachedTokens.insert(CachedTokens.begin() + CachedLexPos, in EnterTokenStream()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp120 CachedTokens Toks; in ParseCXXInlineMethodDef()
136 CachedTokens &Toks = LM->Toks; in ParseCXXInlineMethodDef()
191 CachedTokens &Toks = MI->Toks; in ParseCXXNonStaticMemberInitializer()
345 std::unique_ptr<CachedTokens> Toks = std::move(LM.DefaultArgs[I].Toks); in ParseLexedMethodDeclaration()
427 if (CachedTokens *Toks = LM.ExceptionSpecTokens) { in ParseLexedMethodDeclaration()
468 CachedTokens *ExceptionSpecTokens; in ParseLexedMethodDeclaration()
799 CachedTokens &Toks, in ConsumeAndStoreUntil()
885 bool Parser::ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) { in ConsumeAndStoreFunctionPrologue()
1085 bool Parser::ConsumeAndStoreConditional(CachedTokens &Toks) { in ConsumeAndStoreConditional()
1139 CachedTokens Toks;
[all …]
H A DParseOpenMP.cpp784 CachedTokens &Toks, SourceLocation Loc) { in ParseOMPDeclareSimdClauses()
1369 CachedTokens &Toks, in ParseOMPDeclareVariantClauses()
1873 CachedTokens Toks; in ParseOpenMPDeclarativeDirectiveWithExtDecl()
2090 CachedTokens Toks; in ParseOpenMPDeclarativeDirectiveWithExtDecl()
H A DParser.cpp1243 CachedTokens Toks; in ParseFunctionDefinition()
1387 CachedTokens Skipped; in SkipFunctionBody()
H A DParseTemplate.cpp1706 void Parser::LexTemplateFunctionForLateParsing(CachedTokens &Toks) { in LexTemplateFunctionForLateParsing()
H A DParseExprCXX.cpp1349 CachedTokens *ExceptionSpecTokens; in ParseLambdaExpressionAfterIntroducer()
3853 CachedTokens Toks; in ParseCXXAmbiguousParenExpression()
H A DParseDeclCXX.cpp3678 CachedTokens *&ExceptionSpecTokens) { in tryParseExceptionSpecification()
3706 ExceptionSpecTokens = new CachedTokens; in tryParseExceptionSpecification()
H A DParseDecl.cpp6511 CachedTokens *ExceptionSpecTokens = nullptr; in ParseFunctionDeclarator()
6868 std::unique_ptr<CachedTokens> DefArgToks; in ParseParameterDeclarationClause()
6929 DefArgToks.reset(new CachedTokens); in ParseParameterDeclarationClause()
H A DParseStmt.cpp2332 CachedTokens Toks; in trySkippingFunctionBody()
H A DParseObjc.cpp2655 CachedTokens &Toks = LM->Toks; in StashAwayMethodOrFunctionBodyTokens()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Parse/
H A DParser.h1280 CachedTokens Toks;
1302 CachedTokens Toks;
1308 void takeToks(CachedTokens &Cached) { Toks.swap(Cached); } in takeToks()
1309 const CachedTokens &toks() const { return Toks; } in toks()
1332 CachedTokens Toks;
1345 std::unique_ptr<CachedTokens> Toks = nullptr)
1355 std::unique_ptr<CachedTokens> Toks;
1382 CachedTokens *ExceptionSpecTokens;
1401 CachedTokens Toks;
1526 void LexTemplateFunctionForLateParsing(CachedTokens &Toks);
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Lex/
H A DPreprocessor.h858 CachedTokensTy CachedTokens; variable
1493 if (CachedLexPos + N < CachedTokens.size()) in LookAhead()
1494 return CachedTokens[CachedLexPos+N]; in LookAhead()
1530 CachedTokens.insert(CachedTokens.begin()+CachedLexPos, Tok); in EnterToken()
1552 return CachedTokens[CachedLexPos-1].getLastLoc(); in getLastCachedTokenLocation()
1577 CachedTokens[CachedLexPos-1] = Tok; in ReplaceLastTokenWithAnnotation()
1595 CachedTokens[CachedLexPos-1] = Tok; in TypoCorrectToken()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DDeclSpec.h1167 typedef SmallVector<Token, 4> CachedTokens; typedef
1261 std::unique_ptr<CachedTokens> DefaultArgTokens;
1266 std::unique_ptr<CachedTokens> DefArgTokens = nullptr)
1360 CachedTokens *ExceptionSpecTokens;
1639 CachedTokens *ExceptionSpecTokens,
H A DSema.h7107 CachedTokens &Toks);
12940 CachedTokens Toks;
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DDeclSpec.cpp177 CachedTokens *ExceptionSpecTokens, in getFunction()
H A DSemaTemplate.cpp10941 CachedTokens &Toks) { in MarkAsLateParsedTemplate()
H A DSemaDeclCXX.cpp417 std::unique_ptr<CachedTokens> Toks = in CheckExtraCXXDefaultArguments()