mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -16,7 +16,7 @@
|
||||
#include "swift/Basic/LLVM.h"
|
||||
#include "swift/Basic/OptionSet.h"
|
||||
|
||||
#include "llvm/ADT/Optional.h"
|
||||
#include <optional>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -50,7 +50,7 @@ using ModuleTraversalOptions = OptionSet<ModuleTraversal>;
|
||||
|
||||
void collectModuleGroups(ModuleDecl *M, SmallVectorImpl<StringRef> &Into);
|
||||
|
||||
llvm::Optional<StringRef> findGroupNameForUSR(ModuleDecl *M, StringRef USR);
|
||||
std::optional<StringRef> findGroupNameForUSR(ModuleDecl *M, StringRef USR);
|
||||
|
||||
bool printTypeInterface(ModuleDecl *M, Type Ty, ASTPrinter &Printer,
|
||||
std::string &TypeName, std::string &Error);
|
||||
|
||||
Reference in New Issue
Block a user