This is an archive of the discontinued LLVM Phabricator instance.

Refactor: Simplify boolean conditional return statements in llvm/lib/MC
AbandonedPublic

Authored by LegalizeAdulthood on May 25 2015, 12:08 AM.

Details

Summary

Use clang-tidy to simplify boolean conditional return statements

Diff Detail

Event Timeline

LegalizeAdulthood retitled this revision from to Refactor: Simplify boolean conditional return statements in llvm/lib/MC.
LegalizeAdulthood updated this object.
LegalizeAdulthood edited the test plan for this revision. (Show Details)
LegalizeAdulthood added a subscriber: Unknown Object (MLST).
craig.topper added inline comments.May 25 2015, 12:11 AM
lib/MC/WinCOFFObjectWriter.cpp
232

Push negate through

lib/MC/WinCOFFObjectWriter.cpp
232

Is !MC || !MC->isTemporary() really more readable?

abdulras added inline comments.Jun 5 2015, 11:37 AM
lib/MC/MCSymbol.cpp
20

Push the negate through?

lib/MC/MachObjectWriter.cpp
49

I think that the comment should be retained and merged here.

695

Push the negate through?

LegalizeAdulthood abandoned this revision.Feb 19 2016, 9:17 AM