Migrate llvm::Optional to std::optional

LLVM has removed llvm::Optional, move over to std::optional. Also
clang-format to fix up all the renamed #includes.
This commit is contained in:
Ben Barham
2024-02-02 22:19:39 -08:00
parent d3d4bd203c
commit ef8825bfe6
810 changed files with 8035 additions and 8718 deletions

View File

@@ -295,7 +295,7 @@ bool RefactoringActionExtractExprBase::performChange() {
/*StartColumn=*/StartOffset + 1,
/*EndLine=*/1,
/*EndColumn=*/EndOffset + 1,
/*ArgIndex*/ llvm::None};
/*ArgIndex*/ std::nullopt};
// Perform code change.
EditConsumer.accept(SM, InsertLoc, DeclBuffer.str(), {DeclNameRegion});
@@ -308,7 +308,7 @@ bool RefactoringActionExtractExprBase::performChange() {
{{RefactoringRangeKind::BaseName,
/*StartLine=*/1, /*StartColumn-*/ 1, /*EndLine=*/1,
/*EndColumn=*/static_cast<unsigned int>(PreferredName.size() + 1),
/*ArgIndex*/ llvm::None}});
/*ArgIndex*/ std::nullopt}});
}
return false;
}