This is an archive of the discontinued LLVM Phabricator instance.

Rename flag_enum to enum_role
Needs ReviewPublic

Authored by scshunt on Jan 5 2015, 10:09 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Per discussions with dgregor, rename the flag_enum attribute to enum_role, and make it more extensible by accepting an argument. I've also made the test coverage a bit more comprehensive.

Diff Detail

Event Timeline

scshunt updated this revision to Diff 17808.Jan 5 2015, 10:09 AM
scshunt retitled this revision from to Rename flag_enum to enum_role.
scshunt updated this object.
scshunt edited the test plan for this revision. (Show Details)
scshunt added a reviewer: aaron.ballman.
scshunt added a subscriber: Unknown Object (MLST).
silvas added a subscriber: silvas.Jan 8 2015, 4:04 PM

A couple drive-by comments; not trying to formally become a reviewer on the patch.

lib/Sema/SemaDecl.cpp
13786

Should we change the name of diag::warn_flag_enum_constant_out_of_range if we are no longer using the flag_enum nomenclature?

test/Sema/attr-flag-enum.c
3

Just doublechecking: we are no longer accepting flag_enum, right? Is there a potential compatibility issue?

aaron.ballman resigned from this revision.Oct 13 2015, 5:55 AM
aaron.ballman removed a reviewer: aaron.ballman.