Closed martong closed 5 years ago
IsStructurallyEquivalent
with CXXMethodDecl
has a check for getOverloadedOperator()
that can be removedif the new code is used.
IsStructurallyEquivalentwith CXXMethodDecl has a check for getOverloadedOperator() that can be removedif the new code is used.
I don't think so, because when we have a CXXMethodDecl
then we do not check the FunctionDecl
related things:
// ...
} else if (auto *MD1 = dyn_cast<CXXMethodDecl>(D1)) {
// ...
} else if (FunctionDecl *FD1 = dyn_cast<FunctionDecl>(D1)) {
// ...
} else if (FriendDecl *FrD1 = dyn_cast<FriendDecl>(D1)) {
// ...
} // ...
Update: Removed getOperatorSpelling
.
Was this really not checked before?