Lines Matching refs:EndPos
243 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos() local
244 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
245 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) { in getCurLexerEndPos()
246 --EndPos; in getCurLexerEndPos()
249 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
250 (EndPos[-1] == '\n' || EndPos[-1] == '\r') && in getCurLexerEndPos()
251 EndPos[-1] != EndPos[0]) in getCurLexerEndPos()
252 --EndPos; in getCurLexerEndPos()
255 return EndPos; in getCurLexerEndPos()
358 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
359 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
360 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
487 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
489 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
490 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
534 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
536 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
537 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()