diff options
author | Jacques Lucke <jacques@blender.org> | 2020-09-03 17:26:40 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-09-03 17:26:45 +0300 |
commit | 10d61f34bb8df4008cf96b748f8cd38b4665443c (patch) | |
tree | 7b11441079b360c923630659e7949461f38d6c79 /source/blender/blenlib/tests/BLI_map_test.cc | |
parent | 519b2f937f3281031d8970cbfc0d26c3acf308a5 (diff) |
Fix clang tidy errors in tests
Diffstat (limited to 'source/blender/blenlib/tests/BLI_map_test.cc')
-rw-r--r-- | source/blender/blenlib/tests/BLI_map_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/tests/BLI_map_test.cc b/source/blender/blenlib/tests/BLI_map_test.cc index 7b4a484e736..91c6335b949 100644 --- a/source/blender/blenlib/tests/BLI_map_test.cc +++ b/source/blender/blenlib/tests/BLI_map_test.cc @@ -498,7 +498,7 @@ TEST(map, MoveConstructorExceptions) map.add(2, 2); map.lookup(1).throw_during_move = true; EXPECT_ANY_THROW({ MapType map_moved(std::move(map)); }); - map.add(5, 5); + map.add(5, 5); /* NOLINT: bugprone-use-after-move */ } TEST(map, AddNewExceptions) @@ -532,7 +532,7 @@ TEST(map, PopExceptions) Map<ExceptionThrower, ExceptionThrower> map; map.add(3, 3); map.lookup(3).throw_during_move = true; - EXPECT_ANY_THROW({ map.pop(3); }); + EXPECT_ANY_THROW({ map.pop(3); }); /* NOLINT: bugprone-throw-keyword-missing */ EXPECT_EQ(map.size(), 1); map.add(1, 1); EXPECT_EQ(map.size(), 2); |