[clang] [Clang][AST/Sema] Fix lambda function pointer conversion operator immediate escalation (PR #235356)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 24 14:32:39 PDT 2026
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 origin/main HEAD --extensions h,cpp -- clang/include/clang/AST/ASTLambda.h clang/include/clang/Sema/Sema.h clang/lib/AST/Decl.cpp clang/lib/Sema/SemaExpr.cpp clang/test/SemaCXX/cxx23-static-callop-lambda-expression.cpp clang/test/SemaCXX/cxx2a-consteval.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/AST/ASTLambda.h b/clang/include/clang/AST/ASTLambda.h
index 16c85f36d..eeb1fc606 100644
--- a/clang/include/clang/AST/ASTLambda.h
+++ b/clang/include/clang/AST/ASTLambda.h
@@ -76,7 +76,7 @@ inline bool isLambdaConversionOperator(const Decl *D) {
return isLambdaConversionOperator(Conv);
if (const FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D))
if (const CXXConversionDecl *Conv =
- dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl()))
+ dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl()))
return isLambdaConversionOperator(Conv);
return false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/235356
More information about the cfe-commits
mailing list