summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2018-02-15 09:08:51 +0000
committerGabor Horvath <xazax.hun@gmail.com>2018-02-15 09:08:51 +0000
commitc23f924b752151a59694146225261b17d68693d7 (patch)
tree7eef1ac3e0f63fbc5e71907ee1854879aa0efbd9 /clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
parentce4f0af3023fb3e023030d83998e3055545f13d0 (diff)
downloadbcm5719-llvm-c23f924b752151a59694146225261b17d68693d7.tar.gz
bcm5719-llvm-c23f924b752151a59694146225261b17d68693d7.zip
[clang-tidy] New checker for exceptions that are created but not thrown
Patch by: Kristof Umann Differential Revision: https://reviews.llvm.org/D43120 llvm-svn: 325222
Diffstat (limited to 'clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp b/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
index 3b7314298d7..68effd14c88 100644
--- a/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
@@ -25,6 +25,7 @@
#include "MultipleStatementMacroCheck.h"
#include "StringConstructorCheck.h"
#include "SuspiciousMemsetUsageCheck.h"
+#include "ThrowKeywordMissingCheck.h"
#include "UndefinedMemoryManipulationCheck.h"
#include "UseAfterMoveCheck.h"
#include "VirtualNearMissCheck.h"
@@ -66,6 +67,8 @@ public:
"bugprone-string-constructor");
CheckFactories.registerCheck<SuspiciousMemsetUsageCheck>(
"bugprone-suspicious-memset-usage");
+ CheckFactories.registerCheck<ThrowKeywordMissingCheck>(
+ "bugprone-throw-keyword-missing");
CheckFactories.registerCheck<UndefinedMemoryManipulationCheck>(
"bugprone-undefined-memory-manipulation");
CheckFactories.registerCheck<UseAfterMoveCheck>(
OpenPOWER on IntegriCloud