diff options
| author | Gabor Horvath <xazax.hun@gmail.com> | 2016-11-16 14:42:10 +0000 |
|---|---|---|
| committer | Gabor Horvath <xazax.hun@gmail.com> | 2016-11-16 14:42:10 +0000 |
| commit | 678dd8fc62c5f57cca2b304376538a9f2fe3fb30 (patch) | |
| tree | 2bfc5baeacc679f0340eba25a352226e70131484 /clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp | |
| parent | 9e355bc5bb4be8cb49f083b71d0542de386e0b13 (diff) | |
| download | bcm5719-llvm-678dd8fc62c5f57cca2b304376538a9f2fe3fb30.tar.gz bcm5719-llvm-678dd8fc62c5f57cca2b304376538a9f2fe3fb30.zip | |
[clang-tidy] New check to prefer transparent functors to non-transparent ones.
llvm-svn: 287107
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 de8ed0aa887..63147dae4a4 100644 --- a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp @@ -27,6 +27,7 @@ #include "UseEqualsDeleteCheck.h" #include "UseNullptrCheck.h" #include "UseOverrideCheck.h" +#include "UseTransparentFunctorsCheck.h" #include "UseUsingCheck.h" using namespace clang::ast_matchers; @@ -61,6 +62,8 @@ public: "modernize-use-equals-delete"); CheckFactories.registerCheck<UseNullptrCheck>("modernize-use-nullptr"); CheckFactories.registerCheck<UseOverrideCheck>("modernize-use-override"); + CheckFactories.registerCheck<UseTransparentFunctorsCheck>( + "modernize-use-transparent-functors"); CheckFactories.registerCheck<UseUsingCheck>("modernize-use-using"); } |

