[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
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ca68d5845c04421eef9659119ba2c12d2a56803
https://github.com/llvm/llvm-project/commit/5ca68d5845c04421eef9659119ba2c12d2a56803
Author: Nathan James <n.james93 at hotmail.co.uk>
Date: 2022-06-23 (Thu, 23 Jun 2022)
Changed paths:
M clang-tools-extra/clang-tidy/ClangTidy.cpp
M clang-tools-extra/clang-tidy/ClangTidy.h
M clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
M clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
M clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/index.rst
A clang-tools-extra/test/clang-tidy/infrastructure/verify-config.cpp
Log Message:
-----------
[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
mailing list