diff options
| author | Alexander Kornienko <alexfh@google.com> | 2017-11-23 13:49:14 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2017-11-23 13:49:14 +0000 |
| commit | a3251bf24c8bc0ebe8fb09e0d59dbc70fa706859 (patch) | |
| tree | 2fa661b80c864922a761b60d6ba32ab86736f1d4 /clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp | |
| parent | c01f7f131bd82659fa484cfd6fc9b8a495b2e5ae (diff) | |
| download | bcm5719-llvm-a3251bf24c8bc0ebe8fb09e0d59dbc70fa706859.tar.gz bcm5719-llvm-a3251bf24c8bc0ebe8fb09e0d59dbc70fa706859.zip | |
[clang-tidy] rename_check.py misc-string-constructor bugprone-string-constructor
Summary:
Rename misc-string-constructor to bugprone-string-constructor +
manually update the lenght of '==='s in the doc file.
Reviewers: hokein, xazax.hun
Reviewed By: hokein, xazax.hun
Subscribers: mgorny, xazax.hun, cfe-commits
Differential Revision: https://reviews.llvm.org/D40388
llvm-svn: 318916
Diffstat (limited to 'clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp b/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp index a5b3d640b20..1719500fb86 100644 --- a/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp @@ -13,6 +13,7 @@ #include "CopyConstructorInitCheck.h" #include "IntegerDivisionCheck.h" #include "MisplacedOperatorInStrlenInAllocCheck.h" +#include "StringConstructorCheck.h" #include "SuspiciousMemsetUsageCheck.h" #include "UndefinedMemoryManipulationCheck.h" @@ -29,6 +30,8 @@ public: "bugprone-integer-division"); CheckFactories.registerCheck<MisplacedOperatorInStrlenInAllocCheck>( "bugprone-misplaced-operator-in-strlen-in-alloc"); + CheckFactories.registerCheck<StringConstructorCheck>( + "bugprone-string-constructor"); CheckFactories.registerCheck<SuspiciousMemsetUsageCheck>( "bugprone-suspicious-memset-usage"); CheckFactories.registerCheck<UndefinedMemoryManipulationCheck>( |

