Lines Matching defs:LocalEOL
268 StringRef LocalEOL, int &Line,
281 if (LocalEOL.size() == 2 &&
282 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] &&
283 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0])
289 Line += TextToWrite.count(LocalEOL);
291 if (MainEOL == LocalEOL) {
298 size_t Idx = Rest.find(LocalEOL);
305 Idx += LocalEOL.size();
312 if (EnsureNewline && !TextToWrite.ends_with(LocalEOL))
337 StringRef LocalEOL,
341 SM.getFileOffset(StartToken.getLocation()), LocalEOL, Line,
363 LocalEOL, Line, true);
394 StringRef LocalEOL = FromFile.getBuffer().detectEOL();
430 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL,
452 << " expanded by -frewrite-includes */" << LocalEOL;
469 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL,
477 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL,
490 LocalEOL, Line, /*EnsureNewline=*/true);
507 LocalEOL, Line, /*EnsureNewline=*/true);
530 LocalEOL, Line, /*EnsureNewline=*/ true);
544 SM.getFileOffset(SM.getLocForEndOfFile(FileId)), LocalEOL,