We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa612f3 commit 64ee153Copy full SHA for 64ee153
clang/lib/Sema/SemaDeclCXX.cpp
@@ -10938,8 +10938,7 @@ void Sema::CheckConstructor(CXXConstructorDecl *Constructor) {
10938
// parameters have default arguments.
10939
if (!Constructor->isInvalidDecl() &&
10940
Constructor->hasOneParamOrDefaultArgs() &&
10941
- !Constructor->isFunctionTemplateSpecialization()
10942
- ) {
+ !Constructor->isFunctionTemplateSpecialization()) {
10943
QualType ParamType = Constructor->getParamDecl(0)->getType();
10944
QualType ClassTy = Context.getTagDeclType(ClassDecl);
10945
if (Context.getCanonicalType(ParamType).getUnqualifiedType() == ClassTy) {
0 commit comments