Skip to content

Commit

Permalink
Silence clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 22, 2020
1 parent d731819 commit fa0c625
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/json/value_basics.cpp
Expand Up @@ -164,9 +164,9 @@ namespace tao::json
TEST_ASSERT( v.public_base().number == 1 );
based w = std::move( v );
TEST_ASSERT( w == 42 );
TEST_ASSERT( v.public_base().s == base::move_constructed_from ); // NOLINT(bugprone-use-after-move)
TEST_ASSERT( v.public_base().s == base::move_constructed_from ); // NOLINT(bugprone-use-after-move,clang-analyzer-cplusplus.Move)
TEST_ASSERT( w.public_base().s == base::move_constructed );
TEST_ASSERT( v.public_base().number == 0 ); // NOLINT(bugprone-use-after-move)
TEST_ASSERT( v.public_base().number == 0 ); // NOLINT(bugprone-use-after-move,clang-analyzer-cplusplus.Move)
TEST_ASSERT( w.public_base().number == 1 );
}
{
Expand Down Expand Up @@ -214,9 +214,9 @@ namespace tao::json
v = std::move( w );
TEST_ASSERT( v == true );
TEST_ASSERT( v.public_base().s == base::move_assigned );
TEST_ASSERT( w.public_base().s == base::move_constructed_from ); // NOLINT(bugprone-use-after-move)
TEST_ASSERT( w.public_base().s == base::move_constructed_from ); // NOLINT(bugprone-use-after-move,clang-analyzer-cplusplus.Move)
TEST_ASSERT( v.public_base().number == 2 );
TEST_ASSERT( w.public_base().number == 0 ); // NOLINT(bugprone-use-after-move)
TEST_ASSERT( w.public_base().number == 0 ); // NOLINT(bugprone-use-after-move,clang-analyzer-cplusplus.Move)
}
{
counter = 0;
Expand Down

0 comments on commit fa0c625

Please sign in to comment.