[PATCH] D24892: [clang-tidy] Add option "LiteralInitializers" to cppcoreguidelines-pro-type-member-init
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 20 09:02:23 PDT 2017
alexfh added a comment.
In https://reviews.llvm.org/D24892#723536, @malcolm.parsons wrote:
> The `modernize-use-default-member-init` check now has an option with the same effect, but it is called `UseAssignment`.
> We should use consistent option names.
> Is there any way for multiple checks to share an option?
There's OptionsView::getLocalOrGlobal. See how StrictMode option is read in ArgumentCommentCheck, for example.
https://reviews.llvm.org/D24892
More information about the cfe-commits
mailing list