Home | History | Annotate | Download | only in Lex

Lines Matching refs:CurPPLexer

213   assert(CurTokenLexer == 0 && CurPPLexer && "Lexing a macro, not a file?");
215 CurPPLexer->pushConditionalLevel(IfTokenLoc, /*isSkipping*/false,
225 CurPPLexer->LexingRawMode = true;
241 while (!CurPPLexer->ConditionalStack.empty()) {
243 Diag(CurPPLexer->ConditionalStack.back().IfLoc,
245 CurPPLexer->ConditionalStack.pop_back();
259 CurPPLexer->ParsingPreprocessorDirective = true;
269 CurPPLexer->ParsingPreprocessorDirective = false;
285 CurPPLexer->ParsingPreprocessorDirective = false;
302 CurPPLexer->ParsingPreprocessorDirective = false;
319 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true,
328 bool InCond = CurPPLexer->popConditionalLevel(CondInfo);
336 CurPPLexer->LexingRawMode = false;
338 CurPPLexer->LexingRawMode = true;
349 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel();
363 CurPPLexer->LexingRawMode = false;
365 CurPPLexer->LexingRawMode = true;
373 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel();
376 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation();
385 assert(CurPPLexer->LexingRawMode && "We have to be skipping here!");
386 CurPPLexer->LexingRawMode = false;
389 CurPPLexer->LexingRawMode = true;
391 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation();
408 CurPPLexer->ParsingPreprocessorDirective = false;
416 CurPPLexer->LexingRawMode = false;
542 if ((CurFileEnt = SourceMgr.getFileEntryForID(CurPPLexer->getFileID())))
595 CurPPLexer->ParsingPreprocessorDirective = true;
603 bool ReadAnyTokensBeforeDirective =CurPPLexer->MIOpt.getHasReadAnyTokensVal();
647 CurPPLexer->getConditionalStackDepth() > 0);
877 Callbacks->FileChanged(CurPPLexer->getSourceLocation(),
1031 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), Reason, FileKind);
1281 CurPPLexer->LexIncludeFilename(FilenameTok);
1762 if (CurPPLexer->ParsingPreprocessorDirective)
2044 if (CurPPLexer->getConditionalStackDepth() == 0) {
2051 CurPPLexer->MIOpt.EnterTopLevelIFNDEF(MII);
2053 CurPPLexer->MIOpt.EnterTopLevelConditional();
2070 CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(),
2089 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation();
2091 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation();
2095 if (CurPPLexer->getConditionalStackDepth() == 0) {
2097 CurPPLexer->MIOpt.EnterTopLevelIFNDEF(IfNDefMacro);
2099 CurPPLexer->MIOpt.EnterTopLevelConditional();
2109 CurPPLexer->pushConditionalLevel(IfToken.getLocation(), /*wasskip*/false,
2127 if (CurPPLexer->popConditionalLevel(CondInfo)) {
2134 if (CurPPLexer->getConditionalStackDepth() == 0)
2135 CurPPLexer->MIOpt.ExitTopLevelConditional();
2137 assert(!CondInfo.WasSkipping && !CurPPLexer->LexingRawMode &&
2153 if (CurPPLexer->popConditionalLevel(CI)) {
2159 if (CurPPLexer->getConditionalStackDepth() == 0)
2160 CurPPLexer->MIOpt.EnterTopLevelConditional();
2181 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation();
2183 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation();
2186 if (CurPPLexer->popConditionalLevel(CI)) {
2192 if (CurPPLexer->getConditionalStackDepth() == 0)
2193 CurPPLexer->MIOpt.EnterTopLevelConditional();