Lines Matching refs:PP
15 static void dumpTokenInto(const clang::Preprocessor &PP, llvm::raw_ostream &OS,
21 const Preprocessor &PP; member in clang::detail::MacroExpansionRangeRecorder
27 const Preprocessor &PP, SourceManager &SM, in MacroExpansionRangeRecorder() argument
29 : PP(PP), SM(SM), ExpansionRanges(ExpansionRanges) {} in MacroExpansionRangeRecorder()
50 (void)PP; in MacroExpands()
52 dumpTokenInto(PP, llvm::dbgs(), MacroName); in MacroExpands()
90 PP = &NewPP; in registerForPreprocessor()
94 PP->addPPCallbacks(std::make_unique<detail::MacroExpansionRangeRecorder>( in registerForPreprocessor()
95 *PP, *SM, ExpansionRanges)); in registerForPreprocessor()
97 PP->setTokenWatcher([this](const Token &Tok) { onTokenLexed(Tok); }); in registerForPreprocessor()
177 static void dumpTokenInto(const Preprocessor &PP, raw_ostream &OS, Token Tok) { in dumpTokenInto() argument
197 unsigned Len = PP.getSpelling(Tok, TokPtr); in dumpTokenInto()
211 dumpTokenInto(*PP, llvm::dbgs(), Tok); llvm::dbgs() << "' at "; in onTokenLexed()
223 dumpTokenInto(*PP, OS, Tok); in onTokenLexed()