Lines Matching refs:ReturnError

68 tgtok::TokKind TGLexer::ReturnError(SMLoc Loc, const Twine &Msg) {  in ReturnError()  function in TGLexer
73 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) { in ReturnError() function in TGLexer
74 return ReturnError(SMLoc::getFromPointer(Loc), Msg); in ReturnError()
150 return ReturnError(TokStart, "Unexpected character"); in LexToken()
193 return ReturnError(TokStart, "Invalid '..' punctuation"); in LexToken()
217 return ReturnError(TokStart, "Unexpected character"); in LexToken()
275 return ReturnError(StrStart, "End of file in string literal"); in LexString()
278 return ReturnError(StrStart, "End of line in string literal"); in LexString()
303 return ReturnError(CurPtr, "escaped newlines not supported in tblgen"); in LexString()
308 return ReturnError(StrStart, "End of file in string literal"); in LexString()
311 return ReturnError(CurPtr, "invalid escape in string literal"); in LexString()
321 return ReturnError(TokStart, "Invalid variable name"); in LexVarName()
470 return ReturnError(TokStart, "Invalid hexadecimal number"); in LexNumber()
475 return ReturnError(TokStart, "Invalid hexadecimal number"); in LexNumber()
480 return ReturnError(TokStart, "Invalid hexadecimal number"); in LexNumber()
482 return ReturnError(TokStart, "Hexadecimal number out of range"); in LexNumber()
493 return ReturnError(CurPtr-2, "Invalid binary number"); in LexNumber()
534 return ReturnError(CodeStart - 2, "Unterminated code block"); in LexBracket()
540 return ReturnError(CurPtr - 1, "Invalid \"!operator\""); in LexExclaim()
590 return Kind != tgtok::Error ? Kind : ReturnError(Start-1, "Unknown operator"); in LexExclaim()
702 return ReturnError(TokStart, "Expected macro name after " + IfTokName); in lexPreprocessor()
718 return ReturnError(CurPtr, "Only comments are supported after " + in lexPreprocessor()
743 return ReturnError(TokStart, "#else without #ifdef or #ifndef"); in lexPreprocessor()
749 return ReturnError(IfdefEntry.SrcPos, "Previous #else is here"); in lexPreprocessor()
759 return ReturnError(CurPtr, "Only comments are supported after #else"); in lexPreprocessor()
776 return ReturnError(TokStart, "#endif without #ifdef"); in lexPreprocessor()
787 return ReturnError(CurPtr, "Only comments are supported after #endif"); in lexPreprocessor()
802 return ReturnError(TokStart, "Expected macro name after #define"); in lexPreprocessor()
809 return ReturnError(CurPtr, in lexPreprocessor()