diff options
| author | Gabor Horvath <xazax.hun@gmail.com> | 2017-07-12 13:43:35 +0000 |
|---|---|---|
| committer | Gabor Horvath <xazax.hun@gmail.com> | 2017-07-12 13:43:35 +0000 |
| commit | 53145213285e4322ec8cfbdd680840d89e230aa5 (patch) | |
| tree | 515d3ac05cde8e6f35cd738c9d57a10bcdb65fe0 /clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp | |
| parent | 8dfbc772d7639162f9ee2628de7eea94cd2b9b49 (diff) | |
| download | bcm5719-llvm-53145213285e4322ec8cfbdd680840d89e230aa5.tar.gz bcm5719-llvm-53145213285e4322ec8cfbdd680840d89e230aa5.zip | |
[clang-tidy] Add new modernize use unary assert check
Patch by: Lilla Barancsuk
Differential Revision: https://reviews.llvm.org/D35257
llvm-svn: 307791
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 f8c50e0c439..a2f05d6386e 100644 --- a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp @@ -22,6 +22,7 @@ #include "ReplaceRandomShuffleCheck.h" #include "ReturnBracedInitListCheck.h" #include "ShrinkToFitCheck.h" +#include "UnaryStaticAssertCheck.h" #include "UseAutoCheck.h" #include "UseBoolLiteralsCheck.h" #include "UseDefaultMemberInitCheck.h" @@ -61,6 +62,8 @@ public: CheckFactories.registerCheck<ReturnBracedInitListCheck>( "modernize-return-braced-init-list"); CheckFactories.registerCheck<ShrinkToFitCheck>("modernize-shrink-to-fit"); + CheckFactories.registerCheck<UnaryStaticAssertCheck>( + "modernize-unary-static-assert"); CheckFactories.registerCheck<UseAutoCheck>("modernize-use-auto"); CheckFactories.registerCheck<UseBoolLiteralsCheck>( "modernize-use-bool-literals"); |

