• Home
  • Raw
  • Download

Lines Matching refs:PP

38   Preprocessor &PP; ///< Used to find inclusion directives.  member in __anon63db7a8f0111::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()
393 const FileEntry *File = PP.getHeaderSearchInfo().LookupFile( in HandleHasInclude()
410 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
416 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process()
441 PP.LookUpIdentifierInfo(RawToken); in Process()
449 if (FileId != PP.getPredefinesFileID()) in Process()
453 if (const Module *Mod = PP.getLangOpts().ObjC2 in Process()
500 PP.LookUpIdentifierInfo(RawToken); in Process()
514 const DirectoryLookup *Lookup = PP.GetCurDirLookup(); in Process()
578 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, in RewriteIncludesInInput() argument
580 SourceManager &SM = PP.getSourceManager(); in RewriteIncludesInInput()
582 PP, *OS, Opts.ShowLineMarkers, Opts.UseLineDirectives); in RewriteIncludesInInput()
585 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Rewrite)); in RewriteIncludesInInput()
586 PP.IgnorePragmas(); in RewriteIncludesInInput()
590 PP.EnterMainSourceFile(); in RewriteIncludesInInput()
597 PP.SetMacroExpansionOnlyInDirectives(); in RewriteIncludesInInput()
599 PP.Lex(Tok); in RewriteIncludesInInput()
601 Rewrite->setPredefinesBuffer(SM.getBuffer(PP.getPredefinesFileID())); in RewriteIncludesInInput()
602 Rewrite->Process(PP.getPredefinesFileID(), SrcMgr::C_User); in RewriteIncludesInInput()