Lines Matching defs:FromFile
89 void OutputContentUpTo(const MemoryBufferRef &FromFile, unsigned &WriteFrom,
93 const MemoryBufferRef &FromFile, StringRef EOL,
256 std::optional<MemoryBufferRef> FromFile =
258 assert(FromFile);
259 if (!FromFile)
261 MainEOL = FromFile->getBuffer().detectEOL();
264 /// Writes out bytes from \p FromFile, starting at \p NextToWrite and ending at
266 void InclusionRewriter::OutputContentUpTo(const MemoryBufferRef &FromFile,
272 if (FromFile == PredefinesBuffer) {
282 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] &&
283 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0])
286 StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom,
329 /// Print characters from \p FromFile starting at \p NextToWrite up until the
333 /// through the \p FromFile buffer.
336 const MemoryBufferRef &FromFile,
340 OutputContentUpTo(FromFile, NextToWrite,
347 if (FromFile == PredefinesBuffer) {
360 OutputContentUpTo(FromFile, NextToWrite,
383 MemoryBufferRef FromFile;
388 FromFile = *B;
390 StringRef FileName = FromFile.getBufferIdentifier();
391 Lexer RawLex(FileId, FromFile, PP.getSourceManager(), PP.getLangOpts());
394 StringRef LocalEOL = FromFile.getBuffer().detectEOL();
430 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL,
450 if (FromFile != PredefinesBuffer) {
469 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL,
477 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL,
488 OutputContentUpTo(FromFile, NextToWrite,
504 OutputContentUpTo(FromFile, NextToWrite,
527 OutputContentUpTo(FromFile, NextToWrite,
543 OutputContentUpTo(FromFile, NextToWrite,