This is an archive of the discontinued LLVM Phabricator instance.

Rename StringSwitch::Cases StringSwitch::Case.
Needs ReviewPublic

Authored by ruiu on Sep 30 2016, 3:00 PM.

Details

Summary

When you add a condition to a StringSwitch::Case, you also have
to change the function to call Cases instead of Case. Not a big deal
but it's always slightly annoying.

This patch renames Cases Case so that we have single overloaded
function

Cases(<one or more strings>, <result>)

instead of two functions

Case(<string>, <result>) and
Cases(<two or more strings>, <result>)

I'll delete Cases after updating LLVM subproject's source.

Event Timeline

ruiu updated this revision to Diff 73152.Sep 30 2016, 3:00 PM
ruiu retitled this revision from to Rename StringSwitch::Cases StringSwitch::Case..
ruiu updated this object.
ruiu added a reviewer: zturner.
ruiu added a subscriber: llvm-commits.