[PATCH] D81975: [clangd] Add command line option for ClangTidyConfig

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 17 05:21:48 PDT 2020


njames93 added a comment.

Gotta say it's not hugely pressing.
The reason for it is clangd lets you specify some checks to run but it doesn't let you specify the options for those checks. Effectively forcing each project to require a .clang-tidy configuration file if you want to use checks where you require some configuration.
This isn't an issue on large scale established projects, but when starting out on small scale projects, it would be nice if clangd(tidy) was already set up how you like it without going through the need of setting up a `.clang-tidy` file.
Once D81949 <https://reviews.llvm.org/D81949> lands it will also be useful on large scale projects that enforce certain tidy checks, but locally a developer may want extra configurable checks running in their editor.

Having said all of that your proposal does appear to do what this patch aims just in a much more user friendly way.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81975/new/

https://reviews.llvm.org/D81975





More information about the cfe-commits mailing list