Page MenuHomePhabricator

[analyzer][NFC] Refactor AnalysisConsumer::getModeForDecl()
AcceptedPublic

Authored by steakhal on Tue, Nov 23, 7:26 AM.

Details

Summary

I just read this part of the code, and I found the nested ifs less readable.

Diff Detail

Event Timeline

steakhal created this revision.Tue, Nov 23, 7:26 AM
steakhal requested review of this revision.Tue, Nov 23, 7:26 AM

I should note that I compared this on multiple projects to the baseline version and no runtime nor reports changed.
So, this is purely a cosmetic change.

martong accepted this revision.Tue, Nov 23, 7:50 AM

LGTM!

This revision is now accepted and ready to land.Tue, Nov 23, 7:50 AM