diff options
Diffstat (limited to 'compilerplugins/clang/empty.cxx')
-rw-r--r-- | compilerplugins/clang/empty.cxx | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/compilerplugins/clang/empty.cxx b/compilerplugins/clang/empty.cxx index 108745460d0c..0eaa4e287852 100644 --- a/compilerplugins/clang/empty.cxx +++ b/compilerplugins/clang/empty.cxx @@ -47,39 +47,12 @@ public: { } - bool VisitBinLT(BinaryOperator const* expr) + bool VisitBinaryOperator(BinaryOperator const* expr) { - visitComparison(expr); - return true; - } - - bool VisitBinGT(BinaryOperator const* expr) - { - visitComparison(expr); - return true; - } - - bool VisitBinLE(BinaryOperator const* expr) - { - visitComparison(expr); - return true; - } - - bool VisitBinGE(BinaryOperator const* expr) - { - visitComparison(expr); - return true; - } - - bool VisitBinEQ(BinaryOperator const* expr) - { - visitComparison(expr); - return true; - } - - bool VisitBinNE(BinaryOperator const* expr) - { - visitComparison(expr); + if (expr->isRelationalOp() || expr->isEqualityOp()) + { + visitComparison(expr); + } return true; } |