Lines Matching refs:PP
37 Preprocessor &PP; ///< Used to find inclusion directives. member in __anon844b26f80111::InclusionRewriter
56 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers,
106 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument
109 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"), in InclusionRewriter()
371 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName()
389 Lexer RawLex(FileId, FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
395 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process()
420 PP.LookUpIdentifierInfo(RawToken); in Process()
430 if (FileId != PP.getPredefinesFileID()) in Process()
547 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, in RewriteIncludesInInput() argument
549 SourceManager &SM = PP.getSourceManager(); in RewriteIncludesInInput()
551 PP, *OS, Opts.ShowLineMarkers, Opts.UseLineDirectives); in RewriteIncludesInInput()
554 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Rewrite)); in RewriteIncludesInInput()
555 PP.IgnorePragmas(); in RewriteIncludesInInput()
559 PP.EnterMainSourceFile(); in RewriteIncludesInInput()
566 PP.SetMacroExpansionOnlyInDirectives(); in RewriteIncludesInInput()
568 PP.Lex(Tok); in RewriteIncludesInInput()
572 Rewrite->setPredefinesBuffer(SM.getBufferOrFake(PP.getPredefinesFileID())); in RewriteIncludesInInput()
573 Rewrite->Process(PP.getPredefinesFileID(), SrcMgr::C_User); in RewriteIncludesInInput()