Home | History | Annotate | Download | only in Frontend

Lines Matching defs:PP

40   Preprocessor &PP; ///< Used to find inclusion directives.
52 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers);
93 /// Initializes an InclusionRewriter with a \p PP source and \p OS destination.
94 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS,
96 : PP(PP), SM(PP.getSourceManager()), OS(OS), PredefinesBuffer(0),
100 UseLineDirective = PP.getLangOpts().MicrosoftExt;
266 PP.LookUpIdentifierInfo(RawToken);
298 PP.LookUpIdentifierInfo(Tok);
303 StringRef TmpName = PP.getSpelling(Tok, TmpBuffer, &Invalid);
319 Filename = PP.getSpelling(Tok, FilenameBuffer, &Invalid);
331 bool isAngled = PP.GetIncludeFilenameSpelling(Tok.getLocation(), Filename);
333 const FileEntry *File = PP.getHeaderSearchInfo().LookupFile(
335 PP.getSourceManager().getFileEntryForID(FileId), 0, 0, 0, false);
351 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts());
377 PP.LookUpIdentifierInfo(RawToken);
433 PP.LookUpIdentifierInfo(RawToken);
446 const DirectoryLookup *Lookup = PP.GetCurDirLookup();
510 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
512 SourceManager &SM = PP.getSourceManager();
513 InclusionRewriter *Rewrite = new InclusionRewriter(PP, *OS,
515 PP.addPPCallbacks(Rewrite);
518 PP.AddPragmaHandler(new EmptyPragmaHandler());
521 PP.AddPragmaHandler("GCC", new EmptyPragmaHandler());
522 PP.AddPragmaHandler("clang", new EmptyPragmaHandler());
526 PP.EnterMainSourceFile();
533 PP.SetMacroExpansionOnlyInDirectives();
535 PP.Lex(Tok);
537 Rewrite->setPredefinesBuffer(SM.getBuffer(PP.getPredefinesFileID()));
538 Rewrite->Process(PP.getPredefinesFileID(), SrcMgr::C_User);