[clang] e93e0dd - [NFC] Fix formatting for #80963 (#131100)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 13 11:02:46 PDT 2025
Author: Kuo, Mei-Chun
Date: 2025-03-13T19:02:42+01:00
New Revision: e93e0dd10cdab03941a363e53aaee925a9d2c0c1
URL: https://github.com/llvm/llvm-project/commit/e93e0dd10cdab03941a363e53aaee925a9d2c0c1
DIFF: https://github.com/llvm/llvm-project/commit/e93e0dd10cdab03941a363e53aaee925a9d2c0c1.diff
LOG: [NFC] Fix formatting for #80963 (#131100)
This PR fixes formatting issues in `constructor-template.cpp` introduced
in #130866.
Changes:
- Ran `clang-format` to adhere to LLVM style guidelines.
- No functional changes.
CC: @cor3ntin @shafik
Thanks
Added:
Modified:
clang/lib/Sema/SemaDeclCXX.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index dd779ee377309..673f7eafca7fb 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -10938,8 +10938,7 @@ void Sema::CheckConstructor(CXXConstructorDecl *Constructor) {
// parameters have default arguments.
if (!Constructor->isInvalidDecl() &&
Constructor->hasOneParamOrDefaultArgs() &&
- !Constructor->isFunctionTemplateSpecialization()
- ) {
+ !Constructor->isFunctionTemplateSpecialization()) {
QualType ParamType = Constructor->getParamDecl(0)->getType();
QualType ClassTy = Context.getTagDeclType(ClassDecl);
if (Context.getCanonicalType(ParamType).getUnqualifiedType() == ClassTy) {
More information about the cfe-commits
mailing list