Lines Matching refs:PP

37   Preprocessor &PP; ///< Used to find inclusion directives.  member in __anon7638e4020111::InclusionRewriter
56 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers,
107 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument
110 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"), in InclusionRewriter()
373 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName()
391 Lexer RawLex(FileId, FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
397 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process()
422 PP.LookUpIdentifierInfo(RawToken); in Process()
432 if (FileId != PP.getPredefinesFileID()) in Process()
549 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, in RewriteIncludesInInput() argument
551 SourceManager &SM = PP.getSourceManager(); in RewriteIncludesInInput()
553 PP, *OS, Opts.ShowLineMarkers, Opts.UseLineDirectives); in RewriteIncludesInInput()
556 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Rewrite)); in RewriteIncludesInInput()
557 PP.IgnorePragmas(); in RewriteIncludesInInput()
561 PP.EnterMainSourceFile(); in RewriteIncludesInInput()
568 PP.SetMacroExpansionOnlyInDirectives(); in RewriteIncludesInInput()
570 PP.Lex(Tok); in RewriteIncludesInInput()
574 Rewrite->setPredefinesBuffer(SM.getBufferOrFake(PP.getPredefinesFileID())); in RewriteIncludesInInput()
575 Rewrite->Process(PP.getPredefinesFileID(), SrcMgr::C_User); in RewriteIncludesInInput()