Lines Matching defs:ReturnError

106 /// ReturnError - Set the error to the specified string at the specified
108 tgtok::TokKind TGLexer::ReturnError(SMLoc Loc, const Twine &Msg) {
113 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) {
114 return ReturnError(SMLoc::getFromPointer(Loc), Msg);
190 return ReturnError(TokStart, "unexpected character");
233 return ReturnError(TokStart, "invalid '..' punctuation");
256 return ReturnError(TokStart, "unexpected character");
314 return ReturnError(StrStart, "end of file in string literal");
317 return ReturnError(StrStart, "end of line in string literal");
342 return ReturnError(CurPtr, "escaped newlines not supported in tblgen");
347 return ReturnError(StrStart, "end of file in string literal");
350 return ReturnError(CurPtr, "invalid escape in string literal");
360 return ReturnError(TokStart, "invalid variable name");
543 return ReturnError(TokStart, "invalid number");
552 return ReturnError(TokStart, "invalid number");
554 return ReturnError(TokStart, "number out of range");
580 return ReturnError(CodeStart - 2, "unterminated code block");
586 return ReturnError(CurPtr - 1, "invalid \"!operator\"");
650 : ReturnError(Start - 1, "unknown operator");
743 return ReturnError(TokStart, "expected macro name after " + IfTokName);
758 return ReturnError(CurPtr, "only comments are supported after " +
783 return ReturnError(TokStart, "#else without #ifdef or #ifndef");
789 return ReturnError(IfdefEntry.SrcPos, "previous #else is here");
798 return ReturnError(CurPtr, "only comments are supported after #else");
815 return ReturnError(TokStart, "#endif without #ifdef");
824 return ReturnError(CurPtr, "only comments are supported after #endif");
839 return ReturnError(TokStart, "expected macro name after #define");
846 return ReturnError(CurPtr,