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

@@ -160,13 +160,13 @@ void SwiftLangSupport::getConformingMethodList(
ArrayRef<const char *> ExpectedTypeNames,
SourceKitCancellationToken CancellationToken,
SourceKit::ConformingMethodListConsumer &SKConsumer,
llvm::Optional<VFSOptions> vfsOptions) {
std::optional<VFSOptions> vfsOptions) {
std::string error;
// FIXME: the use of None as primary file is to match the fact we do not read
// the document contents using the editor documents infrastructure.
auto fileSystem =
getFileSystem(vfsOptions, /*primaryFile=*/llvm::None, error);
getFileSystem(vfsOptions, /*primaryFile=*/std::nullopt, error);
if (!fileSystem) {
return SKConsumer.failed(error);
}