treewide: Add NOLINT where needed to make clang-tidy happy
These are not real bugs, clang-tidy doesn't understand how we are
preventing UB.
Change-Id: I4305ab0b59aae07151d5978ba8642bece076139f
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/handle/managed.cpp b/test/handle/managed.cpp
index 74816e5..0cdbe74 100644
--- a/test/handle/managed.cpp
+++ b/test/handle/managed.cpp
@@ -217,6 +217,7 @@
StoreHandle h2(std::move(h1));
EXPECT_TRUE(dropped.empty());
EXPECT_FALSE(h1);
+ // NOLINTNEXTLINE(clang-analyzer-cplusplus.Move)
EXPECT_THROW(h1.value(), std::bad_optional_access);
EXPECT_TRUE(h2);
EXPECT_EQ(expected, *h2);
@@ -240,6 +241,7 @@
EXPECT_EQ(std::vector{expected2}, dropped);
dropped.clear();
EXPECT_FALSE(h1);
+ // NOLINTNEXTLINE(clang-analyzer-cplusplus.Move)
EXPECT_THROW(h1.value(), std::bad_optional_access);
EXPECT_TRUE(h2);
EXPECT_EQ(expected, *h2);