mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances in the swift repo.
This commit is contained in:
@@ -266,10 +266,10 @@ SwiftLangSupport::SwiftLangSupport(SourceKit::Context &SKCtx)
|
||||
ASTMgr = std::make_shared<SwiftASTManager>(EditorDocuments, Stats,
|
||||
RuntimeResourcePath);
|
||||
// By default, just use the in-memory cache.
|
||||
CCCache->inMemory = llvm::make_unique<ide::CodeCompletionCache>();
|
||||
CCCache->inMemory = std::make_unique<ide::CodeCompletionCache>();
|
||||
|
||||
// Provide a default file system provider.
|
||||
setFileSystemProvider("in-memory-vfs", llvm::make_unique<InMemoryFileSystemProvider>());
|
||||
setFileSystemProvider("in-memory-vfs", std::make_unique<InMemoryFileSystemProvider>());
|
||||
}
|
||||
|
||||
SwiftLangSupport::~SwiftLangSupport() {
|
||||
|
||||
Reference in New Issue
Block a user