Lines Matching refs:EndPos
268 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos() local
269 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
270 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) { in getCurLexerEndPos()
271 --EndPos; in getCurLexerEndPos()
274 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
275 (EndPos[-1] == '\n' || EndPos[-1] == '\r') && in getCurLexerEndPos()
276 EndPos[-1] != EndPos[0]) in getCurLexerEndPos()
277 --EndPos; in getCurLexerEndPos()
280 return EndPos; in getCurLexerEndPos()
347 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
348 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
349 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
478 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
480 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
481 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
532 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
534 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
535 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()