Fix clang-tidy

This commit is contained in:
Sebastian Messmer 2019-05-26 01:05:02 -07:00
parent c5febd032a
commit fd52381ecd

View File

@ -1006,7 +1006,7 @@ TEST(EitherTest, givenLeft_whenModified_thenValueIsChanged) {
test(a); test(a);
}, [] (const auto& test) { }, [] (const auto& test) {
either<int, string> a(4); either<int, string> a(4);
*a.left_opt() = 5; *a.left_opt() = 5; // NOLINT(clang-analyzer-core.uninitialized.UndefReturn)
test(a); test(a);
} }
}, },
@ -1022,7 +1022,7 @@ TEST(EitherTest, givenRight_whenModified_thenValueIsChanged) {
test(a); test(a);
}, [] (const auto& test) { }, [] (const auto& test) {
either<int, string> a("4"); either<int, string> a("4");
*a.right_opt() = "5"; *a.right_opt() = "5"; // NOLINT(clang-analyzer-core.uninitialized.UndefReturn)
test(a); test(a);
} }
}, },