From now on check will use value from cppcoreguidelines-prefer-member-initializer
and fallback to modernize-use-default-member-init.UseAssignment if not specified.
Fixes: #55616.
Differential D147929
[clang-tidy] Fix handling of UseAssignment option in cppcoreguidelines-prefer-member-initializer PiotrZSL on Apr 10 2023, 4:23 AM. Authored by
Details From now on check will use value from cppcoreguidelines-prefer-member-initializer Fixes: #55616.
Diff Detail
Event Timeline
|
This is very strange, feels like it's done to ensure the checks are in sync but IMO it creates more harm than good and makes the check harder to maintain. The checks are independent anyway (not aliases), so I believe it makes sense to keep being independent also in the options.
There are similar checks (e.g. magic numbers) where the user needs to either only enable one of the checks, or enter the same configuration settings twice.
I would vote for just treating this like an independent argument like all other checks, to avoid bugs like these.