[all-commits] [llvm/llvm-project] 2f8d1e: [clangd] When querying drivers by binary, look in ...

Giulio Girardi via All-commits all-commits at lists.llvm.org
Tue Jan 5 03:54:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f8d1e9eb27e111eb6dfd242d88dd7c98005fb5c
      https://github.com/llvm/llvm-project/commit/2f8d1e9eb27e111eb6dfd242d88dd7c98005fb5c
  Author: Giulio Girardi <giulio.girardi at protechgroup.it>
  Date:   2021-01-05 (Tue, 05 Jan 2021)

  Changed paths:
    M clang-tools-extra/clangd/QueryDriverDatabase.cpp
    M clang-tools-extra/clangd/test/system-include-extractor.test

  Log Message:
  -----------
  [clangd] When querying drivers by binary, look in PATH too

Sometimes compile_commands.json databases are created without an
absolute path for the driver in the command field. By default the driver
name is appended to the current directory, however if no driver is found
in that location assume it was in the default PATH and try finding it
there

Reviewed By: sammccall

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




More information about the All-commits mailing list