We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b151c7e commit f767295Copy full SHA for f767295
clang-tools-extra/clangd/support/ThreadsafeFS.cpp
@@ -41,7 +41,7 @@ class VolatileFileSystem : public llvm::vfs::ProxyFileSystem {
41
llvm::StringRef FileName = llvm::sys::path::filename(Path);
42
if (FileName.starts_with("preamble-") && FileName.ends_with(".pch"))
43
return File;
44
- return std::unique_ptr<VolatileFile>(new VolatileFile(std::move(*File)));
+ return std::make_unique<VolatileFile>(std::move(*File));
45
}
46
47
private:
0 commit comments