Lines Matching refs:FromFile
89 void OutputContentUpTo(const MemoryBufferRef &FromFile, unsigned &WriteFrom,
93 const MemoryBufferRef &FromFile, StringRef EOL,
256 std::optional<MemoryBufferRef> FromFile = in detectMainFileEOL() local
258 assert(FromFile); in detectMainFileEOL()
259 if (!FromFile) in detectMainFileEOL()
261 MainEOL = FromFile->getBuffer().detectEOL(); in detectMainFileEOL()
266 void InclusionRewriter::OutputContentUpTo(const MemoryBufferRef &FromFile, in OutputContentUpTo() argument
272 if (FromFile == PredefinesBuffer) { in OutputContentUpTo()
282 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] && in OutputContentUpTo()
283 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0]) in OutputContentUpTo()
286 StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom, in OutputContentUpTo()
336 const MemoryBufferRef &FromFile, in CommentOutDirective() argument
340 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
347 if (FromFile == PredefinesBuffer) { in CommentOutDirective()
360 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
383 MemoryBufferRef FromFile; in Process() local
388 FromFile = *B; in Process()
390 StringRef FileName = FromFile.getBufferIdentifier(); in Process()
391 Lexer RawLex(FileId, FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
394 StringRef LocalEOL = FromFile.getBuffer().detectEOL(); in Process()
430 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
450 if (FromFile != PredefinesBuffer) { in Process()
469 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
477 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
488 OutputContentUpTo(FromFile, NextToWrite, in Process()
504 OutputContentUpTo(FromFile, NextToWrite, in Process()
527 OutputContentUpTo(FromFile, NextToWrite, in Process()
543 OutputContentUpTo(FromFile, NextToWrite, in Process()