diff options
Diffstat (limited to 'src/checks/level1/qproperty-without-notify.cpp')
-rw-r--r-- | src/checks/level1/qproperty-without-notify.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/checks/level1/qproperty-without-notify.cpp b/src/checks/level1/qproperty-without-notify.cpp index 4922073d..69a08588 100644 --- a/src/checks/level1/qproperty-without-notify.cpp +++ b/src/checks/level1/qproperty-without-notify.cpp @@ -24,7 +24,6 @@ #include "HierarchyUtils.h" #include "QtUtils.h" #include "TypeUtils.h" -#include "checkmanager.h" #include <clang/AST/AST.h> @@ -33,12 +32,12 @@ using namespace std; QPropertyWithoutNotify::QPropertyWithoutNotify(const std::string &name, ClazyContext *context) - : CheckBase(name, context) + : CheckBase(name, context, Option_CanIgnoreIncludes) { enablePreProcessorCallbacks(); } -void QPropertyWithoutNotify::VisitMacroExpands(const clang::Token &MacroNameTok, const clang::SourceRange &range) +void QPropertyWithoutNotify::VisitMacroExpands(const clang::Token &MacroNameTok, const clang::SourceRange &range, const MacroInfo *) { IdentifierInfo *ii = MacroNameTok.getIdentifierInfo(); if (!ii) @@ -62,7 +61,7 @@ void QPropertyWithoutNotify::VisitMacroExpands(const clang::Token &MacroNameTok, CharSourceRange crange = Lexer::getAsCharRange(range, sm(), lo()); string text = Lexer::getSourceText(crange, sm(), lo()); - vector<string> split = clazy_std::splitString(text, ' '); + vector<string> split = clazy::splitString(text, ' '); bool found_read = false; bool found_constant = false; @@ -90,5 +89,3 @@ void QPropertyWithoutNotify::VisitMacroExpands(const clang::Token &MacroNameTok, emitWarning(range.getBegin(), "Q_PROPERTY should have either NOTIFY or CONSTANT"); } - -REGISTER_CHECK("qproperty-without-notify", QPropertyWithoutNotify, CheckLevel1) |