diff --git a/clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp b/clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp --- a/clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp +++ b/clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp @@ -1267,6 +1267,12 @@ std::string TypeName; }; +static raw_ostream &operator<<(raw_ostream &OS, + const OptionalTypeIdentifier &TypeId) { + OS << TypeId.NamespaceName << "::" << TypeId.TypeName; + return OS; +} + class UncheckedOptionalAccessTest : public ::testing::TestWithParam { protected: