]> granicus.if.org Git - clang/commitdiff
Make default arguments to getFunctionNoProtoType an all or nothing option (as they...
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 28 Mar 2010 22:48:23 +0000 (22:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 28 Mar 2010 22:48:23 +0000 (22:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99785 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h

index cbe98aa5bb1c839edc19fc956e28495863abdbdd..79988e6148aa93f8dea8365aa15a71980f72555e 100644 (file)
@@ -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 '...'.