summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/comparisonwithconstant.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-10-15 08:43:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-10-15 10:45:02 +0200
commit173bd208abc9aa0b6040dc11602c096a00440976 (patch)
treeee8405dc9e6b4c285b915bf3f0505f84f394f2bb /compilerplugins/clang/comparisonwithconstant.cxx
parent30a5d201144cba04dd708c11d87cc5517c04c0c3 (diff)
Fix checks for "older than Clang 11"
...following up on b6d0ca04581eae01817aac18d32a312bc9a2d514 "The Clang RecursiveASTVisitor change is already in Clang 11"; no longer sure why I originally wrote the checks using <= rather than < in 5d546de67b44dec23ecfa5a6378e2968912f8253 "Adapt to Clang 12 trunk RecursiveASTVisitor change" Change-Id: I79877e21823334c939ecdf9c64e4efe5e0b1571b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104349 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang/comparisonwithconstant.cxx')
-rw-r--r--compilerplugins/clang/comparisonwithconstant.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/comparisonwithconstant.cxx b/compilerplugins/clang/comparisonwithconstant.cxx
index 7fee1175d57e..b5dfe8cc6e7f 100644
--- a/compilerplugins/clang/comparisonwithconstant.cxx
+++ b/compilerplugins/clang/comparisonwithconstant.cxx
@@ -51,7 +51,7 @@ public:
return ret;
}
-#if CLANG_VERSION <= 100000
+#if CLANG_VERSION < 110000
bool TraverseBinEQ(BinaryOperator * expr) { return TraverseBinaryOperator(expr); }
bool TraverseBinNE(BinaryOperator * expr) { return TraverseBinaryOperator(expr); }
#endif