Lines Matching refs:EndPos
241 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos() local
242 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
243 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) { in getCurLexerEndPos()
244 --EndPos; in getCurLexerEndPos()
247 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
248 (EndPos[-1] == '\n' || EndPos[-1] == '\r') && in getCurLexerEndPos()
249 EndPos[-1] != EndPos[0]) in getCurLexerEndPos()
250 --EndPos; in getCurLexerEndPos()
253 return EndPos; in getCurLexerEndPos()
320 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
321 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
322 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
446 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
448 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
449 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
493 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
495 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
496 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()