diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-15 15:16:50 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-15 15:35:45 +0300 |
commit | 2d2bbbf191170108ad0d8ac8fa9c6cda4f7c42af (patch) | |
tree | 8f49d1485d278765f7a0032d42d4ccdc8f540c2a /test/util/image.test.cpp | |
parent | 60eb3f5723b96618db00a22458f6d7d23dcd4daf (diff) | |
download | qtlocation-mapboxgl-upstream/clang-tidy-nolint.tar.gz |
[tidy] Added misc-use-after-moveupstream/clang-tidy-nolint
Diffstat (limited to 'test/util/image.test.cpp')
-rw-r--r-- | test/util/image.test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/util/image.test.cpp b/test/util/image.test.cpp index a7114e65ec..07dc534aa5 100644 --- a/test/util/image.test.cpp +++ b/test/util/image.test.cpp @@ -124,8 +124,9 @@ TEST(Image, Move) { // NOLINT auto moved = std::move(rgba); - EXPECT_EQ(0u, rgba.size.width); - EXPECT_EQ(nullptr, rgba.data.get()); + // warning: 'rgba' used after it was moved [misc-use-after-move] + EXPECT_EQ(0u, rgba.size.width); // NOLINT + EXPECT_EQ(nullptr, rgba.data.get()); // NOLINT EXPECT_EQ(254, moved.data[1]); EXPECT_EQ(1u, moved.size.width); } |