• Home
  • Raw
  • Download

Lines Matching refs:PP

36                                  Preprocessor &PP, raw_ostream &OS) {  in PrintMacroDefinition()  argument
72 OS << PP.getSpelling(*I, SpellingBuffer); in PrintMacroDefinition()
82 Preprocessor &PP; member in __anona956a25e0111::PrintPPOutputPPCallbacks
102 : PP(pp), SM(PP.getSourceManager()), in PrintPPOutputPPCallbacks()
103 ConcatInfo(PP), OS(os), DisableLineMarkers(lineMarkers), in PrintPPOutputPPCallbacks()
114 UseLineDirective = PP.getLangOpts().MicrosoftExt; in PrintPPOutputPPCallbacks()
328 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS); in MacroDefined()
494 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
505 std::string TokSpell = PP.getSpelling(PragmaTok); in HandlePragma()
507 PP.LexUnexpandedToken(PragmaTok); in HandlePragma()
515 static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok, in PrintPreprocessedTokens() argument
518 bool DropComments = PP.getLangOpts().TraditionalCPP && in PrintPreprocessedTokens()
519 !PP.getCommentRetentionState(); in PrintPreprocessedTokens()
556 unsigned Len = PP.getSpelling(Tok, TokPtr); in PrintPreprocessedTokens()
564 std::string S = PP.getSpelling(Tok); in PrintPreprocessedTokens()
578 PP.Lex(Tok); in PrintPreprocessedTokens()
589 static void DoPrintMacros(Preprocessor &PP, raw_ostream *OS) { in DoPrintMacros() argument
591 PP.AddPragmaHandler(new EmptyPragmaHandler()); in DoPrintMacros()
595 PP.EnterMainSourceFile(); in DoPrintMacros()
598 do PP.Lex(Tok); in DoPrintMacros()
602 for (Preprocessor::macro_iterator I = PP.macro_begin(), E = PP.macro_end(); in DoPrintMacros()
614 PrintMacroDefinition(*MacrosByID[i].first, MI, PP, *OS); in DoPrintMacros()
621 void clang::DoPrintPreprocessedInput(Preprocessor &PP, raw_ostream *OS, in DoPrintPreprocessedInput() argument
626 DoPrintMacros(PP, OS); in DoPrintPreprocessedInput()
632 PP.SetCommentRetentionState(Opts.ShowComments, Opts.ShowMacroComments); in DoPrintPreprocessedInput()
635 new PrintPPOutputPPCallbacks(PP, *OS, !Opts.ShowLineMarkers, in DoPrintPreprocessedInput()
637 PP.AddPragmaHandler(new UnknownPragmaHandler("#pragma", Callbacks)); in DoPrintPreprocessedInput()
638 PP.AddPragmaHandler("GCC", new UnknownPragmaHandler("#pragma GCC",Callbacks)); in DoPrintPreprocessedInput()
639 PP.AddPragmaHandler("clang", in DoPrintPreprocessedInput()
642 PP.addPPCallbacks(Callbacks); in DoPrintPreprocessedInput()
645 PP.EnterMainSourceFile(); in DoPrintPreprocessedInput()
650 const SourceManager &SourceMgr = PP.getSourceManager(); in DoPrintPreprocessedInput()
653 PP.Lex(Tok); in DoPrintPreprocessedInput()
666 PrintPreprocessedTokens(PP, Tok, Callbacks, *OS); in DoPrintPreprocessedInput()