[PATCH] D89936: [clang-tidy] adding "--config-file=<file-path>" to specify custom config file.

Hiral via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 08:38:47 PST 2020


Hiralo added a comment.

Hello @@DmitryPolukhin ,

When I submitted latest via 'arc diff' my commit-message was...
Can you please help to have following commit message? Below commit message is more clear and helpful.
Sorry for inconvenience caused!

commit 653cb7912bbe4daabc8d6dd6dca71b2cf9a10365 (HEAD -> master)
Author: Hiral Oza <hiral.oza at netapp.com>
Date:   Fri Oct 30 05:07:19 2020 -0400

  clang-tidy: adding "--config-file=<file-path>" to specify custom config file.
  
  Let clang-tidy to read config from specified file.
  
  This option internally works exactly the same way as --config option
  after reading specified config file.
  
  This option works as helper for --config in following few cases:
   - when there is shell limitation to read file content to the command line,
   - when there is limitation to command line length,
   - setting right build dependencies, and
   - others
  
  --config-file and --config options are made mutually exclusive.
  
  Example usage:
   $ clang-tidy --config-file=/some/path/myTidyConfigFile --dump-config --
   ...this will read config from /some/path/myTidyConfigFile and
      avoid searching '.clang-tidy' in parent-dirs.
  
  May speed-up tidy runtime since now it will just look-up <file-path>
  instead of searching ".clang-tidy" in parent-dirs.
  
  Reviewed By: DmitryPolukhin, njames93
  
  Differential Revision: https://reviews.llvm.org/D89936


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89936



More information about the cfe-commits mailing list