aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-03-28 22:48:23 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-03-28 22:48:23 +0000
commit6a6aa53ec6c89ae0881309b0a0dd84b6868b576b (patch)
tree69a881aa5554b60b4b74cea20bfac7a728a15a16
parent1279deea7981fc66adeb941aa08f2753c096684c (diff)
Make default arguments to getFunctionNoProtoType an all or nothing option (as they already are in practise).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99785 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/ASTContext.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
index cbe98aa5bb..79988e6148 100644
--- a/include/clang/AST/ASTContext.h
+++ b/include/clang/AST/ASTContext.h
@@ -555,8 +555,11 @@ public:
/// getFunctionNoProtoType - Return a K&R style C function type like 'int()'.
///
- QualType getFunctionNoProtoType(QualType ResultTy, bool NoReturn = false,
- CallingConv CallConv = CC_Default);
+ QualType getFunctionNoProtoType(QualType ResultTy, bool NoReturn,
+ CallingConv CallConv);
+ QualType getFunctionNoProtoType(QualType ResultTy) {
+ return getFunctionNoProtoType(ResultTy, false, CC_Default);
+ }
/// getFunctionType - Return a normal function type with a typed argument
/// list. isVariadic indicates whether the argument list includes '...'.