aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level1/install-event-filter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checks/level1/install-event-filter.cpp')
-rw-r--r--src/checks/level1/install-event-filter.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/checks/level1/install-event-filter.cpp b/src/checks/level1/install-event-filter.cpp
index 3a2ee03f..92f652be 100644
--- a/src/checks/level1/install-event-filter.cpp
+++ b/src/checks/level1/install-event-filter.cpp
@@ -24,7 +24,6 @@
#include "HierarchyUtils.h"
#include "QtUtils.h"
#include "TypeUtils.h"
-#include "checkmanager.h"
#include <clang/AST/AST.h>
@@ -33,11 +32,10 @@ using namespace std;
InstallEventFilter::InstallEventFilter(const std::string &name, ClazyContext *context)
- : CheckBase(name, context)
+ : CheckBase(name, context, Option_CanIgnoreIncludes)
{
}
-
void InstallEventFilter::VisitStmt(clang::Stmt *stmt)
{
auto memberCallExpr = dyn_cast<CXXMemberCallExpr>(stmt);
@@ -52,7 +50,7 @@ void InstallEventFilter::VisitStmt(clang::Stmt *stmt)
if (!expr)
return;
- if (!isa<CXXThisExpr>(HierarchyUtils::getFirstChildAtDepth(expr, 1)))
+ if (!isa<CXXThisExpr>(clazy::getFirstChildAtDepth(expr, 1)))
return;
Expr *arg1 = memberCallExpr->getArg(0);
@@ -68,5 +66,3 @@ void InstallEventFilter::VisitStmt(clang::Stmt *stmt)
emitWarning(stmt, "'this' should usually be the filter object, not the monitored one.");
}
-
-REGISTER_CHECK("install-event-filter", InstallEventFilter, CheckLevel1)