summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-07-11 13:44:51 +0000
committerAlexander Kornienko <alexfh@google.com>2014-07-11 13:44:51 +0000
commita2c4950e6e32e7f39e9fbec90e57024e410a9bde (patch)
treecb0cbb5ad91a2f100eeb59b7685d377dd93eaf25 /clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp
parentc97126b1c967d4bc82246b6cc27b312040bd8e6c (diff)
downloadbcm5719-llvm-a2c4950e6e32e7f39e9fbec90e57024e410a9bde.tar.gz
bcm5719-llvm-a2c4950e6e32e7f39e9fbec90e57024e410a9bde.zip
Modify the tests to use FileCheck -implicit-check-not option being proposed in D4462
Reviewers: djasper, sbenza, bkramer Reviewed By: bkramer Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4463 llvm-svn: 212814
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp b/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp
index e5df35ad9de..f36544efbb1 100644
--- a/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp
+++ b/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp
@@ -15,19 +15,19 @@ using namespace llvm;
void foo(const Twine &x);
static Twine Moo = Twine("bark") + "bah";
-// CHECK-MESSAGES: twine variables are prone to use-after-free bugs
+// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: twine variables are prone to use-after-free bugs
// CHECK-MESSAGES: note: FIX-IT applied suggested code changes
// CHECK-FIXES: static std::string Moo = (Twine("bark") + "bah").str();
int main() {
const Twine t = Twine("a") + "b" + Twine(42);
-// CHECK-MESSAGES: twine variables are prone to use-after-free bugs
+// CHECK-MESSAGES: :[[@LINE-1]]:15: warning: twine variables are prone to use-after-free bugs
// CHECK-MESSAGES: note: FIX-IT applied suggested code changes
// CHECK-FIXES: std::string t = (Twine("a") + "b" + Twine(42)).str();
foo(Twine("a") + "b");
Twine Prefix = false ? "__INT_FAST" : "__UINT_FAST";
-// CHECK-MESSAGES: twine variables are prone to use-after-free bugs
+// CHECK-MESSAGES: :[[@LINE-1]]:9: warning: twine variables are prone to use-after-free bugs
// CHECK-MESSAGES: note: FIX-IT applied suggested code changes
// CHECK-FIXES: const char * Prefix = false ? "__INT_FAST" : "__UINT_FAST";
}
OpenPOWER on IntegriCloud