================
@@ -13,79 +13,92 @@
using namespace clang::ast_matchers;
namespace clang::tidy::cppcoreguidelines {
-namespace {
-AST_MATCHER(FieldDecl, isMemberOfLambda) {
- return Node.getParent()->isLambda();
+static bool hasCopyConstructor(CXXRecordDecl const &Node) {
----------------
5chmidti wrote:
You can probably use `CXXRecordDecl::defaultedCopyConstructorIsDeleted` as
well, at least for an earlier exit. (+ move ctor)
https://github.com/llvm/llvm-project/pull/115180
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits