summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-11-23 13:49:14 +0000
committerAlexander Kornienko <alexfh@google.com>2017-11-23 13:49:14 +0000
commit2e84f57c19a46b707fe89128279670ed1b55da66 (patch)
tree781ae6c693a851578ac230add0b88775d3a73819 /test
parent57be59a14c9057e2c54b5f286da341868ce23e0f (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@318916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/clang-tidy/bugprone-string-constructor.cpp (renamed from test/clang-tidy/misc-string-constructor.cpp)4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/clang-tidy/misc-string-constructor.cpp b/test/clang-tidy/bugprone-string-constructor.cpp
index 85ae7450..51d91305 100644
--- a/test/clang-tidy/misc-string-constructor.cpp
+++ b/test/clang-tidy/bugprone-string-constructor.cpp
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy %s misc-string-constructor %t
+// RUN: %check_clang_tidy %s bugprone-string-constructor %t
namespace std {
template <typename T>
@@ -21,7 +21,7 @@ extern const char kText3[];
void Test() {
std::string str('x', 4);
- // CHECK-MESSAGES: [[@LINE-1]]:15: warning: string constructor parameters are probably swapped; expecting string(count, character) [misc-string-constructor]
+ // CHECK-MESSAGES: [[@LINE-1]]:15: warning: string constructor parameters are probably swapped; expecting string(count, character) [bugprone-string-constructor]
// CHECK-FIXES: std::string str(4, 'x');
std::wstring wstr(L'x', 4);
// CHECK-MESSAGES: [[@LINE-1]]:16: warning: string constructor parameters are probably swapped