[PATCH] D81949: [clang-tidy] Extend InheritParentConfig to CommandLineConfig

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 16 10:27:13 PDT 2020


njames93 created this revision.
njames93 added reviewers: DmitryPolukhin, alexfh, gribozavr2, klimek, hokein, aaron.ballman.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.

Extend the `InheritParentConfig` support introduced in D75184 <https://reviews.llvm.org/D75184> for the command line option `--config`.
The current behaviour of `--config` is to when set, disable looking for `.clang-tidy` configuration files.
This new behaviour lets you set `InheritParentConfig` to true in the command line to then look for `.clang-tidy` configuration files to be merged with what's been specified on the command line.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81949

Files:
  clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
  clang-tools-extra/clang-tidy/ClangTidyOptions.h
  clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
  clang-tools-extra/test/clang-tidy/infrastructure/config-files.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81949.271134.patch
Type: text/x-patch
Size: 14199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200616/0dc2762c/attachment-0001.bin>


More information about the cfe-commits mailing list