refactor some code that handles sema of direct function calls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45234 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/Sema.h b/Sema/Sema.h
index 3722ec2..0f49403 100644
--- a/Sema/Sema.h
+++ b/Sema/Sema.h
@@ -714,13 +714,11 @@
// Extra semantic analysis beyond the C type system
private:
- bool CheckFunctionCall(Expr *Fn,
- SourceLocation LParenLoc, SourceLocation RParenLoc,
+ bool CheckFunctionCall(Expr *Fn, SourceLocation RParenLoc,
FunctionDecl *FDecl,
Expr** Args, unsigned NumArgsInCall);
- void CheckPrintfArguments(Expr *Fn,
- SourceLocation LParenLoc, SourceLocation RParenLoc,
+ void CheckPrintfArguments(Expr *Fn, SourceLocation RParenLoc,
bool HasVAListArg, FunctionDecl *FDecl,
unsigned format_idx, Expr** Args,
unsigned NumArgsInCall);
@@ -730,6 +728,7 @@
bool CheckBuiltinCFStringArgument(Expr* Arg);
+ bool SemaBuiltinVAStart(Expr *Fn, Expr** Args, unsigned NumArgs);
void CheckFloatComparison(SourceLocation loc, Expr* lex, Expr* rex);
};