[PATCH] D101721: [clang-tidy][NFC] Update tests and Default options to use boolean value
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 3 04:48:54 PDT 2021
njames93 added a comment.
In D101721#2733125 <https://reviews.llvm.org/D101721#2733125>, @aaron.ballman wrote:
> LGTM! One thing I'd like to be sure of though -- do we still have at least one test that's showing you can use false/0 and true/1/nonzero interchangeably? If not, we should probably have one that shows which "alternate forms" are accepted.
`clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp::CheckOptionsValidation::ValidIntOptions` contains a test which supports 0 and 1.
However in a few years once we can be confident most users are using clang-tidy-11 or newer, it may be wise to drop support for 0 and 1 in order to be inline with yaml completely.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101721/new/
https://reviews.llvm.org/D101721
More information about the cfe-commits
mailing list