Lines Matching refs:EndPos
340 const char *EndPos = CurLexer->BufferEnd;
341 if (EndPos != CurLexer->BufferStart &&
342 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) {
343 --EndPos;
346 if (EndPos != CurLexer->BufferStart &&
347 (EndPos[-1] == '\n' || EndPos[-1] == '\r') &&
348 EndPos[-1] != EndPos[0])
349 --EndPos;
353 CurLexer->BufferPtr = EndPos;
354 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof);