This is an archive of the discontinued LLVM Phabricator instance.

Refactor: simplify boolean conditional return statements in lib/Analysis
ClosedPublic

Authored by LegalizeAdulthood on May 25 2015, 12:26 PM.

Diff Detail

Event Timeline

LegalizeAdulthood retitled this revision from to Refactor: simplify boolean conditional return statements in lib/Analysis.
LegalizeAdulthood updated this object.
LegalizeAdulthood edited the test plan for this revision. (Show Details)
LegalizeAdulthood added a subscriber: Unknown Object (MLST).
ddunbar resigned from this revision.May 25 2015, 1:24 PM
ddunbar removed a reviewer: ddunbar.
aaron.ballman edited edge metadata.May 26 2015, 6:15 AM

LGTM!

~Aaron

Can someone commit this for me, please? Thanks!

Richard Thomson <legalize@xmission.com>

jordan_rose edited edge metadata.May 26 2015, 8:48 AM

In this case I think the change is all right, but many times we have a series of early returns ending with a "return true". In that case I'm not sure clang-tidy's version is clearer.

aaron.ballman resigned from this revision.Oct 13 2015, 5:56 AM
aaron.ballman removed a reviewer: aaron.ballman.
This revision was automatically updated to reflect the committed changes.