[PATCH] D120331: [clang-tidy][run-clang-tidy.py] Add --config-file=<string> option
    Shreyas via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Mar  1 00:50:21 PST 2022
    
    
  
SAtacker added a comment.
@JonasToth Could you please review it?
================
Comment at: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py:236
                       'each source file in its parent directories.')
+  parser.add_argument('-config-file', default=None,
+                      help='Specify the path of .clang-tidy or custom config'
----------------
JonasToth wrote:
> please ensure that those option exclude each other. right now it could be used with both options which is a contradiction for `clang-tidy`
Do you mean mutual exclusion? From the docs: https://docs.python.org/3/library/argparse.html#mutual-exclusion
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120331/new/
https://reviews.llvm.org/D120331
    
    
More information about the cfe-commits
mailing list