mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -167,7 +167,7 @@ public:
|
||||
EditorConsumer &Consumer) {
|
||||
auto Args = makeArgs(DocName, CArgs);
|
||||
auto Buf = MemoryBuffer::getMemBufferCopy(Text, DocName);
|
||||
getLang().editorOpen(DocName, Buf.get(), Consumer, Args, None);
|
||||
getLang().editorOpen(DocName, Buf.get(), Consumer, Args, std::nullopt);
|
||||
}
|
||||
|
||||
void close(const char *DocName) {
|
||||
|
||||
Reference in New Issue
Block a user