summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-09-13 23:50:20 +0000
committerVedant Kumar <vsk@apple.com>2018-09-13 23:50:20 +0000
commit8d8579ff8fb8339e99a8729cc7faa1acafa19bc7 (patch)
tree342dad68fdb76ea49b7eb49365d0c5bc917750ec
parent35d303adbfa2f9331058de0d9ad007e740437fb2 (diff)
downloadbcm5719-llvm-8d8579ff8fb8339e99a8729cc7faa1acafa19bc7.tar.gz
bcm5719-llvm-8d8579ff8fb8339e99a8729cc7faa1acafa19bc7.zip
Update a clang-tidy test for r342194
The location of implicit captures has changed. Update a use-after-move checker test to reflect that. This fixes a bot failure: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/36500 llvm-svn: 342195
-rw-r--r--clang-tools-extra/test/clang-tidy/bugprone-use-after-move.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-tidy/bugprone-use-after-move.cpp b/clang-tools-extra/test/clang-tidy/bugprone-use-after-move.cpp
index 2d747b47cb7..e4596c8ea4b 100644
--- a/clang-tools-extra/test/clang-tidy/bugprone-use-after-move.cpp
+++ b/clang-tools-extra/test/clang-tidy/bugprone-use-after-move.cpp
@@ -339,7 +339,7 @@ void lambdas() {
A a;
std::move(a);
auto lambda = [=]() { a.foo(); };
- // CHECK-MESSAGES: [[@LINE-1]]:27: warning: 'a' used after it was moved
+ // CHECK-MESSAGES: [[@LINE-1]]:20: warning: 'a' used after it was moved
// CHECK-MESSAGES: [[@LINE-3]]:5: note: move occurred here
}
// Same tests but for capture by reference.
@@ -354,7 +354,7 @@ void lambdas() {
A a;
std::move(a);
auto lambda = [&]() { a.foo(); };
- // CHECK-MESSAGES: [[@LINE-1]]:27: warning: 'a' used after it was moved
+ // CHECK-MESSAGES: [[@LINE-1]]:20: warning: 'a' used after it was moved
// CHECK-MESSAGES: [[@LINE-3]]:5: note: move occurred here
}
// But don't warn if the move happened after the capture.
OpenPOWER on IntegriCloud