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.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
Event Timeline
Comment Actions
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? |
Should we change the name of diag::warn_flag_enum_constant_out_of_range if we are no longer using the flag_enum nomenclature?