Home
last modified time | relevance | path

Searched refs:CurPPLexer (Results 1 – 12 of 12) sorted by relevance

/external/clang/lib/Lex/
DPPLexerChange.cpp54 return CurPPLexer; in getCurrentFileLexer()
115 if (CurPPLexer || CurTokenLexer) in EnterSourceFileWithLexer()
119 CurPPLexer = TheLexer; in EnterSourceFileWithLexer()
140 if (CurPPLexer || CurTokenLexer) in EnterSourceFileWithPTH()
145 CurPPLexer = CurPTHLexer.get(); in EnterSourceFileWithPTH()
152 FileID FID = CurPPLexer->getFileID(); in EnterSourceFileWithPTH()
300 if (CurPPLexer) { // Not ending a macro, ignore it. in HandleEndOfFile()
302 CurPPLexer->MIOpt.GetControllingMacroAtEndOfFile()) { in HandleEndOfFile()
304 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
311 CurPPLexer->MIOpt.GetDefinedMacro()) { in HandleEndOfFile()
[all …]
DPPDirectives.cpp371 assert(!CurTokenLexer && CurPPLexer && "Lexing a macro, not a file?"); in SkipExcludedConditionalBlock()
373 CurPPLexer->pushConditionalLevel(IfTokenLoc, /*isSkipping*/false, in SkipExcludedConditionalBlock()
383 CurPPLexer->LexingRawMode = true; in SkipExcludedConditionalBlock()
399 while (!CurPPLexer->ConditionalStack.empty()) { in SkipExcludedConditionalBlock()
401 Diag(CurPPLexer->ConditionalStack.back().IfLoc, in SkipExcludedConditionalBlock()
403 CurPPLexer->ConditionalStack.pop_back(); in SkipExcludedConditionalBlock()
417 CurPPLexer->ParsingPreprocessorDirective = true; in SkipExcludedConditionalBlock()
427 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
443 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
460 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
[all …]
DPragma.cpp121 || (CurPPLexer && CurPPLexer->ParsingPreprocessorDirective)) in HandlePragmaDirective()
368 assert(CurPPLexer && "No current lexer?"); in HandlePragmaMark()
387 if (CurPPLexer) CurPPLexer->LexingRawMode = true; in HandlePragmaPoison()
389 if (CurPPLexer) CurPPLexer->LexingRawMode = false; in HandlePragmaPoison()
456 CurPPLexer->LexIncludeFilename(FilenameTok); in HandlePragmaDependency()
636 CurPPLexer->LexIncludeFilename(SourceFilenameTok); in HandlePragmaIncludeAlias()
668 CurPPLexer->LexIncludeFilename(ReplaceFilenameTok); in HandlePragmaIncludeAlias()
DPreprocessor.cpp78 SkipMainFilePreamble(0, true), CurPPLexer(nullptr), CurDirLookup(nullptr), in Preprocessor()
654 if (II.isPoisoned() && CurPPLexer) { in HandleIdentifier()
DPPMacroExpansion.cpp391 if (CurPPLexer) in isNextPPTokenLParen()
426 if (CurPPLexer) CurPPLexer->MIOpt.ExpandedMacro(); in HandleMacroExpandedIdentifier()
/external/llvm-project/clang/lib/Lex/
DPPLexerChange.cpp50 return CurPPLexer; in getCurrentFileLexer()
102 if (CurPPLexer || CurTokenLexer) in EnterSourceFileWithLexer()
106 CurPPLexer = TheLexer; in EnterSourceFileWithLexer()
329 if (CurPPLexer) { // Not ending a macro, ignore it. in HandleEndOfFile()
331 CurPPLexer->MIOpt.GetControllingMacroAtEndOfFile()) { in HandleEndOfFile()
333 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
339 CurPPLexer->MIOpt.GetDefinedMacro()) { in HandleEndOfFile()
358 Diag(CurPPLexer->MIOpt.GetMacroLocation(), in HandleEndOfFile()
360 << CurPPLexer->MIOpt.GetMacroLocation() << ControllingMacro; in HandleEndOfFile()
361 Diag(CurPPLexer->MIOpt.GetDefinedLocation(), in HandleEndOfFile()
[all …]
DPPDirectives.cpp421 assert(!CurTokenLexer && CurPPLexer && "Lexing a macro, not a file?"); in SkipExcludedConditionalBlock()
426 CurPPLexer->pushConditionalLevel(IfTokenLoc, /*isSkipping*/ false, in SkipExcludedConditionalBlock()
431 CurPPLexer->LexingRawMode = true; in SkipExcludedConditionalBlock()
467 CurPPLexer->ParsingPreprocessorDirective = true; in SkipExcludedConditionalBlock()
477 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
493 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
510 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
527 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock()
536 bool InCond = CurPPLexer->popConditionalLevel(CondInfo); in SkipExcludedConditionalBlock()
544 CurPPLexer->LexingRawMode = false; in SkipExcludedConditionalBlock()
[all …]
DPragma.cpp181 || (CurPPLexer && CurPPLexer->ParsingPreprocessorDirective)) in HandlePragmaDirective()
416 assert(CurPPLexer && "No current lexer?"); in HandlePragmaMark()
430 if (CurPPLexer) CurPPLexer->LexingRawMode = true; in HandlePragmaPoison()
432 if (CurPPLexer) CurPPLexer->LexingRawMode = false; in HandlePragmaPoison()
DPreprocessor.cpp673 assert(CurPPLexer && in replayPreambleConditionalStack()
675 CurPPLexer->setConditionalLevels(PreambleConditionalStack.getStack()); in replayPreambleConditionalStack()
825 if (II.isPoisoned() && CurPPLexer) { in HandleIdentifier()
993 if (CurPPLexer) in LexHeaderName()
994 CurPPLexer->LexIncludeFilename(FilenameTok); in LexHeaderName()
DPPMacroExpansion.cpp445 if (CurPPLexer) in isNextPPTokenLParen()
477 if (CurPPLexer) CurPPLexer->MIOpt.ExpandedMacro(); in HandleMacroExpandedIdentifier()
/external/clang/include/clang/Lex/
DPreprocessor.h296 PreprocessorLexer *CurPPLexer; variable
758 return CurPPLexer == L; in isCurrentLexer()
765 PreprocessorLexer *getCurrentLexer() const { return CurPPLexer; } in getCurrentLexer()
1694 CurPPLexer, std::move(CurTokenLexer), CurDirLookup); in PushIncludeMacroStack()
1695 CurPPLexer = nullptr; in PushIncludeMacroStack()
1701 CurPPLexer = IncludeMacroStack.back().ThePPLexer; in PopIncludeMacroStack()
1841 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()
1850 return !CurPPLexer && !CurTokenLexer && !CurPTHLexer && in InCachingLexMode()
/external/llvm-project/clang/include/clang/Lex/
DPreprocessor.h508 PreprocessorLexer *CurPPLexer = nullptr; variable
992 return CurPPLexer == L; in isCurrentLexer()
999 PreprocessorLexer *getCurrentLexer() const { return CurPPLexer; } in getCurrentLexer()
2041 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack()
2043 CurPPLexer = nullptr; in PushIncludeMacroStack()
2048 CurPPLexer = IncludeMacroStack.back().ThePPLexer; in PopIncludeMacroStack()
2204 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()
2214 return !CurPPLexer && !CurTokenLexer && !IncludeMacroStack.empty(); in InCachingLexMode()