This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by Eugene.Zelenko on Aug 30 2016, 7:09 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-using 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.
compnerd added inline comments.Aug 30 2016, 8:35 PM
lib/Target/X86/X86ISelLowering.cpp
3561

What is the benefit of std::numeric_limits<T>::max() over T_MAX?

29854

Why not fix the infix operators here?

lib/Target/X86/X86ISelLowering.cpp
3561

This is C++ way of dealing with limits.

29854

Did you mean adding spaces between operands ans operators?

I was not sure about that, because I encountered such style (no spaces) in other places.