diff --git a/clang/unittests/Tooling/RefactoringTest.cpp b/clang/unittests/Tooling/RefactoringTest.cpp index f0edff6052c9..e38afc148a7b 100644 --- a/clang/unittests/Tooling/RefactoringTest.cpp +++ b/clang/unittests/Tooling/RefactoringTest.cpp @@ -1294,7 +1294,7 @@ TEST_F(AtomicChangeTest, Metadata) { TEST_F(AtomicChangeTest, NoMetadata) { AtomicChange Change(Context.Sources, DefaultLoc); - EXPECT_FALSE(Change.getMetadata().hasValue()); + EXPECT_FALSE(Change.getMetadata().has_value()); } class ApplyAtomicChangesTest : public ::testing::Test {