forked from OSchip/llvm-project
improve diagnostics in call parsing, patch suggested by
Matthijs Kooijman llvm-svn: 49648
This commit is contained in:
parent
16a8a3be41
commit
f87e052128
|
@ -337,7 +337,7 @@ static ExprAST *ParseIdentifierExpr() {
|
|||
if (CurTok == ')') break;
|
||||
|
||||
if (CurTok != ',')
|
||||
return Error("Expected ')'");
|
||||
return Error("Expected ')' or ',' in argument list");
|
||||
getNextToken();
|
||||
}
|
||||
}
|
||||
|
@ -1007,7 +1007,7 @@ static ExprAST *ParseIdentifierExpr() {
|
|||
if (CurTok == ')') break;
|
||||
|
||||
if (CurTok != ',')
|
||||
return Error("Expected ')'");
|
||||
return Error("Expected ')' or ',' in argument list");
|
||||
getNextToken();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -881,7 +881,7 @@ static ExprAST *ParseIdentifierExpr() {
|
|||
if (CurTok == ')') break;
|
||||
|
||||
if (CurTok != ',')
|
||||
return Error("Expected ')'");
|
||||
return Error("Expected ')' or ',' in argument list");
|
||||
getNextToken();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -714,7 +714,7 @@ static ExprAST *ParseIdentifierExpr() {
|
|||
if (CurTok == ')') break;
|
||||
|
||||
if (CurTok != ',')
|
||||
return Error("Expected ')'");
|
||||
return Error("Expected ')' or ',' in argument list");
|
||||
getNextToken();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1137,7 +1137,7 @@ static ExprAST *ParseIdentifierExpr() {
|
|||
if (CurTok == ')') break;
|
||||
|
||||
if (CurTok != ',')
|
||||
return Error("Expected ')'");
|
||||
return Error("Expected ')' or ',' in argument list");
|
||||
getNextToken();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1085,7 +1085,7 @@ static ExprAST *ParseIdentifierExpr() {
|
|||
if (CurTok == ')') break;
|
||||
|
||||
if (CurTok != ',')
|
||||
return Error("Expected ')'");
|
||||
return Error("Expected ')' or ',' in argument list");
|
||||
getNextToken();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1286,7 +1286,7 @@ static ExprAST *ParseIdentifierExpr() {
|
|||
if (CurTok == ')') break;
|
||||
|
||||
if (CurTok != ',')
|
||||
return Error("Expected ')'");
|
||||
return Error("Expected ')' or ',' in argument list");
|
||||
getNextToken();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue