[cfe-commits] r99785 - /cfe/trunk/include/clang/AST/ASTContext.h

Rafael Espindola rafael.espindola at gmail.com
Sun Mar 28 15:48:23 PDT 2010


Author: rafael
Date: Sun Mar 28 17:48:23 2010
New Revision: 99785

URL: http://llvm.org/viewvc/llvm-project?rev=99785&view=rev
Log:
Make default arguments to getFunctionNoProtoType an all or nothing option (as they already are in practise).

Modified:
    cfe/trunk/include/clang/AST/ASTContext.h

Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=99785&r1=99784&r2=99785&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Sun Mar 28 17:48:23 2010
@@ -555,8 +555,11 @@
 
   /// 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 '...'.





More information about the cfe-commits mailing list