[all-commits] [llvm/llvm-project] 226b04: [clangd] Look for compilation database in `build` ...

Sam McCall via All-commits all-commits at lists.llvm.org
Fri Apr 24 17:22:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 226b045b1fe5c436ebd4d9bc1023e508789822c9
      https://github.com/llvm/llvm-project/commit/226b045b1fe5c436ebd4d9bc1023e508789822c9
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-04-25 (Sat, 25 Apr 2020)

  Changed paths:
    M clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
    M clang-tools-extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp

  Log Message:
  -----------
  [clangd] Look for compilation database in `build` subdirectory of parents.

Summary:
This matches the conventional location of cmake build directories.
It also allows creating a `build` symlink, which seems more flexible than the
compile_commands.json symlinks.

Reviewers: kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list