From: Richard Smith Date: Sat, 1 Dec 2012 03:15:03 +0000 (+0000) Subject: Make these functions more clearly express the test they are performing. No functional... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b087248e32a993a3441436cffd10a4c9112eda6f;p=clang Make these functions more clearly express the test they are performing. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169077 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index afa94989c6..0a8e8ff295 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -1033,7 +1033,7 @@ public: /// other than the copy or move constructors. bool hasConstexprNonCopyMoveConstructor() const { return data().HasConstexprNonCopyMoveConstructor || - (!hasUserDeclaredConstructor() && + (needsImplicitDefaultConstructor() && defaultedDefaultConstructorIsConstexpr()); } @@ -1047,7 +1047,7 @@ public: /// \brief Determine whether this class has a constexpr default constructor. bool hasConstexprDefaultConstructor() const { return data().HasConstexprDefaultConstructor || - (!data().UserDeclaredConstructor && + (needsImplicitDefaultConstructor() && defaultedDefaultConstructorIsConstexpr()); }