[clang-tidy] Fix handling of UseAssignment option in cppcoreguidelines-prefer-member...
authorPiotr Zegar <me@piotrzegar.pl>
Sun, 16 Apr 2023 10:16:29 +0000 (10:16 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Sun, 16 Apr 2023 10:34:48 +0000 (10:34 +0000)
commitb34ca0851a5209a10c0ca285c000a18073677891
tree146727849598ff404579e685de43fa360ceb8b5e
parent9db2a0454815979bc8e0f65e830ab9051b4ff5d2
[clang-tidy] Fix handling of UseAssignment option in cppcoreguidelines-prefer-member-initializer

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.

Reviewed By: carlosgalvezp

Differential Revision: https://reviews.llvm.org/D147929
clang-tools-extra/clang-tidy/cppcoreguidelines/PreferMemberInitializerCheck.cpp
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/prefer-member-initializer.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/prefer-member-initializer-modernize-use-default-member-init-assignment.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/prefer-member-initializer-modernize-use-default-member-init.cpp