• Home
  • Raw
  • Download

Lines Matching refs:FromFile

75   void OutputContentUpTo(const MemoryBuffer &FromFile,
80 const MemoryBuffer &FromFile, StringRef EOL,
216 static StringRef DetectEOL(const MemoryBuffer &FromFile) { in DetectEOL() argument
220 const char *Pos = strchr(FromFile.getBufferStart(), '\n'); in DetectEOL()
223 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r') in DetectEOL()
225 if (Pos + 1 < FromFile.getBufferEnd() && Pos[1] == '\r') in DetectEOL()
232 const MemoryBuffer &FromFile = *SM.getBuffer(SM.getMainFileID(), &Invalid); in detectMainFileEOL() local
236 MainEOL = DetectEOL(FromFile); in detectMainFileEOL()
241 void InclusionRewriter::OutputContentUpTo(const MemoryBuffer &FromFile, in OutputContentUpTo() argument
247 if (&FromFile == PredefinesBuffer) { in OutputContentUpTo()
257 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] && in OutputContentUpTo()
258 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0]) in OutputContentUpTo()
261 StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom, in OutputContentUpTo()
294 const MemoryBuffer &FromFile, in CommentOutDirective() argument
297 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
304 if (&FromFile == PredefinesBuffer) { in CommentOutDirective()
309 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
407 const MemoryBuffer &FromFile = *SM.getBuffer(FileId, &Invalid); in Process() local
409 const char *FileName = FromFile.getBufferIdentifier(); in Process()
410 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
413 StringRef LocalEOL = DetectEOL(FromFile); in Process()
447 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, NextToWrite, in Process()
475 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
483 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
524 OutputContentUpTo(FromFile, NextToWrite, SM.getFileOffset(Loc), in Process()
527 OutputContentUpTo(FromFile, NextToWrite, in Process()
535 OutputContentUpTo(FromFile, NextToWrite, in Process()
554 OutputContentUpTo(FromFile, NextToWrite, in Process()
569 OutputContentUpTo(FromFile, NextToWrite, in Process()