[all-commits] [llvm/llvm-project] ba3ea9: [clangd] Fix clang tidy provider when multiple con...

Nathan James via All-commits all-commits at lists.llvm.org
Fri Feb 12 08:56:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba3ea9c60f0f259f0ccc47e47daf8253a5885531
      https://github.com/llvm/llvm-project/commit/ba3ea9c60f0f259f0ccc47e47daf8253a5885531
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-02-12 (Fri, 12 Feb 2021)

  Changed paths:
    M clang-tools-extra/clangd/TidyProvider.cpp
    M clang-tools-extra/clangd/unittests/CMakeLists.txt
    A clang-tools-extra/clangd/unittests/TidyProviderTests.cpp

  Log Message:
  -----------
  [clangd] Fix clang tidy provider when multiple config files exist in directory tree

Currently Clang tidy provider searches from the root directory up to the target directory, this is the opposite of how clang-tidy searches for config files.
The result of this is .clang-tidy files are ignored in any subdirectory of a directory containing a .clang-tidy file.

Reviewed By: sammccall

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




More information about the All-commits mailing list