Lines Matching refs:PP
35 Preprocessor &PP, raw_ostream *OS) { in PrintMacroDefinition() argument
70 *OS << PP.getSpelling(T, SpellingBuffer); in PrintMacroDefinition()
80 Preprocessor &PP; member in __anon4bae9f8c0111::PrintPPOutputPPCallbacks
112 : PP(pp), SM(PP.getSourceManager()), ConcatInfo(PP), OS(os), in PrintPPOutputPPCallbacks()
410 const std::string TokenText = PP.getSpelling(IncludeTok); in InclusionDirective()
430 << "#" << PP.getSpelling(IncludeTok) << " " in InclusionDirective()
488 SourceManager &SM = PP.getSourceManager(); in MacroDefined()
494 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS); in MacroDefined()
769 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, in HandlePragma()
782 PP.EnterTokenStream(std::move(Toks), /*NumToks=*/1, in HandlePragma()
785 PP.Lex(PragmaTok); in HandlePragma()
794 std::string TokSpell = PP.getSpelling(PragmaTok); in HandlePragma()
799 PP.Lex(PragmaTok); in HandlePragma()
801 PP.LexUnexpandedToken(PragmaTok); in HandlePragma()
809 static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok, in PrintPreprocessedTokens() argument
811 bool DropComments = PP.getLangOpts().TraditionalCPP && in PrintPreprocessedTokens()
812 !PP.getCommentRetentionState(); in PrintPreprocessedTokens()
833 PP.Lex(Tok); in PrintPreprocessedTokens()
836 PP.Lex(Tok); in PrintPreprocessedTokens()
842 PP.Lex(Tok); in PrintPreprocessedTokens()
850 PP.Lex(Tok); in PrintPreprocessedTokens()
862 PP.Lex(Tok); in PrintPreprocessedTokens()
868 PP.Lex(Tok); in PrintPreprocessedTokens()
883 PP.Lex(Tok); in PrintPreprocessedTokens()
892 unsigned Len = PP.getSpelling(Tok, TokPtr); in PrintPreprocessedTokens()
909 std::string S = PP.getSpelling(Tok); in PrintPreprocessedTokens()
927 PP.Lex(Tok); in PrintPreprocessedTokens()
936 static void DoPrintMacros(Preprocessor &PP, raw_ostream *OS) { in DoPrintMacros() argument
938 PP.IgnorePragmas(); in DoPrintMacros()
942 PP.EnterMainSourceFile(); in DoPrintMacros()
945 do PP.Lex(Tok); in DoPrintMacros()
949 for (Preprocessor::macro_iterator I = PP.macro_begin(), E = PP.macro_end(); in DoPrintMacros()
962 PrintMacroDefinition(*MacrosByID[i].first, MI, PP, OS); in DoPrintMacros()
969 void clang::DoPrintPreprocessedInput(Preprocessor &PP, raw_ostream *OS, in DoPrintPreprocessedInput() argument
974 DoPrintMacros(PP, OS); in DoPrintPreprocessedInput()
980 PP.SetCommentRetentionState(Opts.ShowComments, Opts.ShowMacroComments); in DoPrintPreprocessedInput()
983 PP, OS, !Opts.ShowLineMarkers, Opts.ShowMacros, in DoPrintPreprocessedInput()
993 /*RequireTokenExpansion=*/PP.getLangOpts().MicrosoftExt)); in DoPrintPreprocessedInput()
997 /*RequireTokenExpansion=*/PP.getLangOpts().MicrosoftExt)); in DoPrintPreprocessedInput()
1001 /*RequireTokenExpansion=*/PP.getLangOpts().MicrosoftExt)); in DoPrintPreprocessedInput()
1003 PP.AddPragmaHandler(MicrosoftExtHandler.get()); in DoPrintPreprocessedInput()
1004 PP.AddPragmaHandler("GCC", GCCHandler.get()); in DoPrintPreprocessedInput()
1005 PP.AddPragmaHandler("clang", ClangHandler.get()); in DoPrintPreprocessedInput()
1015 PP.AddPragmaHandler("omp", OpenMPHandler.get()); in DoPrintPreprocessedInput()
1017 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Callbacks)); in DoPrintPreprocessedInput()
1020 PP.EnterMainSourceFile(); in DoPrintPreprocessedInput()
1022 PP.SetMacroExpansionOnlyInDirectives(); in DoPrintPreprocessedInput()
1027 const SourceManager &SourceMgr = PP.getSourceManager(); in DoPrintPreprocessedInput()
1030 PP.Lex(Tok); in DoPrintPreprocessedInput()
1043 PrintPreprocessedTokens(PP, Tok, Callbacks); in DoPrintPreprocessedInput()
1048 PP.RemovePragmaHandler(MicrosoftExtHandler.get()); in DoPrintPreprocessedInput()
1049 PP.RemovePragmaHandler("GCC", GCCHandler.get()); in DoPrintPreprocessedInput()
1050 PP.RemovePragmaHandler("clang", ClangHandler.get()); in DoPrintPreprocessedInput()
1051 PP.RemovePragmaHandler("omp", OpenMPHandler.get()); in DoPrintPreprocessedInput()