Lines Matching refs:EndPos
242 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos() local
243 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
244 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) { in getCurLexerEndPos()
245 --EndPos; in getCurLexerEndPos()
248 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
249 (EndPos[-1] == '\n' || EndPos[-1] == '\r') && in getCurLexerEndPos()
250 EndPos[-1] != EndPos[0]) in getCurLexerEndPos()
251 --EndPos; in getCurLexerEndPos()
254 return EndPos; in getCurLexerEndPos()
319 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
320 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
321 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
441 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
443 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
444 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
488 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
490 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
491 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()