[commands] Fix clang-tidy warnings (#5402)

This commit is contained in:
Tyler Veness
2023-06-19 23:01:46 -07:00
committed by GitHub
parent 991f4b0f62
commit 1501607e48
2 changed files with 5 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ TEST_F(CommandPtrTest, MovedFrom) {
EXPECT_NO_FATAL_FAILURE(scheduler.Cancel(movedTo));
EXPECT_THROW(scheduler.Schedule(movedFrom), frc::RuntimeError);
// NOLINTNEXTLINE (clang-analyzer-cplusplus.Move)
EXPECT_THROW(movedFrom.IsScheduled(), frc::RuntimeError);
EXPECT_THROW(static_cast<void>(std::move(movedFrom).Repeatedly()),
frc::RuntimeError);