Lines Matching refs:FromFile

86   void OutputContentUpTo(const MemoryBuffer &FromFile,
91 const MemoryBuffer &FromFile, StringRef EOL,
239 static StringRef DetectEOL(const MemoryBuffer &FromFile) { in DetectEOL() argument
243 const char *Pos = strchr(FromFile.getBufferStart(), '\n'); in DetectEOL()
246 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r') in DetectEOL()
248 if (Pos + 1 < FromFile.getBufferEnd() && Pos[1] == '\r') in DetectEOL()
255 const MemoryBuffer &FromFile = *SM.getBuffer(SM.getMainFileID(), &Invalid); in detectMainFileEOL() local
259 MainEOL = DetectEOL(FromFile); in detectMainFileEOL()
264 void InclusionRewriter::OutputContentUpTo(const MemoryBuffer &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 MemoryBuffer &FromFile, in CommentOutDirective() argument
320 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
327 if (&FromFile == PredefinesBuffer) { in CommentOutDirective()
332 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
430 const MemoryBuffer &FromFile = *SM.getBuffer(FileId, &Invalid); in Process() local
432 StringRef FileName = FromFile.getBufferIdentifier(); in Process()
433 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
436 StringRef LocalEOL = DetectEOL(FromFile); in Process()
470 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, NextToWrite, in Process()
505 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
513 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
553 OutputContentUpTo(FromFile, NextToWrite, SM.getFileOffset(Loc), in Process()
556 OutputContentUpTo(FromFile, NextToWrite, in Process()
564 OutputContentUpTo(FromFile, NextToWrite, in Process()
583 OutputContentUpTo(FromFile, NextToWrite, in Process()
599 OutputContentUpTo(FromFile, NextToWrite, in Process()