summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-string-constructor.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-12-13 16:38:45 +0000
committerAlexander Kornienko <alexfh@google.com>2016-12-13 16:38:45 +0000
commit1647f3855fe517a47704d399a30984004e759e89 (patch)
tree8265da239a62e2ec7486be06f1d65c24a39e51fa /clang-tools-extra/test/clang-tidy/misc-string-constructor.cpp
parentebdfb9cf0cea0bd9ae91052b714397569d1c653a (diff)
downloadbcm5719-llvm-1647f3855fe517a47704d399a30984004e759e89.tar.gz
bcm5719-llvm-1647f3855fe517a47704d399a30984004e759e89.zip
Remove trailing whitespace in docs and clang-tidy sources.
llvm-svn: 289547
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-string-constructor.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/misc-string-constructor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-string-constructor.cpp b/clang-tools-extra/test/clang-tidy/misc-string-constructor.cpp
index f6ed7eb83e2..85ae7450f02 100644
--- a/clang-tools-extra/test/clang-tidy/misc-string-constructor.cpp
+++ b/clang-tools-extra/test/clang-tidy/misc-string-constructor.cpp
@@ -22,17 +22,17 @@ 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-FIXES: std::string str(4, 'x');
+ // 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
- // CHECK-FIXES: std::wstring wstr(4, L'x');
+ // CHECK-FIXES: std::wstring wstr(4, L'x');
std::string s0(0, 'x');
// CHECK-MESSAGES: [[@LINE-1]]:15: warning: constructor creating an empty string
std::string s1(-4, 'x');
// CHECK-MESSAGES: [[@LINE-1]]:15: warning: negative value used as length parameter
std::string s2(0x1000000, 'x');
// CHECK-MESSAGES: [[@LINE-1]]:15: warning: suspicious large length parameter
-
+
std::string q0("test", 0);
// CHECK-MESSAGES: [[@LINE-1]]:15: warning: constructor creating an empty string
std::string q1(kText, -4);
OpenPOWER on IntegriCloud