From 3e69c3ed311760e6e2aae5b32793b50aae5a1843 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 28 Mar 2010 22:48:23 +0000 Subject: [PATCH] Make default arguments to getFunctionNoProtoType an all or nothing option (as they already are in practise). llvm-svn: 99785 --- clang/include/clang/AST/ASTContext.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index cbe98aa5bb1c..79988e6148aa 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/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 '...'.