Lines Matching full:callbacks
843 PrintPPOutputPPCallbacks *Callbacks; member
848 UnknownPragmaHandler(const char *prefix, PrintPPOutputPPCallbacks *callbacks, in UnknownPragmaHandler()
850 : Prefix(prefix), Callbacks(callbacks), in UnknownPragmaHandler()
856 Callbacks->MoveToLine(PragmaTok.getLocation(), /*RequireStartOfLine=*/true); in HandlePragma()
857 Callbacks->OS->write(Prefix, strlen(Prefix)); in HandlePragma()
858 Callbacks->setEmittedTokensOnThisLine(); in HandlePragma()
874 Callbacks->HandleWhitespaceBeforeTok(PragmaTok, /*RequireSpace=*/IsFirst, in HandlePragma()
878 Callbacks->OS->write(&TokSpell[0], TokSpell.size()); in HandlePragma()
879 Callbacks->setEmittedTokensOnThisLine(); in HandlePragma()
886 Callbacks->setEmittedDirectiveOnThisLine(); in HandlePragma()
893 PrintPPOutputPPCallbacks *Callbacks) { in PrintPreprocessedTokens() argument
909 Callbacks->HandleWhitespaceBeforeTok(Tok, /*RequireSpace=*/false, in PrintPreprocessedTokens()
943 Callbacks->BeginModule( in PrintPreprocessedTokens()
949 Callbacks->EndModule( in PrintPreprocessedTokens()
961 Callbacks->OS->write(Name.data(), Name.size()); in PrintPreprocessedTokens()
962 Callbacks->HandleNewlinesInToken(Name.data(), Name.size()); in PrintPreprocessedTokens()
968 assert(Callbacks->expandEmbedContents() && in PrintPreprocessedTokens()
979 *Callbacks->OS << ", "; in PrintPreprocessedTokens()
980 *Callbacks->OS << static_cast<unsigned>(*Iter); in PrintPreprocessedTokens()
990 *Callbacks->OS << II->getName(); in PrintPreprocessedTokens()
993 Callbacks->OS->write(Tok.getLiteralData(), Tok.getLength()); in PrintPreprocessedTokens()
997 Callbacks->OS->write(TokPtr, Len); in PrintPreprocessedTokens()
1005 Callbacks->HandleNewlinesInToken(TokPtr, Len); in PrintPreprocessedTokens()
1010 Callbacks->setEmittedDirectiveOnThisLine(); in PrintPreprocessedTokens()
1014 Callbacks->OS->write(S.data(), S.size()); in PrintPreprocessedTokens()
1019 Callbacks->HandleNewlinesInToken(S.data(), S.size()); in PrintPreprocessedTokens()
1023 Callbacks->setEmittedDirectiveOnThisLine(); in PrintPreprocessedTokens()
1026 Callbacks->setEmittedTokensOnThisLine(); in PrintPreprocessedTokens()
1033 for (unsigned I = 0, Skip = Callbacks->GetNumToksToSkip(); I < Skip; ++I) in PrintPreprocessedTokens()
1035 Callbacks->ResetSkipToks(); in PrintPreprocessedTokens()
1090 PrintPPOutputPPCallbacks *Callbacks = new PrintPPOutputPPCallbacks( in DoPrintPreprocessedInput() local
1101 "#pragma", Callbacks, in DoPrintPreprocessedInput()
1105 "#pragma GCC", Callbacks, in DoPrintPreprocessedInput()
1109 "#pragma clang", Callbacks, in DoPrintPreprocessedInput()
1122 new UnknownPragmaHandler("#pragma omp", Callbacks, in DoPrintPreprocessedInput()
1126 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Callbacks)); in DoPrintPreprocessedInput()
1152 PrintPreprocessedTokens(PP, Tok, Callbacks); in DoPrintPreprocessedInput()