hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits.
http://reviews.llvm.org/D15802 Files: clang-tidy/add_new_check.py clang-tidy/cert/CERTTidyModule.cpp clang-tidy/cert/CMakeLists.txt docs/clang-tidy/checks/list.rst Index: docs/clang-tidy/checks/list.rst =================================================================== --- docs/clang-tidy/checks/list.rst +++ docs/clang-tidy/checks/list.rst @@ -2,6 +2,7 @@ ========================= .. toctree:: + CERT-ttest cert-setlongjmp cert-static-object-exception cert-thrown-exception-type Index: clang-tidy/cert/CMakeLists.txt =================================================================== --- clang-tidy/cert/CMakeLists.txt +++ clang-tidy/cert/CMakeLists.txt @@ -5,6 +5,7 @@ SetLongJmpCheck.cpp StaticObjectExceptionCheck.cpp ThrownExceptionTypeCheck.cpp + TtestCheck.cpp VariadicFunctionDefCheck.cpp LINK_LIBS Index: clang-tidy/cert/CERTTidyModule.cpp =================================================================== --- clang-tidy/cert/CERTTidyModule.cpp +++ clang-tidy/cert/CERTTidyModule.cpp @@ -19,6 +19,7 @@ #include "SetLongJmpCheck.h" #include "StaticObjectExceptionCheck.h" #include "ThrownExceptionTypeCheck.h" +#include "TtestCheck.h" #include "VariadicFunctionDefCheck.h" namespace clang { @@ -30,6 +31,8 @@ void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { // C++ checkers // DCL + CheckFactories.registerCheck<TtestCheck>( + "CERT-ttest"); CheckFactories.registerCheck<VariadicFunctionDefCheck>( "cert-dcl50-cpp"); CheckFactories.registerCheck<misc::NewDeleteOverloadsCheck>( Index: clang-tidy/add_new_check.py =================================================================== --- clang-tidy/add_new_check.py +++ clang-tidy/add_new_check.py @@ -92,7 +92,6 @@ } // namespace clang #endif // %(header_guard)s - """ % {'header_guard': header_guard, 'check_name': check_name_camel, 'check_name_dashes': check_name_dashes, @@ -146,7 +145,6 @@ } // namespace %(module)s } // namespace tidy } // namespace clang - """ % {'check_name': check_name_camel, 'module': module})
Index: docs/clang-tidy/checks/list.rst =================================================================== --- docs/clang-tidy/checks/list.rst +++ docs/clang-tidy/checks/list.rst @@ -2,6 +2,7 @@ ========================= .. toctree:: + CERT-ttest cert-setlongjmp cert-static-object-exception cert-thrown-exception-type Index: clang-tidy/cert/CMakeLists.txt =================================================================== --- clang-tidy/cert/CMakeLists.txt +++ clang-tidy/cert/CMakeLists.txt @@ -5,6 +5,7 @@ SetLongJmpCheck.cpp StaticObjectExceptionCheck.cpp ThrownExceptionTypeCheck.cpp + TtestCheck.cpp VariadicFunctionDefCheck.cpp LINK_LIBS Index: clang-tidy/cert/CERTTidyModule.cpp =================================================================== --- clang-tidy/cert/CERTTidyModule.cpp +++ clang-tidy/cert/CERTTidyModule.cpp @@ -19,6 +19,7 @@ #include "SetLongJmpCheck.h" #include "StaticObjectExceptionCheck.h" #include "ThrownExceptionTypeCheck.h" +#include "TtestCheck.h" #include "VariadicFunctionDefCheck.h" namespace clang { @@ -30,6 +31,8 @@ void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { // C++ checkers // DCL + CheckFactories.registerCheck<TtestCheck>( + "CERT-ttest"); CheckFactories.registerCheck<VariadicFunctionDefCheck>( "cert-dcl50-cpp"); CheckFactories.registerCheck<misc::NewDeleteOverloadsCheck>( Index: clang-tidy/add_new_check.py =================================================================== --- clang-tidy/add_new_check.py +++ clang-tidy/add_new_check.py @@ -92,7 +92,6 @@ } // namespace clang #endif // %(header_guard)s - """ % {'header_guard': header_guard, 'check_name': check_name_camel, 'check_name_dashes': check_name_dashes, @@ -146,7 +145,6 @@ } // namespace %(module)s } // namespace tidy } // namespace clang - """ % {'check_name': check_name_camel, 'module': module})
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits