[all-commits] [llvm/llvm-project] 5ca68d: [clang-tidy] Add `-verify-config` command line arg...
Nathan James via All-commits
all-commits at lists.llvm.org
Thu Jun 23 11:23:28 PDT 2022
Author: Nathan James <n.james93 at hotmail.co.uk>
Date: 2022-06-23 (Thu, 23 Jun 2022)
[clang-tidy] Add `-verify-config` command line argument
Adds a `-verify-config` command line argument, that when specified will verify the Checks and CheckOptions fields in the config files:
- A warning will be raised for any check that doesn't correspond to a registered check, a suggestion will also be emitted for close misses.
- A warning will be raised for any check glob(containing *) that doesn't match any registered check.
- A warning will be raised for any CheckOption that isn't read by any registered check, a suggestion will also be emitted for close misses.
This can be useful if debuging why a certain check isn't enabled, or the options are being handled as you expect them to be.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D127446
More information about the All-commits