Home
last modified time | relevance | path

Searched refs:CachedLexPos (Results 1 – 7 of 7) sorted by relevance

/external/clang/lib/Lex/
DPPCaching.cpp27 BacktrackPositions.push_back(CachedLexPos); in EnableBacktrackAtThisPos()
43 CachedLexPos = BacktrackPositions.back(); in Backtrack()
52 if (CachedLexPos < CachedTokens.size()) { in CachingLex()
53 Result = CachedTokens[CachedLexPos++]; in CachingLex()
64 ++CachedLexPos; in CachingLex()
68 if (CachedLexPos < CachedTokens.size()) { in CachingLex()
73 CachedLexPos = 0; in CachingLex()
87 assert(CachedLexPos + N > CachedTokens.size() && "Confused caching."); in PeekAhead()
89 for (unsigned C = CachedLexPos + N - CachedTokens.size(); C > 0; --C) { in PeekAhead()
99 assert(CachedLexPos != 0 && "Expected to have some cached tokens"); in AnnotatePreviousCachedTokens()
[all …]
DPPLexerChange.cpp195 if (CachedLexPos < CachedTokens.size()) { in EnterTokenStream()
198 CachedTokens.insert(CachedTokens.begin() + CachedLexPos, in EnterTokenStream()
DPreprocessor.cpp110 CachedLexPos = 0; in Preprocessor()
/external/llvm-project/clang/lib/Lex/
DPPCaching.cpp27 BacktrackPositions.push_back(CachedLexPos); in EnableBacktrackAtThisPos()
43 CachedLexPos = BacktrackPositions.back(); in Backtrack()
56 if (CachedLexPos < CachedTokens.size()) { in CachingLex()
57 Result = CachedTokens[CachedLexPos++]; in CachingLex()
69 ++CachedLexPos; in CachingLex()
73 if (CachedLexPos < CachedTokens.size()) { in CachingLex()
78 CachedLexPos = 0; 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()
118 assert(CachedLexPos != 0 && "Expected to have some cached tokens"); in AnnotatePreviousCachedTokens()
[all …]
DPPLexerChange.cpp157 if (CachedLexPos < CachedTokens.size()) { in EnterTokenStream()
161 CachedTokens.insert(CachedTokens.begin() + CachedLexPos, in EnterTokenStream()
/external/clang/include/clang/Lex/
DPreprocessor.h626 CachedTokensTy::size_type CachedLexPos; variable
1154 if (CachedLexPos + N < CachedTokens.size()) in LookAhead()
1155 return CachedTokens[CachedLexPos+N]; in LookAhead()
1168 assert(signed(CachedLexPos) - signed(N) >= signed(BacktrackPositions.back()) in RevertCachedTokens()
1170 assert(signed(CachedLexPos) - signed(N) >= 0 && in RevertCachedTokens()
1172 CachedLexPos -= N; in RevertCachedTokens()
1181 CachedTokens.insert(CachedTokens.begin()+CachedLexPos, Tok); in EnterToken()
1194 if (CachedLexPos != 0 && isBacktrackEnabled()) in AnnotateCachedTokens()
1201 assert(CachedLexPos != 0); in getLastCachedTokenLocation()
1202 return CachedTokens[CachedLexPos-1].getLastLoc(); in getLastCachedTokenLocation()
[all …]
/external/llvm-project/clang/include/clang/Lex/
DPreprocessor.h865 CachedTokensTy::size_type CachedLexPos = 0; variable
1488 if (CachedLexPos + N < CachedTokens.size()) in LookAhead()
1489 return CachedTokens[CachedLexPos+N]; in LookAhead()
1502 assert(signed(CachedLexPos) - signed(N) >= signed(BacktrackPositions.back()) in RevertCachedTokens()
1504 assert(signed(CachedLexPos) - signed(N) >= 0 && in RevertCachedTokens()
1506 CachedLexPos -= N; in RevertCachedTokens()
1525 CachedTokens.insert(CachedTokens.begin()+CachedLexPos, Tok); in EnterToken()
1539 if (CachedLexPos != 0 && isBacktrackEnabled()) in AnnotateCachedTokens()
1546 assert(CachedLexPos != 0); in getLastCachedTokenLocation()
1547 return CachedTokens[CachedLexPos-1].getLastLoc(); in getLastCachedTokenLocation()
[all …]