================ @@ -35,6 +36,12 @@ inline bool isLambdaCallOperator(const DeclContext *DC) { return isLambdaCallOperator(cast<CXXMethodDecl>(DC)); } +inline bool isLambdaMethod(const DeclContext *DC) { + if (auto *MD = dyn_cast_or_null<CXXMethodDecl>(DC); MD) ---------------- tbaederr wrote:
```suggestion if (const auto *MD = dyn_cast_if_present<CXXMethodDecl>(DC)) ``` https://github.com/llvm/llvm-project/pull/124426 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits