Lines Matching refs:PP
38 Preprocessor &PP; ///< Used to find inclusion directives. member in __anon1d7b519b0111::InclusionRewriter
53 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers,
93 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument
96 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"), in InclusionRewriter()
321 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName()
353 PP.LookUpIdentifierInfo(Tok); in HandleHasInclude()
358 StringRef TmpName = PP.getSpelling(Tok, TmpBuffer, &Invalid); in HandleHasInclude()
374 Filename = PP.getSpelling(Tok, FilenameBuffer, &Invalid); in HandleHasInclude()
386 bool isAngled = PP.GetIncludeFilenameSpelling(Tok.getLocation(), Filename); in HandleHasInclude()
388 const FileEntry *FileEnt = PP.getSourceManager().getFileEntryForID(FileId); in HandleHasInclude()
392 const FileEntry *File = PP.getHeaderSearchInfo().LookupFile( in HandleHasInclude()
409 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
415 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process()
440 PP.LookUpIdentifierInfo(RawToken); in Process()
448 if (FileId != PP.getPredefinesFileID()) in Process()
497 PP.LookUpIdentifierInfo(RawToken); in Process()
511 const DirectoryLookup *Lookup = PP.GetCurDirLookup(); in Process()
575 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, in RewriteIncludesInInput() argument
577 SourceManager &SM = PP.getSourceManager(); in RewriteIncludesInInput()
579 PP, *OS, Opts.ShowLineMarkers, Opts.UseLineDirectives); in RewriteIncludesInInput()
582 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Rewrite)); in RewriteIncludesInInput()
583 PP.IgnorePragmas(); in RewriteIncludesInInput()
587 PP.EnterMainSourceFile(); in RewriteIncludesInInput()
594 PP.SetMacroExpansionOnlyInDirectives(); in RewriteIncludesInInput()
596 PP.Lex(Tok); in RewriteIncludesInInput()
598 Rewrite->setPredefinesBuffer(SM.getBuffer(PP.getPredefinesFileID())); in RewriteIncludesInInput()
599 Rewrite->Process(PP.getPredefinesFileID(), SrcMgr::C_User); in RewriteIncludesInInput()