There is not reason to check std::make_unique<...>(..) return value,
but clangd::clang::loadIndex() returns nullptr if an index file could not be loaded (e.g. incorrect version).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/index/remote/server/Server.cpp | ||
---|---|---|
365 | well actually we don't need to make unique at all. why not just create a SwapIndex Idx(std::move(SymIndex)) and pass it around ? |
well actually we don't need to make unique at all. why not just create a SwapIndex Idx(std::move(SymIndex)) and pass it around ?