[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [clazy] src: Rename REGISTER_CHECK_WITH_FLAGS to REGISTER_CHECK
From:       Sergio Martins <null () kde ! org>
Date:       2017-05-01 0:50:59
Message-ID: E1d4zYJ-0003bE-JS () code ! kde ! org
[Download RAW message or body]

Git commit e1ecec9447fe536769c8b1919d4e870813f80a98 by Sergio Martins.
Committed on 30/04/2017 at 23:14.
Pushed by smartins into branch 'master'.

Rename REGISTER_CHECK_WITH_FLAGS to REGISTER_CHECK

There's no flags.

M  +1    -1    src/checkmanager.h
M  +1    -1    src/checks/hiddenlevel/inefficientqlist.cpp
M  +1    -1    src/checks/hiddenlevel/isempty-vs-count.cpp
M  +1    -1    src/checks/hiddenlevel/qt4-qstring-from-array.cpp
M  +1    -1    src/checks/hiddenlevel/tr-non-literal.cpp
M  +1    -1    src/checks/level0/connect-non-signal.cpp
M  +1    -1    src/checks/level0/container-anti-pattern.cpp
M  +1    -1    src/checks/level0/lambda-in-connect.cpp
M  +1    -1    src/checks/level0/mutable-container-key.cpp
M  +1    -1    src/checks/level0/qcolor-from-literal.cpp
M  +1    -1    src/checks/level0/qdatetimeutc.cpp
M  +1    -1    src/checks/level0/qenums.cpp
M  +1    -1    src/checks/level0/qfileinfo-exists.cpp
M  +1    -1    src/checks/level0/qgetenv.cpp
M  +1    -1    src/checks/level0/qmap-with-pointer-key.cpp
M  +1    -1    src/checks/level0/qstring-insensitive-allocation.cpp
M  +1    -1    src/checks/level0/qstringarg.cpp
M  +1    -1    src/checks/level0/qstringref.cpp
M  +1    -1    src/checks/level0/qt-macros.cpp
M  +1    -1    src/checks/level0/qvariant-template-instantiation.cpp
M  +1    -1    src/checks/level0/temporaryiterator.cpp
M  +1    -1    src/checks/level0/unused-non-trivial-variable.cpp
M  +1    -1    src/checks/level0/writingtotemporary.cpp
M  +1    -1    src/checks/level0/wrong-qglobalstatic.cpp
M  +1    -1    src/checks/level1/autounexpectedqstringbuilder.cpp
M  +1    -1    src/checks/level1/child-event-qobject-cast.cpp
M  +1    -1    src/checks/level1/ctor-missing-parent-argument.cpp
M  +1    -1    src/checks/level1/detachingtemporary.cpp
M  +1    -1    src/checks/level1/foreach.cpp
M  +1    -1    src/checks/level1/incorrect-emit.cpp
M  +1    -1    src/checks/level1/inefficient-qlist-soft.cpp
M  +1    -1    src/checks/level1/install-event-filter.cpp
M  +1    -1    src/checks/level1/missing-qobject-macro.cpp
M  +1    -1    src/checks/level1/nonpodstatic.cpp
M  +1    -1    src/checks/level1/post-event.cpp
M  +1    -1    src/checks/level1/qdeleteall.cpp
M  +1    -1    src/checks/level1/qlatin1string-non-ascii.cpp
M  +1    -1    src/checks/level1/qstring-left.cpp
M  +1    -1    src/checks/level1/range-loop.cpp
M  +1    -1    src/checks/level1/returning-data-from-temporary.cpp
M  +1    -1    src/checks/level1/ruleoftwosoft.cpp
M  +1    -1    src/checks/level2/base-class-event.cpp
M  +1    -1    src/checks/level2/container-inside-loop.cpp
M  +1    -1    src/checks/level2/copyable-polymorphic.cpp
M  +1    -1    src/checks/level2/function-args-by-ref.cpp
M  +1    -1    src/checks/level2/function-args-by-value.cpp
M  +1    -1    src/checks/level2/globalconstcharpointer.cpp
M  +1    -1    src/checks/level2/implicitcasts.cpp
M  +1    -1    src/checks/level2/missing-type-info.cpp
M  +1    -2    src/checks/level2/oldstyleconnect.cpp
M  +1    -1    src/checks/level2/qstring-allocations.cpp
M  +1    -1    src/checks/level2/reservecandidates.cpp
M  +1    -1    src/checks/level2/returning-void-expression.cpp
M  +1    -1    src/checks/level2/ruleofthree.cpp
M  +1    -1    src/checks/level2/virtualcallsfromctor.cpp
M  +1    -1    src/checks/level3/assertwithsideeffects.cpp
M  +1    -1    src/checks/level3/detachingmember.cpp
M  +1    -1    src/checks/level3/dynamic_cast.cpp

https://commits.kde.org/clazy/e1ecec9447fe536769c8b1919d4e870813f80a98

diff --git a/src/checkmanager.h b/src/checkmanager.h
index 04af2cb..1fe41fc 100644
--- a/src/checkmanager.h
+++ b/src/checkmanager.h
@@ -122,7 +122,7 @@ private:
 #define CLAZY_STRINGIFY2(X) #X
 #define CLAZY_STRINGIFY(X) CLAZY_STRINGIFY2(X)
 
-#define REGISTER_CHECK_WITH_FLAGS(CHECK_NAME, CLASS_NAME, LEVEL) \
+#define REGISTER_CHECK(CHECK_NAME, CLASS_NAME, LEVEL) \
     volatile int ClazyAnchor_##CLASS_NAME = \
CheckManager::instance()->registerCheck(CHECK_NAME, CLAZY_STRINGIFY(CLASS_NAME), \
LEVEL, [](ClazyContext *context){ return new CLASS_NAME(CHECK_NAME, context); });  
 #define REGISTER_FIXIT(FIXIT_ID, FIXIT_NAME, CHECK_NAME) \
diff --git a/src/checks/hiddenlevel/inefficientqlist.cpp \
b/src/checks/hiddenlevel/inefficientqlist.cpp index 5173146..1e06d3d 100644
--- a/src/checks/hiddenlevel/inefficientqlist.cpp
+++ b/src/checks/hiddenlevel/inefficientqlist.cpp
@@ -41,4 +41,4 @@ InefficientQList::InefficientQList(const std::string &name, \
ClazyContext *contex  {
 }
 
-REGISTER_CHECK_WITH_FLAGS("inefficient-qlist", InefficientQList, HiddenCheckLevel)
+REGISTER_CHECK("inefficient-qlist", InefficientQList, HiddenCheckLevel)
diff --git a/src/checks/hiddenlevel/isempty-vs-count.cpp \
b/src/checks/hiddenlevel/isempty-vs-count.cpp index 7a987c8..1ba17de 100644
--- a/src/checks/hiddenlevel/isempty-vs-count.cpp
+++ b/src/checks/hiddenlevel/isempty-vs-count.cpp
@@ -56,4 +56,4 @@ void IsEmptyVSCount::VisitStmt(clang::Stmt *stmt)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("isempty-vs-count", IsEmptyVSCount, HiddenCheckLevel)
+REGISTER_CHECK("isempty-vs-count", IsEmptyVSCount, HiddenCheckLevel)
diff --git a/src/checks/hiddenlevel/qt4-qstring-from-array.cpp \
b/src/checks/hiddenlevel/qt4-qstring-from-array.cpp index 68924ae..55d3423 100644
--- a/src/checks/hiddenlevel/qt4-qstring-from-array.cpp
+++ b/src/checks/hiddenlevel/qt4-qstring-from-array.cpp
@@ -265,5 +265,5 @@ std::vector<FixItHint> \
Qt4_QStringFromArray::fixitInsertFromLatin1(CXXConstructE  }
 
 const char *const s_checkName = "qt4-qstring-from-array";
-REGISTER_CHECK_WITH_FLAGS(s_checkName, Qt4_QStringFromArray, HiddenCheckLevel)
+REGISTER_CHECK(s_checkName, Qt4_QStringFromArray, HiddenCheckLevel)
 REGISTER_FIXIT(FixItToFromLatin1, "fix-qt4-qstring-from-array", s_checkName)
diff --git a/src/checks/hiddenlevel/tr-non-literal.cpp \
b/src/checks/hiddenlevel/tr-non-literal.cpp index ece1b83..0950470 100644
--- a/src/checks/hiddenlevel/tr-non-literal.cpp
+++ b/src/checks/hiddenlevel/tr-non-literal.cpp
@@ -54,4 +54,4 @@ void TrNonLiteral::VisitStmt(clang::Stmt *stmt)
         emitWarning(stmt, "tr() without a literal string");
 }
 
-REGISTER_CHECK_WITH_FLAGS("tr-non-literal", TrNonLiteral, HiddenCheckLevel)
+REGISTER_CHECK("tr-non-literal", TrNonLiteral, HiddenCheckLevel)
diff --git a/src/checks/level0/connect-non-signal.cpp \
b/src/checks/level0/connect-non-signal.cpp index 7e337ed..119eb6d 100644
--- a/src/checks/level0/connect-non-signal.cpp
+++ b/src/checks/level0/connect-non-signal.cpp
@@ -63,4 +63,4 @@ void ConnectNonSignal::VisitStmt(clang::Stmt *stmt)
         emitWarning(call, method->getQualifiedNameAsString() + string(" is not a \
signal"));  }
 
-REGISTER_CHECK_WITH_FLAGS("connect-non-signal", ConnectNonSignal, CheckLevel0)
+REGISTER_CHECK("connect-non-signal", ConnectNonSignal, CheckLevel0)
diff --git a/src/checks/level0/container-anti-pattern.cpp \
b/src/checks/level0/container-anti-pattern.cpp index de186a1..54927f5 100644
--- a/src/checks/level0/container-anti-pattern.cpp
+++ b/src/checks/level0/container-anti-pattern.cpp
@@ -118,4 +118,4 @@ bool ContainerAntiPattern::handleLoop(Stmt *stm)
 
 
 
-REGISTER_CHECK_WITH_FLAGS("container-anti-pattern", ContainerAntiPattern, \
CheckLevel0) +REGISTER_CHECK("container-anti-pattern", ContainerAntiPattern, \
                CheckLevel0)
diff --git a/src/checks/level0/lambda-in-connect.cpp \
b/src/checks/level0/lambda-in-connect.cpp index 6be073e..9668767 100644
--- a/src/checks/level0/lambda-in-connect.cpp
+++ b/src/checks/level0/lambda-in-connect.cpp
@@ -62,4 +62,4 @@ void LambdaInConnect::VisitStmt(clang::Stmt *stmt)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("lambda-in-connect", LambdaInConnect, CheckLevel0)
+REGISTER_CHECK("lambda-in-connect", LambdaInConnect, CheckLevel0)
diff --git a/src/checks/level0/mutable-container-key.cpp \
b/src/checks/level0/mutable-container-key.cpp index c352d6e..3571150 100644
--- a/src/checks/level0/mutable-container-key.cpp
+++ b/src/checks/level0/mutable-container-key.cpp
@@ -69,4 +69,4 @@ void MutableContainerKey::VisitDecl(clang::Decl *decl)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("mutable-container-key", MutableContainerKey, CheckLevel0)
+REGISTER_CHECK("mutable-container-key", MutableContainerKey, CheckLevel0)
diff --git a/src/checks/level0/qcolor-from-literal.cpp \
b/src/checks/level0/qcolor-from-literal.cpp index 41e523b..c1e1aca 100644
--- a/src/checks/level0/qcolor-from-literal.cpp
+++ b/src/checks/level0/qcolor-from-literal.cpp
@@ -79,4 +79,4 @@ void QColorFromLiteral::registerASTMatchers(MatchFinder &finder)
     finder.addMatcher(s_matcher, m_astMatcherCallBack);
 }
 
-REGISTER_CHECK_WITH_FLAGS("qcolor-from-literal", QColorFromLiteral, CheckLevel0)
+REGISTER_CHECK("qcolor-from-literal", QColorFromLiteral, CheckLevel0)
diff --git a/src/checks/level0/qdatetimeutc.cpp b/src/checks/level0/qdatetimeutc.cpp
index d30716c..5b7c5ef 100644
--- a/src/checks/level0/qdatetimeutc.cpp
+++ b/src/checks/level0/qdatetimeutc.cpp
@@ -85,5 +85,5 @@ void QDateTimeUtc::VisitStmt(clang::Stmt *stmt)
 }
 
 const char *const s_checkName = "qdatetime-utc";
-REGISTER_CHECK_WITH_FLAGS(s_checkName, QDateTimeUtc, CheckLevel0)
+REGISTER_CHECK(s_checkName, QDateTimeUtc, CheckLevel0)
 REGISTER_FIXIT(FixitAll, "fix-qdatetime-utc", s_checkName)
diff --git a/src/checks/level0/qenums.cpp b/src/checks/level0/qenums.cpp
index e8eabd1..d5d2c76 100644
--- a/src/checks/level0/qenums.cpp
+++ b/src/checks/level0/qenums.cpp
@@ -54,4 +54,4 @@ void Qenums::VisitMacroExpands(const Token &MacroNameTok, const \
SourceRange &ran  emitWarning(range.getBegin(), "Use Q_ENUM instead of Q_ENUMS");
 }
 
-REGISTER_CHECK_WITH_FLAGS("qenums", Qenums, CheckLevel0)
+REGISTER_CHECK("qenums", Qenums, CheckLevel0)
diff --git a/src/checks/level0/qfileinfo-exists.cpp \
b/src/checks/level0/qfileinfo-exists.cpp index 4c908ae..78ab785 100644
--- a/src/checks/level0/qfileinfo-exists.cpp
+++ b/src/checks/level0/qfileinfo-exists.cpp
@@ -51,4 +51,4 @@ void QFileInfoExists::VisitStmt(clang::Stmt *stmt)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("qfileinfo-exists", QFileInfoExists, CheckLevel0)
+REGISTER_CHECK("qfileinfo-exists", QFileInfoExists, CheckLevel0)
diff --git a/src/checks/level0/qgetenv.cpp b/src/checks/level0/qgetenv.cpp
index b61e247..125d7d6 100644
--- a/src/checks/level0/qgetenv.cpp
+++ b/src/checks/level0/qgetenv.cpp
@@ -105,5 +105,5 @@ void QGetEnv::VisitStmt(clang::Stmt *stmt)
 
 
 const char *const s_checkName = "qgetenv";
-REGISTER_CHECK_WITH_FLAGS(s_checkName, QGetEnv, CheckLevel0)
+REGISTER_CHECK(s_checkName, QGetEnv, CheckLevel0)
 REGISTER_FIXIT(FixitAll, "fix-qgetenv", s_checkName)
diff --git a/src/checks/level0/qmap-with-pointer-key.cpp \
b/src/checks/level0/qmap-with-pointer-key.cpp index 2b58156..495668d 100644
--- a/src/checks/level0/qmap-with-pointer-key.cpp
+++ b/src/checks/level0/qmap-with-pointer-key.cpp
@@ -55,4 +55,4 @@ void QMapWithPointerKey::VisitDecl(clang::Decl *decl)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("qmap-with-pointer-key", QMapWithPointerKey, CheckLevel0)
+REGISTER_CHECK("qmap-with-pointer-key", QMapWithPointerKey, CheckLevel0)
diff --git a/src/checks/level0/qstring-insensitive-allocation.cpp \
b/src/checks/level0/qstring-insensitive-allocation.cpp index 2977e37..73c9510 100644
--- a/src/checks/level0/qstring-insensitive-allocation.cpp
+++ b/src/checks/level0/qstring-insensitive-allocation.cpp
@@ -73,4 +73,4 @@ void QStringInsensitiveAllocation::VisitStmt(clang::Stmt *stmt)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("qstring-insensitive-allocation", \
QStringInsensitiveAllocation, CheckLevel0) \
+REGISTER_CHECK("qstring-insensitive-allocation", QStringInsensitiveAllocation, \
                CheckLevel0)
diff --git a/src/checks/level0/qstringarg.cpp b/src/checks/level0/qstringarg.cpp
index 0ffce62..edcd5ad 100644
--- a/src/checks/level0/qstringarg.cpp
+++ b/src/checks/level0/qstringarg.cpp
@@ -181,4 +181,4 @@ std::vector<string> StringArg::supportedOptions() const
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("qstring-arg", StringArg, CheckLevel0)
+REGISTER_CHECK("qstring-arg", StringArg, CheckLevel0)
diff --git a/src/checks/level0/qstringref.cpp b/src/checks/level0/qstringref.cpp
index 982c1a4..ab0b4b2 100644
--- a/src/checks/level0/qstringref.cpp
+++ b/src/checks/level0/qstringref.cpp
@@ -228,5 +228,5 @@ std::vector<FixItHint> \
StringRefCandidates::fixit(CXXMemberCallExpr *call)  }
 
 const char *const s_checkName = "qstring-ref";
-REGISTER_CHECK_WITH_FLAGS(s_checkName, StringRefCandidates, CheckLevel0)
+REGISTER_CHECK(s_checkName, StringRefCandidates, CheckLevel0)
 REGISTER_FIXIT(FixitUseQStringRef, "fix-missing-qstringref", s_checkName)
diff --git a/src/checks/level0/qt-macros.cpp b/src/checks/level0/qt-macros.cpp
index 72690e6..c16100d 100644
--- a/src/checks/level0/qt-macros.cpp
+++ b/src/checks/level0/qt-macros.cpp
@@ -72,4 +72,4 @@ void QtMacros::VisitIfdef(SourceLocation loc, const Token \
&macroNameTok)  checkIfDef(macroNameTok, loc);
 }
 
-REGISTER_CHECK_WITH_FLAGS("qt-macros", QtMacros, CheckLevel0)
+REGISTER_CHECK("qt-macros", QtMacros, CheckLevel0)
diff --git a/src/checks/level0/qvariant-template-instantiation.cpp \
b/src/checks/level0/qvariant-template-instantiation.cpp index e4d725a..1f647b5 100644
--- a/src/checks/level0/qvariant-template-instantiation.cpp
+++ b/src/checks/level0/qvariant-template-instantiation.cpp
@@ -84,4 +84,4 @@ void QVariantTemplateInstantiation::VisitStmt(clang::Stmt *stm)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("qvariant-template-instantiation", \
QVariantTemplateInstantiation, CheckLevel0) \
+REGISTER_CHECK("qvariant-template-instantiation", QVariantTemplateInstantiation, \
                CheckLevel0)
diff --git a/src/checks/level0/temporaryiterator.cpp \
b/src/checks/level0/temporaryiterator.cpp index f2a7839..0ccc3df 100644
--- a/src/checks/level0/temporaryiterator.cpp
+++ b/src/checks/level0/temporaryiterator.cpp
@@ -147,4 +147,4 @@ void TemporaryIterator::VisitStmt(clang::Stmt *stm)
     emitWarning(stm->getLocStart(), error.c_str());
 }
 
-REGISTER_CHECK_WITH_FLAGS("temporary-iterator", TemporaryIterator, CheckLevel0)
+REGISTER_CHECK("temporary-iterator", TemporaryIterator, CheckLevel0)
diff --git a/src/checks/level0/unused-non-trivial-variable.cpp \
b/src/checks/level0/unused-non-trivial-variable.cpp index 753b4f5..d5825dd 100644
--- a/src/checks/level0/unused-non-trivial-variable.cpp
+++ b/src/checks/level0/unused-non-trivial-variable.cpp
@@ -92,4 +92,4 @@ void UnusedNonTrivialVariable::handleVarDecl(VarDecl *varDecl)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("unused-non-trivial-variable", UnusedNonTrivialVariable, \
CheckLevel0) +REGISTER_CHECK("unused-non-trivial-variable", UnusedNonTrivialVariable, \
                CheckLevel0)
diff --git a/src/checks/level0/writingtotemporary.cpp \
b/src/checks/level0/writingtotemporary.cpp index 3cc9ed6..5577005 100644
--- a/src/checks/level0/writingtotemporary.cpp
+++ b/src/checks/level0/writingtotemporary.cpp
@@ -124,4 +124,4 @@ void WritingToTemporary::VisitStmt(clang::Stmt *stmt)
     emitWarning(stmt->getLocStart(), "Call to temporary is a no-op: " + methodName);
 }
 
-REGISTER_CHECK_WITH_FLAGS("writing-to-temporary", WritingToTemporary, CheckLevel0)
+REGISTER_CHECK("writing-to-temporary", WritingToTemporary, CheckLevel0)
diff --git a/src/checks/level0/wrong-qglobalstatic.cpp \
b/src/checks/level0/wrong-qglobalstatic.cpp index 35c9251..02a9f6e 100644
--- a/src/checks/level0/wrong-qglobalstatic.cpp
+++ b/src/checks/level0/wrong-qglobalstatic.cpp
@@ -72,4 +72,4 @@ void WrongQGlobalStatic::VisitStmt(clang::Stmt *stmt)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("wrong-qglobalstatic", WrongQGlobalStatic, CheckLevel0)
+REGISTER_CHECK("wrong-qglobalstatic", WrongQGlobalStatic, CheckLevel0)
diff --git a/src/checks/level1/autounexpectedqstringbuilder.cpp \
b/src/checks/level1/autounexpectedqstringbuilder.cpp index 3e8a540..857cb27 100644
--- a/src/checks/level1/autounexpectedqstringbuilder.cpp
+++ b/src/checks/level1/autounexpectedqstringbuilder.cpp
@@ -74,5 +74,5 @@ void AutoUnexpectedQStringBuilder::VisitDecl(Decl *decl)
 }
 
 const char *const s_checkName = "auto-unexpected-qstringbuilder";
-REGISTER_CHECK_WITH_FLAGS(s_checkName, AutoUnexpectedQStringBuilder, CheckLevel1)
+REGISTER_CHECK(s_checkName, AutoUnexpectedQStringBuilder, CheckLevel1)
 REGISTER_FIXIT(FixitUseQString, "fix-auto-unexpected-qstringbuilder", s_checkName)
diff --git a/src/checks/level1/child-event-qobject-cast.cpp \
b/src/checks/level1/child-event-qobject-cast.cpp index f6f9f35..9812afe 100644
--- a/src/checks/level1/child-event-qobject-cast.cpp
+++ b/src/checks/level1/child-event-qobject-cast.cpp
@@ -80,4 +80,4 @@ void ChildEvent_qobject_cast::VisitDecl(Decl *decl)
 
 
 
-REGISTER_CHECK_WITH_FLAGS("child-event-qobject-cast", ChildEvent_qobject_cast, \
CheckLevel1) +REGISTER_CHECK("child-event-qobject-cast", ChildEvent_qobject_cast, \
                CheckLevel1)
diff --git a/src/checks/level1/ctor-missing-parent-argument.cpp \
b/src/checks/level1/ctor-missing-parent-argument.cpp index c7dd31c..bafc97c 100644
--- a/src/checks/level1/ctor-missing-parent-argument.cpp
+++ b/src/checks/level1/ctor-missing-parent-argument.cpp
@@ -83,4 +83,4 @@ void CtorMissingParentArgument::VisitDecl(Decl *decl)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("ctor-missing-parent-argument", CtorMissingParentArgument, \
CheckLevel2) +REGISTER_CHECK("ctor-missing-parent-argument", \
                CtorMissingParentArgument, CheckLevel2)
diff --git a/src/checks/level1/detachingtemporary.cpp \
b/src/checks/level1/detachingtemporary.cpp index a13f54a..cabe85c 100644
--- a/src/checks/level1/detachingtemporary.cpp
+++ b/src/checks/level1/detachingtemporary.cpp
@@ -190,4 +190,4 @@ bool DetachingTemporary::isDetachingMethod(CXXMethodDecl *method) \
const  return false;
 }
 
-REGISTER_CHECK_WITH_FLAGS("detaching-temporary", DetachingTemporary, CheckLevel1)
+REGISTER_CHECK("detaching-temporary", DetachingTemporary, CheckLevel1)
diff --git a/src/checks/level1/foreach.cpp b/src/checks/level1/foreach.cpp
index c7637bf..7fe5414 100644
--- a/src/checks/level1/foreach.cpp
+++ b/src/checks/level1/foreach.cpp
@@ -221,4 +221,4 @@ bool Foreach::containsDetachments(Stmt *stm, clang::ValueDecl \
*containerValueDec  });
 }
 
-REGISTER_CHECK_WITH_FLAGS("foreach", Foreach, CheckLevel1)
+REGISTER_CHECK("foreach", Foreach, CheckLevel1)
diff --git a/src/checks/level1/incorrect-emit.cpp \
b/src/checks/level1/incorrect-emit.cpp index 3eaa62a..e90df0f 100644
--- a/src/checks/level1/incorrect-emit.cpp
+++ b/src/checks/level1/incorrect-emit.cpp
@@ -134,4 +134,4 @@ bool IncorrectEmit::hasEmitKeyboard(CXXMemberCallExpr *call) \
const  return false;
 }
 
-REGISTER_CHECK_WITH_FLAGS("incorrect-emit", IncorrectEmit, CheckLevel1)
+REGISTER_CHECK("incorrect-emit", IncorrectEmit, CheckLevel1)
diff --git a/src/checks/level1/inefficient-qlist-soft.cpp \
b/src/checks/level1/inefficient-qlist-soft.cpp index bdfbcbc..0c36dbd 100644
--- a/src/checks/level1/inefficient-qlist-soft.cpp
+++ b/src/checks/level1/inefficient-qlist-soft.cpp
@@ -43,4 +43,4 @@ void InefficientQListSoft::VisitStmt(clang::Stmt *stmt)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("inefficient-qlist-soft", InefficientQListSoft, \
CheckLevel1) +REGISTER_CHECK("inefficient-qlist-soft", InefficientQListSoft, \
                CheckLevel1)
diff --git a/src/checks/level1/install-event-filter.cpp \
b/src/checks/level1/install-event-filter.cpp index adc89ea..3a2ee03 100644
--- a/src/checks/level1/install-event-filter.cpp
+++ b/src/checks/level1/install-event-filter.cpp
@@ -69,4 +69,4 @@ void InstallEventFilter::VisitStmt(clang::Stmt *stmt)
     emitWarning(stmt, "'this' should usually be the filter object, not the monitored \
one.");  }
 
-REGISTER_CHECK_WITH_FLAGS("install-event-filter", InstallEventFilter, CheckLevel1)
+REGISTER_CHECK("install-event-filter", InstallEventFilter, CheckLevel1)
diff --git a/src/checks/level1/missing-qobject-macro.cpp \
b/src/checks/level1/missing-qobject-macro.cpp index 60469f6..ab0ff8c 100644
--- a/src/checks/level1/missing-qobject-macro.cpp
+++ b/src/checks/level1/missing-qobject-macro.cpp
@@ -78,4 +78,4 @@ void MissingQ_OBJECT::registerQ_OBJECT(SourceLocation loc)
     m_qobjectMacroLocations.push_back(loc);
 }
 
-REGISTER_CHECK_WITH_FLAGS("missing-qobject-macro", MissingQ_OBJECT, CheckLevel1)
+REGISTER_CHECK("missing-qobject-macro", MissingQ_OBJECT, CheckLevel1)
diff --git a/src/checks/level1/nonpodstatic.cpp b/src/checks/level1/nonpodstatic.cpp
index 2435fd3..f792eed 100644
--- a/src/checks/level1/nonpodstatic.cpp
+++ b/src/checks/level1/nonpodstatic.cpp
@@ -98,4 +98,4 @@ void NonPodStatic::VisitStmt(clang::Stmt *stm)
 
 }
 
-REGISTER_CHECK_WITH_FLAGS("non-pod-global-static", NonPodStatic, CheckLevel1)
+REGISTER_CHECK("non-pod-global-static", NonPodStatic, CheckLevel1)
diff --git a/src/checks/level1/post-event.cpp b/src/checks/level1/post-event.cpp
index d519c80..9c0691b 100644
--- a/src/checks/level1/post-event.cpp
+++ b/src/checks/level1/post-event.cpp
@@ -73,4 +73,4 @@ void PostEvent::VisitStmt(clang::Stmt *stmt)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("post-event", PostEvent, CheckLevel1)
+REGISTER_CHECK("post-event", PostEvent, CheckLevel1)
diff --git a/src/checks/level1/qdeleteall.cpp b/src/checks/level1/qdeleteall.cpp
index 7a37a30..458e560 100644
--- a/src/checks/level1/qdeleteall.cpp
+++ b/src/checks/level1/qdeleteall.cpp
@@ -78,4 +78,4 @@ void QDeleteAll::VisitStmt(clang::Stmt *stmt)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("qdeleteall", QDeleteAll, CheckLevel1)
+REGISTER_CHECK("qdeleteall", QDeleteAll, CheckLevel1)
diff --git a/src/checks/level1/qlatin1string-non-ascii.cpp \
b/src/checks/level1/qlatin1string-non-ascii.cpp index 3933fbb..a08f2a7 100644
--- a/src/checks/level1/qlatin1string-non-ascii.cpp
+++ b/src/checks/level1/qlatin1string-non-ascii.cpp
@@ -51,4 +51,4 @@ void QLatin1StringNonAscii::VisitStmt(clang::Stmt *stmt)
         emitWarning(stmt, "QStringLiteral with non-ascii literal");
 }
 
-REGISTER_CHECK_WITH_FLAGS("qlatin1string-non-ascii", QLatin1StringNonAscii, \
CheckLevel1) +REGISTER_CHECK("qlatin1string-non-ascii", QLatin1StringNonAscii, \
                CheckLevel1)
diff --git a/src/checks/level1/qstring-left.cpp b/src/checks/level1/qstring-left.cpp
index ffe74f9..934b58b 100644
--- a/src/checks/level1/qstring-left.cpp
+++ b/src/checks/level1/qstring-left.cpp
@@ -61,4 +61,4 @@ void QStringLeft::VisitStmt(clang::Stmt *stmt)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("qstring-left", QStringLeft, CheckLevel1)
+REGISTER_CHECK("qstring-left", QStringLeft, CheckLevel1)
diff --git a/src/checks/level1/range-loop.cpp b/src/checks/level1/range-loop.cpp
index 53a5a28..ed7ce1f 100644
--- a/src/checks/level1/range-loop.cpp
+++ b/src/checks/level1/range-loop.cpp
@@ -98,4 +98,4 @@ void RangeLoop::checkPassByConstRefCorrectness(CXXForRangeStmt \
*rangeLoop)  }
 }
 
-REGISTER_CHECK_WITH_FLAGS("range-loop", RangeLoop, CheckLevel1)
+REGISTER_CHECK("range-loop", RangeLoop, CheckLevel1)
diff --git a/src/checks/level1/returning-data-from-temporary.cpp \
b/src/checks/level1/returning-data-from-temporary.cpp index 1638975..a18cc53 100644
--- a/src/checks/level1/returning-data-from-temporary.cpp
+++ b/src/checks/level1/returning-data-from-temporary.cpp
@@ -114,4 +114,4 @@ void ReturningDataFromTemporary::handleConstDataCall()
     // TODO
 }
 
-REGISTER_CHECK_WITH_FLAGS("returning-data-from-temporary", \
ReturningDataFromTemporary, CheckLevel1) \
+REGISTER_CHECK("returning-data-from-temporary", ReturningDataFromTemporary, \
                CheckLevel1)
diff --git a/src/checks/level1/ruleoftwosoft.cpp \
b/src/checks/level1/ruleoftwosoft.cpp index 6bedea3..09fa56e 100644
--- a/src/checks/level1/ruleoftwosoft.cpp
+++ b/src/checks/level1/ruleoftwosoft.cpp
@@ -64,4 +64,4 @@ void RuleOfTwoSoft::VisitStmt(Stmt *s)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("rule-of-two-soft", RuleOfTwoSoft, CheckLevel1)
+REGISTER_CHECK("rule-of-two-soft", RuleOfTwoSoft, CheckLevel1)
diff --git a/src/checks/level2/base-class-event.cpp \
b/src/checks/level2/base-class-event.cpp index 8e655fa..868597c 100644
--- a/src/checks/level2/base-class-event.cpp
+++ b/src/checks/level2/base-class-event.cpp
@@ -83,4 +83,4 @@ void BaseClassEvent::VisitDecl(Decl *decl)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("base-class-event", BaseClassEvent, CheckLevel2)
+REGISTER_CHECK("base-class-event", BaseClassEvent, CheckLevel2)
diff --git a/src/checks/level2/container-inside-loop.cpp \
b/src/checks/level2/container-inside-loop.cpp index bdac69d..dbf02e9 100644
--- a/src/checks/level2/container-inside-loop.cpp
+++ b/src/checks/level2/container-inside-loop.cpp
@@ -68,4 +68,4 @@ void ContainerInsideLoop::VisitStmt(clang::Stmt *stmt)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("container-inside-loop", ContainerInsideLoop, CheckLevel2)
+REGISTER_CHECK("container-inside-loop", ContainerInsideLoop, CheckLevel2)
diff --git a/src/checks/level2/copyable-polymorphic.cpp \
b/src/checks/level2/copyable-polymorphic.cpp index 13134d2..df5246c 100644
--- a/src/checks/level2/copyable-polymorphic.cpp
+++ b/src/checks/level2/copyable-polymorphic.cpp
@@ -56,4 +56,4 @@ void CopyablePolymorphic::VisitDecl(clang::Decl *decl)
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("copyable-polymorphic", CopyablePolymorphic, CheckLevel2)
+REGISTER_CHECK("copyable-polymorphic", CopyablePolymorphic, CheckLevel2)
diff --git a/src/checks/level2/function-args-by-ref.cpp \
b/src/checks/level2/function-args-by-ref.cpp index 9464443..28d95d1 100644
--- a/src/checks/level2/function-args-by-ref.cpp
+++ b/src/checks/level2/function-args-by-ref.cpp
@@ -172,5 +172,5 @@ clang::FixItHint FunctionArgsByRef::fixit(const ParmVarDecl *, \
TypeUtils::QualTy  }
 
 const char *const s_checkName = "function-args-by-ref";
-REGISTER_CHECK_WITH_FLAGS(s_checkName, FunctionArgsByRef, CheckLevel2)
+REGISTER_CHECK(s_checkName, FunctionArgsByRef, CheckLevel2)
 // REGISTER_FIXIT(FixitAll, "fix-func-args", s_checkName)
diff --git a/src/checks/level2/function-args-by-value.cpp \
b/src/checks/level2/function-args-by-value.cpp index efc085a..a057955 100644
--- a/src/checks/level2/function-args-by-value.cpp
+++ b/src/checks/level2/function-args-by-value.cpp
@@ -184,4 +184,4 @@ FixItHint FunctionArgsByValue::fixit(FunctionDecl *func, const \
                ParmVarDecl *para
     return FixItUtils::createReplacement({ startLoc, endLoc }, replacement);
 }
 
-REGISTER_CHECK_WITH_FLAGS("function-args-by-value", FunctionArgsByValue, \
CheckLevel2) +REGISTER_CHECK("function-args-by-value", FunctionArgsByValue, \
                CheckLevel2)
diff --git a/src/checks/level2/globalconstcharpointer.cpp \
b/src/checks/level2/globalconstcharpointer.cpp index 219d6b3..5acb1c8 100644
--- a/src/checks/level2/globalconstcharpointer.cpp
+++ b/src/checks/level2/globalconstcharpointer.cpp
@@ -60,4 +60,4 @@ void GlobalConstCharPointer::VisitDecl(clang::Decl *decl)
     emitWarning(decl->getLocStart(), "non const global char *");
 }
 
-REGISTER_CHECK_WITH_FLAGS("global-const-char-pointer", GlobalConstCharPointer, \
CheckLevel2) +REGISTER_CHECK("global-const-char-pointer", GlobalConstCharPointer, \
                CheckLevel2)
diff --git a/src/checks/level2/implicitcasts.cpp \
b/src/checks/level2/implicitcasts.cpp index 7ccce7a..45cf274 100644
--- a/src/checks/level2/implicitcasts.cpp
+++ b/src/checks/level2/implicitcasts.cpp
@@ -182,4 +182,4 @@ bool ImplicitCasts::isMacroToIgnore(SourceLocation loc) const
 }
 
 
-REGISTER_CHECK_WITH_FLAGS("implicit-casts", ImplicitCasts, CheckLevel2)
+REGISTER_CHECK("implicit-casts", ImplicitCasts, CheckLevel2)
diff --git a/src/checks/level2/missing-type-info.cpp \
b/src/checks/level2/missing-type-info.cpp index aea0d69..3e8fb53 100644
--- a/src/checks/level2/missing-type-info.cpp
+++ b/src/checks/level2/missing-type-info.cpp
@@ -88,4 +88,4 @@ bool MissingTypeinfo::typeHasClassification(QualType qt) const
     return m_typeInfos.find(StringUtils::simpleTypeName(qt, lo())) != \
m_typeInfos.end();  }
 
-REGISTER_CHECK_WITH_FLAGS("missing-typeinfo", MissingTypeinfo, CheckLevel2)
+REGISTER_CHECK("missing-typeinfo", MissingTypeinfo, CheckLevel2)
diff --git a/src/checks/level2/oldstyleconnect.cpp \
b/src/checks/level2/oldstyleconnect.cpp index 886fa53..4185bfc 100644
--- a/src/checks/level2/oldstyleconnect.cpp
+++ b/src/checks/level2/oldstyleconnect.cpp
@@ -419,6 +419,5 @@ vector<FixItHint> OldStyleConnect::fixits(int classification, \
CallExpr *call)  }
 
 const char *const s_checkName = "old-style-connect";
-REGISTER_CHECK_WITH_FLAGS(s_checkName, OldStyleConnect, CheckLevel2)
+REGISTER_CHECK(s_checkName, OldStyleConnect, CheckLevel2)
 REGISTER_FIXIT(FixItConnects, "fix-old-style-connect", s_checkName)
-
diff --git a/src/checks/level2/qstring-allocations.cpp \
b/src/checks/level2/qstring-allocations.cpp index 0c07031..9c21700 100644
--- a/src/checks/level2/qstring-allocations.cpp
+++ b/src/checks/level2/qstring-allocations.cpp
@@ -570,7 +570,7 @@ vector<string> QStringAllocations::supportedOptions() const
 }
 
 const char *const s_checkName = "qstring-allocations";
-REGISTER_CHECK_WITH_FLAGS(s_checkName, QStringAllocations, CheckLevel2)
+REGISTER_CHECK(s_checkName, QStringAllocations, CheckLevel2)
 REGISTER_FIXIT(QLatin1StringAllocations, "fix-qlatin1string-allocations", \
s_checkName)  REGISTER_FIXIT(FromLatin1_FromUtf8Allocations, \
"fix-fromLatin1_fromUtf8-allocations", s_checkName)  \
                REGISTER_FIXIT(CharPtrAllocations, "fix-fromCharPtrAllocations", \
                s_checkName)
diff --git a/src/checks/level2/reservecandidates.cpp \
b/src/checks/level2/reservecandidates.cpp index 20841d8..def7aec 100644
--- a/src/checks/level2/reservecandidates.cpp
+++ b/src/checks/level2/reservecandidates.cpp
@@ -324,4 +324,4 @@ bool ReserveCandidates::isInComplexLoop(clang::Stmt *s, \
SourceLocation declLocat  return false;
 }
 
-REGISTER_CHECK_WITH_FLAGS("reserve-candidates", ReserveCandidates, CheckLevel2)
+REGISTER_CHECK("reserve-candidates", ReserveCandidates, CheckLevel2)
diff --git a/src/checks/level2/returning-void-expression.cpp \
b/src/checks/level2/returning-void-expression.cpp index 26dd4b1..8b37b17 100644
--- a/src/checks/level2/returning-void-expression.cpp
+++ b/src/checks/level2/returning-void-expression.cpp
@@ -60,4 +60,4 @@ void ReturningVoidExpression::VisitStmt(clang::Stmt *stmt)
     emitWarning(stmt, "Returning a void expression");
 }
 
-REGISTER_CHECK_WITH_FLAGS("returning-void-expression", ReturningVoidExpression, \
CheckLevel2) +REGISTER_CHECK("returning-void-expression", ReturningVoidExpression, \
                CheckLevel2)
diff --git a/src/checks/level2/ruleofthree.cpp b/src/checks/level2/ruleofthree.cpp
index ea30106..dfd2ed8 100644
--- a/src/checks/level2/ruleofthree.cpp
+++ b/src/checks/level2/ruleofthree.cpp
@@ -153,4 +153,4 @@ bool RuleOfThree::shouldIgnoreType(const std::string &className) \
const  return clazy_std::contains(types, className);
 }
 
-REGISTER_CHECK_WITH_FLAGS("rule-of-three", RuleOfThree, CheckLevel2)
+REGISTER_CHECK("rule-of-three", RuleOfThree, CheckLevel2)
diff --git a/src/checks/level2/virtualcallsfromctor.cpp \
b/src/checks/level2/virtualcallsfromctor.cpp index d45c24b..b452e7b 100644
--- a/src/checks/level2/virtualcallsfromctor.cpp
+++ b/src/checks/level2/virtualcallsfromctor.cpp
@@ -101,4 +101,4 @@ SourceLocation \
VirtualCallsFromCTOR::containsVirtualCall(clang::CXXRecordDecl *c  return {};
 }
 
-REGISTER_CHECK_WITH_FLAGS("virtual-call-ctor", VirtualCallsFromCTOR, CheckLevel2)
+REGISTER_CHECK("virtual-call-ctor", VirtualCallsFromCTOR, CheckLevel2)
diff --git a/src/checks/level3/assertwithsideeffects.cpp \
b/src/checks/level3/assertwithsideeffects.cpp index ac7b13e..a71d297 100644
--- a/src/checks/level3/assertwithsideeffects.cpp
+++ b/src/checks/level3/assertwithsideeffects.cpp
@@ -129,4 +129,4 @@ void AssertWithSideEffects::VisitStmt(Stmt *stm)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("assert-with-side-effects", AssertWithSideEffects, \
CheckLevel3) +REGISTER_CHECK("assert-with-side-effects", AssertWithSideEffects, \
                CheckLevel3)
diff --git a/src/checks/level3/detachingmember.cpp \
b/src/checks/level3/detachingmember.cpp index 505a394..ebf25bb 100644
--- a/src/checks/level3/detachingmember.cpp
+++ b/src/checks/level3/detachingmember.cpp
@@ -137,4 +137,4 @@ void DetachingMember::VisitStmt(clang::Stmt *stm)
     emitWarning(stm->getLocStart(), "Potential detachment due to calling " + \
method->getQualifiedNameAsString() + "()");  }
 
-REGISTER_CHECK_WITH_FLAGS("detaching-member", DetachingMember, CheckLevel3)
+REGISTER_CHECK("detaching-member", DetachingMember, CheckLevel3)
diff --git a/src/checks/level3/dynamic_cast.cpp b/src/checks/level3/dynamic_cast.cpp
index 96c7da3..bc180ad 100644
--- a/src/checks/level3/dynamic_cast.cpp
+++ b/src/checks/level3/dynamic_cast.cpp
@@ -63,4 +63,4 @@ void BogusDynamicCast::VisitStmt(clang::Stmt *stm)
     }
 }
 
-REGISTER_CHECK_WITH_FLAGS("bogus-dynamic-cast", BogusDynamicCast, CheckLevel3)
+REGISTER_CHECK("bogus-dynamic-cast", BogusDynamicCast, CheckLevel3)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic