This is an archive of the discontinued LLVM Phabricator instance.

Refactor: Simplify boolean conditional return statements in modularize
AbandonedPublic

Authored by LegalizeAdulthood on May 25 2015, 3:35 PM.

Details

Reviewers
alexfh
Summary

Use clang-tidy to simplify conditional return statements

Diff Detail

Event Timeline

LegalizeAdulthood retitled this revision from to Refactor: Simplify boolean conditional return statements in modularize.
LegalizeAdulthood updated this object.
LegalizeAdulthood edited the test plan for this revision. (Show Details)
LegalizeAdulthood added a reviewer: alexfh.
LegalizeAdulthood added a subscriber: Unknown Object (MLST).
alexfh added inline comments.May 25 2015, 4:49 PM
modularize/ModularizeUtilities.cpp
389

I'd replace lines 387-393 of the original with return Extension.equals_lower(".h") || Extension.equals_lower(".inc");.