Lines Matching defs:EndPos
266 const char *EndPos = CurLexer->BufferEnd;
267 if (EndPos != CurLexer->BufferStart &&
268 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) {
269 --EndPos;
272 if (EndPos != CurLexer->BufferStart &&
273 (EndPos[-1] == '\n' || EndPos[-1] == '\r') &&
274 EndPos[-1] != EndPos[0])
275 --EndPos;
278 return EndPos;
355 const char *EndPos = getCurLexerEndPos();
356 CurLexer->BufferPtr = EndPos;
357 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end);
485 const char *EndPos = getCurLexerEndPos();
487 CurLexer->BufferPtr = EndPos;
488 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end);
538 const char *EndPos = getCurLexerEndPos();
540 CurLexer->BufferPtr = EndPos;
543 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_repl_input_end);
547 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof);