Lines Matching defs:EndPos
267 const char *EndPos = CurLexer->BufferEnd;
268 if (EndPos != CurLexer->BufferStart &&
269 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) {
270 --EndPos;
273 if (EndPos != CurLexer->BufferStart &&
274 (EndPos[-1] == '\n' || EndPos[-1] == '\r') &&
275 EndPos[-1] != EndPos[0])
276 --EndPos;
279 return EndPos;
356 const char *EndPos = getCurLexerEndPos();
357 CurLexer->BufferPtr = EndPos;
358 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end);
486 const char *EndPos = getCurLexerEndPos();
488 CurLexer->BufferPtr = EndPos;
489 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end);
539 const char *EndPos = getCurLexerEndPos();
541 CurLexer->BufferPtr = EndPos;
544 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_repl_input_end);
548 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof);