[all-commits] [llvm/llvm-project] dfac97: [clangd] Validate clang-tidy Checks in clangd config.

Nathan James via All-commits all-commits at lists.llvm.org
Tue Dec 15 13:11:17 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfac97d557690dd4b1f2fab798680234b238d11f
      https://github.com/llvm/llvm-project/commit/dfac97d557690dd4b1f2fab798680234b238d11f
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M clang-tools-extra/clangd/ConfigCompile.cpp
    M clang-tools-extra/clangd/TidyProvider.cpp
    M clang-tools-extra/clangd/TidyProvider.h
    M clang-tools-extra/clangd/unittests/ConfigCompileTests.cpp

  Log Message:
  -----------
  [clangd] Validate clang-tidy Checks in clangd config.

Add instrumentation in ConfigCompile to validate that items in ClangTidy:[Add|Remove] correspond to actual clang-tidy checks.
If they don't a warning will be presented to the user.

This is especially useful for catching typos in the glob items.

Reviewed By: sammccall

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




More information about the All-commits mailing list