github-actions[bot] wrote: <!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning: <details> <summary> You can test this locally with the following command: </summary> ``````````bash git-clang-format --diff 658c03d5879fb78c8d6e0e43b97bc0e0027826d5 a5b2046e2ac1fc69d9dbb0e7b387ac0317b9d3f4 -- clang/lib/Sema/SemaDeclCXX.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 86f9e78c11..12f6629d44 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -1658,17 +1658,15 @@ void Sema::CheckCXXDefaultArguments(FunctionDecl *FD) { ParmVarDecl *Param = FD->getParamDecl(ParamIdx); if (Param->hasDefaultArg() || Param->isParameterPack() || (CurrentInstantiationScope && - CurrentInstantiationScope->isLocalPackExpansion(Param))) + CurrentInstantiationScope->isLocalPackExpansion(Param))) continue; if (Param->isInvalidDecl()) /* We already complained about this parameter. */; else if (Param->getIdentifier()) - Diag(Param->getLocation(), - diag::err_param_default_argument_missing_name) - << Param->getIdentifier(); + Diag(Param->getLocation(), diag::err_param_default_argument_missing_name) + << Param->getIdentifier(); else - Diag(Param->getLocation(), - diag::err_param_default_argument_missing); + Diag(Param->getLocation(), diag::err_param_default_argument_missing); } } `````````` </details> https://github.com/llvm/llvm-project/pull/97338 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits