summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
diff options
context:
space:
mode:
authorSamuel Benzaquen <sbenza@google.com>2015-10-19 21:49:51 +0000
committerSamuel Benzaquen <sbenza@google.com>2015-10-19 21:49:51 +0000
commitdaef16319972310b4803eb09bc62e502f695e3bb (patch)
tree20f365956c1b175f008d1ad4e4bcabb512c28059 /clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
parentd77de6495ec73d7d38b0f2e564bfa65fe7eb64db (diff)
downloadbcm5719-llvm-daef16319972310b4803eb09bc62e502f695e3bb.tar.gz
bcm5719-llvm-daef16319972310b4803eb09bc62e502f695e3bb.zip
Added check uniqueptr-delete-release to replace "delete x.release()" with "x = nullptr"
Reviewers: alexfh Differential Revision: http://reviews.llvm.org/D13179 llvm-svn: 250742
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp b/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
index 40c00d4f45c..14c24a33130 100644
--- a/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
@@ -20,6 +20,7 @@
#include "RedundantSmartptrGetCheck.h"
#include "RedundantStringCStrCheck.h"
#include "SimplifyBooleanExprCheck.h"
+#include "UniqueptrDeleteReleaseCheck.h"
namespace clang {
namespace tidy {
@@ -40,6 +41,8 @@ public:
"readability-identifier-naming");
CheckFactories.registerCheck<InconsistentDeclarationParameterNameCheck>(
"readability-inconsistent-declaration-parameter-name");
+ CheckFactories.registerCheck<UniqueptrDeleteReleaseCheck>(
+ "readability-uniqueptr-delete-release");
CheckFactories.registerCheck<readability::NamedParameterCheck>(
"readability-named-parameter");
CheckFactories.registerCheck<RedundantSmartptrGetCheck>(
OpenPOWER on IntegriCloud