This is an archive of the discontinued LLVM Phabricator instance.

Use default member initialization where possible
AbandonedPublic

Authored by sbc100 on Nov 9 2017, 1:03 PM.

Details

Reviewers
None
Summary

This change converts a lot of most obvious member
initialization to use the default initialization.
Mostly focuses on nullptr and 0 initialization.

Event Timeline

sbc100 created this revision.Nov 9 2017, 1:03 PM
sbc100 updated this revision to Diff 122757.Nov 13 2017, 5:32 PM

Remove extra change

Was this done using clang-tidy (or similar tool) or manually?

sbc100 added a comment.Dec 6 2017, 5:53 PM

Manually. Is there clang-tidy method of doing this? This change is pretty conservative, it only includes to more obvious cases I could find.

sbc100 updated this revision to Diff 129537.Jan 11 2018, 3:17 PM
  • rebase

Manually. Is there clang-tidy method of doing this? This change is pretty conservative, it only includes to more obvious cases I could find.

clang-tidy should be able to do it: modernize-use-default-member-init.

sbc100 abandoned this revision.Feb 13 2018, 5:01 PM