[PATCH] D132290: [clang-tidy] Skip unions in use-equals-default
Dmitri Gribenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 20 05:10:54 PDT 2022
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp:221
// Destructor.
- Finder->addMatcher(cxxDestructorDecl(isDefinition()).bind(SpecialFunction),
+ Finder->addMatcher(cxxDestructorDecl(unless(hasParent(recordDecl(isUnion()))),
+ isDefinition())
----------------
It would be nice to explain why we skip unions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132290/new/
https://reviews.llvm.org/D132290
More information about the cfe-commits
mailing list