diff options
| author | Jonathan Coe <jbcoe@me.com> | 2016-05-12 20:06:04 +0000 |
|---|---|---|
| committer | Jonathan Coe <jbcoe@me.com> | 2016-05-12 20:06:04 +0000 |
| commit | a30c69c9e43bef7a1e037a3f183531543f7676b0 (patch) | |
| tree | 7571d9d1281e88bbdfc656427caa24cf95fe0d28 /clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp | |
| parent | 3fe71581743ceb838b113ee728e6de7f7ee8d25d (diff) | |
| download | bcm5719-llvm-a30c69c9e43bef7a1e037a3f183531543f7676b0.tar.gz bcm5719-llvm-a30c69c9e43bef7a1e037a3f183531543f7676b0.zip | |
[clang-tidy] Adds modernize-avoid-bind check
Summary:
This patch adds a check that replaces std::bind with a lambda.
Not yet working for member functions.
Reviewers: aaron.ballman, alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D16962
llvm-svn: 269341
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp | 3 |
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 529e905ef8f..da986a2afcc 100644 --- a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp @@ -10,6 +10,7 @@ #include "../ClangTidy.h" #include "../ClangTidyModule.h" #include "../ClangTidyModuleRegistry.h" +#include "AvoidBindCheck.h" #include "DeprecatedHeadersCheck.h" #include "LoopConvertCheck.h" #include "MakeSharedCheck.h" @@ -34,6 +35,8 @@ namespace modernize { class ModernizeModule : public ClangTidyModule { public: void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { + CheckFactories.registerCheck<AvoidBindCheck>( + "modernize-avoid-bind"); CheckFactories.registerCheck<DeprecatedHeadersCheck>( "modernize-deprecated-headers"); CheckFactories.registerCheck<LoopConvertCheck>("modernize-loop-convert"); |

