Skip to content

Commit 0a42f95

Browse files
committed
Mute clang-tidy warnings
1 parent 2273e64 commit 0a42f95

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

extras/tests/JsonDocument/assignment.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ TEST_CASE("JsonDocument assignment") {
6969
doc2 = std::move(doc1);
7070

7171
REQUIRE(doc2.as<std::string>() == "{\"hello\":\"world\"}");
72+
73+
// NOLINTNEXTLINE(clang-analyzer-cplusplus.Move)
7274
REQUIRE(doc1.as<std::string>() == "null");
7375
}
7476
REQUIRE(spyingAllocator.log() == AllocatorLog{

extras/tests/JsonDocument/constructor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ TEST_CASE("JsonDocument constructor") {
4444
JsonDocument doc2(std::move(doc1));
4545

4646
REQUIRE(doc2.as<std::string>() == "The size of this string is 32!!");
47+
48+
// NOLINTNEXTLINE(clang-analyzer-cplusplus.Move)
4749
REQUIRE(doc1.as<std::string>() == "null");
4850
}
4951
REQUIRE(spyingAllocator.log() == AllocatorLog{

0 commit comments

Comments
 (0)