summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unusedenumconstants.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/unusedenumconstants.cxx')
-rw-r--r--compilerplugins/clang/unusedenumconstants.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.cxx b/compilerplugins/clang/unusedenumconstants.cxx
index 0c56314af888..a04117343860 100644
--- a/compilerplugins/clang/unusedenumconstants.cxx
+++ b/compilerplugins/clang/unusedenumconstants.cxx
@@ -12,8 +12,8 @@
#include <iostream>
#include <fstream>
#include <set>
+#include "config_clang.h"
#include "plugin.hxx"
-#include "compat.hxx"
/**
This looks for unused enum constants
@@ -246,9 +246,7 @@ walk_up:
|| isa<ParenExpr>(parent)
|| isa<MaterializeTemporaryExpr>(parent)
|| isa<ExprWithCleanups>(parent)
-#if CLANG_VERSION >= 80000
|| isa<ConstantExpr>(parent)
-#endif
|| isa<CXXBindTemporaryExpr>(parent))
{
goto walk_up;
@@ -284,7 +282,7 @@ walk_up:
declRefExpr->dump();
report( DiagnosticsEngine::Warning,
"unhandled clang AST node type",
- compat::getBeginLoc(parent));
+ parent->getBeginLoc());
}
if (bWrite) {