This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Add alias cppcoreguidelines-use-default-member-init
ClosedPublic

Authored by carlosgalvezp on Apr 16 2023, 3:29 AM.

Details

Summary

And remove identical functionality from
cppcoreguidelines-prefer-member-initializer, which had too many
responsibilities and a tight coupling to the
modernize-use-default-member-init check.

Fixes https://github.com/llvm/llvm-project/issues/62164.

Diff Detail

Event Timeline

carlosgalvezp created this revision.Apr 16 2023, 3:29 AM
carlosgalvezp requested review of this revision.Apr 16 2023, 3:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 16 2023, 3:29 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Revert code removal, document deprecation notice instead.

Rebase and fix conflicts.

Add check to list of aliases.

Remove check from list of checks, since we do not add
aliases there.

This revision is now accepted and ready to land.Apr 16 2023, 6:43 AM
Eugene.Zelenko accepted this revision.Apr 16 2023, 7:21 AM

Please create issue for deprecation after commit.

clang-tools-extra/docs/clang-tidy/checks/list.rst