Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPLexerChange.cpp51 return CurPPLexer; in getCurrentFileLexer()
108 PreprocessorLexer *PrevPPLexer = CurPPLexer; in EnterSourceFileWithLexer()
111 if (CurPPLexer || CurTokenLexer) in EnterSourceFileWithLexer()
115 CurPPLexer = TheLexer; in EnterSourceFileWithLexer()
358 if (CurPPLexer) { // Not ending a macro, ignore it. in HandleEndOfFile()
360 CurPPLexer->MIOpt.GetControllingMacroAtEndOfFile()) { in HandleEndOfFile()
362 if (OptionalFileEntryRef FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
367 CurPPLexer->MIOpt.GetDefinedMacro()) { in HandleEndOfFile()
386 Diag(CurPPLexer->MIOpt.GetMacroLocation(), in HandleEndOfFile()
388 << CurPPLexer->MIOpt.GetMacroLocation() << ControllingMacro; in HandleEndOfFile()
[all …]
H A DPPDirectives.cpp525 assert(CurPPLexer && "Conditional PP block must be in a file!"); in SkipExcludedConditionalBlock()
531 CurPPLexer->pushConditionalLevel(IfTokenLoc, /*isSkipping*/ false, in SkipExcludedConditionalBlock()
536 CurPPLexer->LexingRawMode = true; in SkipExcludedConditionalBlock()
621 CurPPLexer->ParsingPreprocessorDirective = true; in SkipExcludedConditionalBlock()
634 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
650 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
667 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
684 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock()
695 bool InCond = CurPPLexer->popConditionalLevel(CondInfo); in SkipExcludedConditionalBlock()
704 CurPPLexer->LexingRawMode = false; in SkipExcludedConditionalBlock()
[all …]
H A DPreprocessor.cpp688 assert(CurPPLexer && in replayPreambleConditionalStack()
690 CurPPLexer->setConditionalLevels(PreambleConditionalStack.getStack()); in replayPreambleConditionalStack()
821 if (II.isPoisoned() && CurPPLexer) { in HandleIdentifier()
1035 if (CurPPLexer) in LexHeaderName()
1036 CurPPLexer->LexIncludeFilename(FilenameTok); in LexHeaderName()
H A DPragma.cpp178 || (CurPPLexer && CurPPLexer->ParsingPreprocessorDirective)) in HandlePragmaDirective()
429 assert(CurPPLexer && "No current lexer?"); in HandlePragmaMark()
447 if (CurPPLexer) CurPPLexer->LexingRawMode = true; in HandlePragmaPoison()
449 if (CurPPLexer) CurPPLexer->LexingRawMode = false; in HandlePragmaPoison()
H A DPPMacroExpansion.cpp432 if (CurPPLexer) CurPPLexer->MIOpt.ExpandedMacro(); in HandleMacroExpandedIdentifier()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessor.h783 PreprocessorLexer *CurPPLexer = nullptr; variable
1296 return CurPPLexer == L; in isCurrentLexer()
1303 PreprocessorLexer *getCurrentLexer() const { return CurPPLexer; } in getCurrentLexer()
2322 if (CurPPLexer) in isNextPPTokenOneOf()
2550 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack()
2552 CurPPLexer = nullptr; in PushIncludeMacroStack()
2557 CurPPLexer = IncludeMacroStack.back().ThePPLexer; in PopIncludeMacroStack()
2763 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()
2782 return !CurPPLexer && !CurTokenLexer && !IncludeMacroStack.empty(); in InCachingLexMode()