summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2016-12-20 21:26:07 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2016-12-20 21:26:07 +0000
commitd5508b4e89f8e3dcbf83d9eadbb77b2420ea5202 (patch)
tree75f689e0508a9a83803942bb3ca1ef7fb3fba693 /clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
parente3be61c1393604e9e0efa98c4c2352c05b32f61e (diff)
downloadbcm5719-llvm-d5508b4e89f8e3dcbf83d9eadbb77b2420ea5202.tar.gz
bcm5719-llvm-d5508b4e89f8e3dcbf83d9eadbb77b2420ea5202.zip
[clang-tidy] Add modernize-use-default-member-init check
Summary: Fixes PR18858 Reviewers: alexfh, hokein, aaron.ballman Subscribers: JDevlieghere, Eugene.Zelenko, Prazek, mgorny, cfe-commits, modocache Differential Revision: https://reviews.llvm.org/D26750 llvm-svn: 290202
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
index 07b450dcf50..3274f5d60b4 100644
--- a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
@@ -22,6 +22,7 @@
#include "ShrinkToFitCheck.h"
#include "UseAutoCheck.h"
#include "UseBoolLiteralsCheck.h"
+#include "UseDefaultMemberInitCheck.h"
#include "UseEmplaceCheck.h"
#include "UseEqualsDefaultCheck.h"
#include "UseEqualsDeleteCheck.h"
@@ -56,6 +57,8 @@ public:
CheckFactories.registerCheck<UseAutoCheck>("modernize-use-auto");
CheckFactories.registerCheck<UseBoolLiteralsCheck>(
"modernize-use-bool-literals");
+ CheckFactories.registerCheck<UseDefaultMemberInitCheck>(
+ "modernize-use-default-member-init");
CheckFactories.registerCheck<UseEmplaceCheck>("modernize-use-emplace");
CheckFactories.registerCheck<UseEqualsDefaultCheck>("modernize-use-equals-default");
CheckFactories.registerCheck<UseEqualsDeleteCheck>(
OpenPOWER on IntegriCloud