Lines Matching defs:OS
42 raw_ostream &OS; ///< The destination stream for rewritten contents.
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),
113 OS << "#line" << ' ' << Line << ' ' << '"';
114 OS.write_escaped(Filename);
115 OS << '"';
119 OS << '#' << ' ' << Line << ' ' << '"';
120 OS.write_escaped(Filename);
121 OS << '"';
123 OS << Extra;
127 OS << " 3";
131 OS << " 3 4";
133 OS << EOL;
138 OS << "@import " << Mod->getFullModuleName() << ";"
230 OS.write(FromFile.getBufferStart() + WriteFrom, WriteTo - WriteFrom);
237 OS << EOL;
258 OS << "#if 0 /* expanded by -frewrite-includes */" << EOL;
262 OS << "#endif /* expanded by -frewrite-includes */" << EOL;
469 OS << '(' << (int) HasFile << ")/*";
474 OS << "*/";
519 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
522 InclusionRewriter *Rewrite = new InclusionRewriter(PP, *OS,
549 OS->flush();