Lines Matching refs:FromFile

87   void OutputContentUpTo(const MemoryBufferRef &FromFile, unsigned &WriteFrom,
91 const MemoryBufferRef &FromFile, StringRef EOL,
255 Optional<MemoryBufferRef> FromFile = *SM.getBufferOrNone(SM.getMainFileID()); in detectMainFileEOL() local
256 assert(FromFile); in detectMainFileEOL()
257 if (!FromFile) in detectMainFileEOL()
259 MainEOL = FromFile->getBuffer().detectEOL(); in detectMainFileEOL()
264 void InclusionRewriter::OutputContentUpTo(const MemoryBufferRef &FromFile, in OutputContentUpTo() argument
270 if (FromFile == PredefinesBuffer) { in OutputContentUpTo()
280 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] && in OutputContentUpTo()
281 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0]) in OutputContentUpTo()
284 StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom, in OutputContentUpTo()
317 const MemoryBufferRef &FromFile, in CommentOutDirective() argument
320 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
327 if (FromFile == PredefinesBuffer) { in CommentOutDirective()
332 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
354 MemoryBufferRef FromFile; in Process() local
359 FromFile = *B; in Process()
361 StringRef FileName = FromFile.getBufferIdentifier(); in Process()
362 Lexer RawLex(FileId, FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
365 StringRef LocalEOL = FromFile.getBuffer().detectEOL(); in Process()
399 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, NextToWrite, in Process()
434 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
442 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
453 OutputContentUpTo(FromFile, NextToWrite, in Process()
469 OutputContentUpTo(FromFile, NextToWrite, in Process()
492 OutputContentUpTo(FromFile, NextToWrite, in Process()
508 OutputContentUpTo(FromFile, NextToWrite, in Process()