Lines Matching refs:PP
40 Preprocessor &PP; ///< Used to find inclusion directives. member in __anon145511440111::InclusionRewriter
53 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers,
92 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument
95 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"), in InclusionRewriter()
305 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName()
337 PP.LookUpIdentifierInfo(Tok); in HandleHasInclude()
342 StringRef TmpName = PP.getSpelling(Tok, TmpBuffer, &Invalid); in HandleHasInclude()
358 Filename = PP.getSpelling(Tok, FilenameBuffer, &Invalid); in HandleHasInclude()
370 bool isAngled = PP.GetIncludeFilenameSpelling(Tok.getLocation(), Filename); in HandleHasInclude()
372 const FileEntry *FileEnt = PP.getSourceManager().getFileEntryForID(FileId); in HandleHasInclude()
376 const FileEntry *File = PP.getHeaderSearchInfo().LookupFile( in HandleHasInclude()
394 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
400 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process()
425 PP.LookUpIdentifierInfo(RawToken); in Process()
433 if (FileId != PP.getPredefinesFileID()) in Process()
483 PP.LookUpIdentifierInfo(RawToken); in Process()
497 const DirectoryLookup *Lookup = PP.GetCurDirLookup(); in Process()
561 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, in RewriteIncludesInInput() argument
563 SourceManager &SM = PP.getSourceManager(); in RewriteIncludesInInput()
565 PP, *OS, Opts.ShowLineMarkers, Opts.UseLineDirectives); in RewriteIncludesInInput()
568 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Rewrite)); in RewriteIncludesInInput()
569 PP.IgnorePragmas(); in RewriteIncludesInInput()
573 PP.EnterMainSourceFile(); in RewriteIncludesInInput()
580 PP.SetMacroExpansionOnlyInDirectives(); in RewriteIncludesInInput()
582 PP.Lex(Tok); in RewriteIncludesInInput()
584 Rewrite->setPredefinesBuffer(SM.getBuffer(PP.getPredefinesFileID())); in RewriteIncludesInInput()
585 Rewrite->Process(PP.getPredefinesFileID(), SrcMgr::C_User); in RewriteIncludesInInput()