Skip to content

Commit

Permalink
Suppress move clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
karzhenkov committed Jun 25, 2022
1 parent 4606502 commit f1dee7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/unit-optional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ using std_opt_int = std::optional<int>;
using std_opt_vec = std::optional<std::vector<int>>;
using std_opt_ptr = std::optional<std::unique_ptr<int>>;

// NOLINTBEGIN(bugprone-unchecked-optional-access,bugprone-use-after-move,hicpp-invalid-access-moved,clang-analyzer-cplusplus.Move)

TEST_CASE("nlohmann::optional comparison")
{
CHECK(opt_int() == nullopt);
Expand Down Expand Up @@ -144,6 +146,8 @@ TEST_CASE("nlohmann::optional move")
}
}

// NOLINTEND(bugprone-unchecked-optional-access,bugprone-use-after-move,hicpp-invalid-access-moved,clang-analyzer-cplusplus.Move)

DOCTEST_GCC_SUPPRESS_WARNING_POP

#endif // JSON_HAS_CPP_17

0 comments on commit f1dee7b

Please sign in to comment.