[all-commits] [llvm/llvm-project] 1bbf87: [clangd][remote] Check an index file correctly

Aleksandr Platonov via All-commits all-commits at lists.llvm.org
Mon Nov 9 10:43:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bbf87e22a73011fdea411baf8fe768f854d497c
      https://github.com/llvm/llvm-project/commit/1bbf87e22a73011fdea411baf8fe768f854d497c
  Author: Aleksandr Platonov <platonov.aleksandr at huawei.com>
  Date:   2020-11-09 (Mon, 09 Nov 2020)

  Changed paths:
    M clang-tools-extra/clangd/index/remote/server/Server.cpp

  Log Message:
  -----------
  [clangd][remote] Check an index file correctly

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).

Reviewed By: kadircet

Differential Revision: https://reviews.llvm.org/D91049




More information about the All-commits mailing list