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 790d151 commit 08c7423Copy full SHA for 08c7423
clang/lib/Sema/SemaDeclCXX.cpp
@@ -10921,8 +10921,7 @@ void Sema::CheckConstructor(CXXConstructorDecl *Constructor) {
10921
// parameters have default arguments.
10922
if (!Constructor->isInvalidDecl() &&
10923
Constructor->hasOneParamOrDefaultArgs() &&
10924
- !Constructor->isFunctionTemplateSpecialization()
10925
- ) {
+ !Constructor->isFunctionTemplateSpecialization()) {
10926
QualType ParamType = Constructor->getParamDecl(0)->getType();
10927
QualType ClassTy = Context.getTagDeclType(ClassDecl);
10928
if (Context.getCanonicalType(ParamType).getUnqualifiedType() == ClassTy) {
0 commit comments