Author: Haojian Wu Date: 2025-02-01T10:07:40+01:00 New Revision: 7612dcc6e8d8e7f19b364084effbb01946294720
URL: https://github.com/llvm/llvm-project/commit/7612dcc6e8d8e7f19b364084effbb01946294720 DIFF: https://github.com/llvm/llvm-project/commit/7612dcc6e8d8e7f19b364084effbb01946294720.diff LOG: [clang] NFC, add a "continue" bailout in the for-loop of DeclareImplicitDeductionGuidesForTypeAlias. This improves the code readability. Added: Modified: clang/lib/Sema/SemaTemplateDeductionGuide.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaTemplateDeductionGuide.cpp b/clang/lib/Sema/SemaTemplateDeductionGuide.cpp index 00c5dfd3d7a438..63592c335d211b 100644 --- a/clang/lib/Sema/SemaTemplateDeductionGuide.cpp +++ b/clang/lib/Sema/SemaTemplateDeductionGuide.cpp @@ -1246,6 +1246,7 @@ void DeclareImplicitDeductionGuidesForTypeAlias( Constraint = Conjunction.getAs<Expr>(); } Transformed->setTrailingRequiresClause(Constraint); + continue; } FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(G); if (!F) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits