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

Nathan James via All-commits all-commits at lists.llvm.org
Fri Feb 12 16:09:47 PST 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d20c14a8a3dd0f83d4066f957ba4c006d29942b
      https://github.com/llvm/llvm-project/commit/8d20c14a8a3dd0f83d4066f957ba4c006d29942b
  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

(cherry picked from commit ba3ea9c60f0f259f0ccc47e47daf8253a5885531)




More information about the All-commits mailing list