This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Remove (void) in loop as it is unnecessary and confusing
AbandonedPublic

Authored by gAlfonso-bit on Jul 19 2021, 3:09 PM.

Details

Reviewers
gAlfonso-bit
Group Reviewers
Restricted Project
Summary

Usually (void) is used when a return value is discarded or when it comes before a declaration or definition of a function. It has no place here and is unnecessarily confusing.

Diff Detail

Event Timeline

gAlfonso-bit created this revision.Jul 19 2021, 3:09 PM
gAlfonso-bit created this object with edit policy "Administrators".
gAlfonso-bit requested review of this revision.Jul 19 2021, 3:09 PM

did a decrement after size is used so clang format doesn’t complain

Found a better solution

gAlfonso-bit retitled this revision from Remove (void) in loop as it is unnecessary and confusing to [LLVM] Remove (void) in loop as it is unnecessary and confusing.Jul 20 2021, 1:45 PM
gAlfonso-bit accepted this revision.Jul 20 2021, 1:48 PM
This revision is now accepted and ready to land.Jul 20 2021, 1:48 PM
gAlfonso-bit requested review of this revision.Jul 20 2021, 1:48 PM
gAlfonso-bit resigned from this revision.

Why is inverting the order of the inc/dec significant/needed?

Really trying to please the linter here

gAlfonso-bit retitled this revision from [LLVM] Remove (void) in loop as it is unnecessary and confusing to [ADT] Remove (void) in loop as it is unnecessary and confusing.Jul 21 2021, 7:10 PM
gAlfonso-bit abandoned this revision.Jul 27 2021, 8:58 AM