Skip to content

Commit

Permalink
Ignore unions in daedalean-assingment-operators check
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier-varez committed Aug 11, 2022
1 parent 8a86e23 commit e17b1ed
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ namespace tidy {
namespace daedalean {

void AssignmentOperatorsCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(cxxRecordDecl(hasDefinition()).bind("x"), this);
Finder->addMatcher(
cxxRecordDecl(hasDefinition(), unless(isUnion())).bind("x"), this);
}

void AssignmentOperatorsCheck::check(const MatchFinder::MatchResult &Result) {
Expand Down

0 comments on commit e17b1ed

Please sign in to comment.