This is an archive of the discontinued LLVM Phabricator instance.

[LLVM] Fix some Clang-tidy modernize-use-default, modernize-use-equals-delete and Include What You Use warnings; other minor fixes
AbandonedPublic

Authored by Eugene.Zelenko on Nov 15 2016, 3:35 PM.

Details

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 [LLVM] Fix some Clang-tidy modernize-use-default, modernize-use-equals-delete and Include What You Use warnings; other minor fixes.
Eugene.Zelenko updated this object.
Eugene.Zelenko set the repository for this revision to rL LLVM.
Eugene.Zelenko added a subscriber: llvm-commits.
mehdi_amini added inline comments.Nov 15 2016, 9:42 PM
include/llvm/IR/DebugInfoMetadata.h
137

What the rule for deciding on empty line or not? (The two operators below are not separated for instance).

It also does not seem part of the clang-tidy kind of changes.

include/llvm/Support/CommandLine.h
487

Is there a clang-tidy check that does that? That's neat!

malcolm.parsons added inline comments.
include/llvm/Support/CommandLine.h
487

Not yet!

include/llvm/IR/DebugInfoMetadata.h
137

I think it's adding empty lines make code more comprehensible: it's much easier to see boundaries of multi-line functions/methods.

Eugene.Zelenko abandoned this revision.Dec 1 2016, 4:11 PM

Committed as part of rL288424 and rL288426.