[all-commits] [llvm/llvm-project] 2ff7ca: [clangd] Avoid "expected one compiler job" by pick...

Sam McCall via All-commits all-commits at lists.llvm.org
Thu Aug 12 15:39:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ff7ca98a99bbfc4f44b8ba1e2e4e594f8ee253e
      https://github.com/llvm/llvm-project/commit/2ff7ca98a99bbfc4f44b8ba1e2e4e594f8ee253e
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2021-08-13 (Fri, 13 Aug 2021)

  Changed paths:
    M clang-tools-extra/clangd/unittests/ClangdTests.cpp
    M clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
    M clang/unittests/Frontend/CMakeLists.txt
    A clang/unittests/Frontend/UtilsTest.cpp

  Log Message:
  -----------
  [clangd] Avoid "expected one compiler job" by picking the first eligible job.

This happens in createInvocationWithCommandLine but only clangd currently passes
ShouldRecoverOnErorrs (sic).

One cause of this (with correct command) is several -arch arguments for mac
multi-arch support.

Fixes https://github.com/clangd/clangd/issues/827

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




More information about the All-commits mailing list