This is an archive of the discontinued LLVM Phabricator instance.

[LLD] Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes
Needs ReviewPublic

Authored by Eugene.Zelenko on Nov 7 2016, 4:54 PM.

Details

Reviewers
ruiu
Summary

I checked this patch on my own build on RHEL 6. Regressions were OK.

Diff Detail

Repository
rL LLVM

Event Timeline

Eugene.Zelenko retitled this revision from to [LLD] Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes.
Eugene.Zelenko updated this object.
Eugene.Zelenko added a reviewer: ruiu.
Eugene.Zelenko set the repository for this revision to rL LLVM.
Eugene.Zelenko added a subscriber: llvm-commits.
rafael added inline comments.
ELF/Target.cpp
35

I am not sure how to properly manage this include list if we are going the Include What You Use way. How do we make sure we are not including unnecessary headers?

Eugene.Zelenko added inline comments.Nov 8 2016, 11:02 AM
ELF/Target.cpp
35

Sure, Include What You Use may have false positives and it is not supporting libc++ well. But I manually checked that all added headers are used explicitly.

See D26320 as example where manual headers maintenance was less then adequate.

Please try Include What You Use. It prints used declarations in comments after each include directive.