Lines Matching refs:EndPos
267 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos() local
268 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
269 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) { in getCurLexerEndPos()
270 --EndPos; in getCurLexerEndPos()
273 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
274 (EndPos[-1] == '\n' || EndPos[-1] == '\r') && in getCurLexerEndPos()
275 EndPos[-1] != EndPos[0]) in getCurLexerEndPos()
276 --EndPos; in getCurLexerEndPos()
279 return EndPos; in getCurLexerEndPos()
346 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
347 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
348 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
477 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
479 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
480 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
531 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
533 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
534 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()