This patch creates a range accessor for attributes during tablegen, in addition to the iterators we already produce. It also updates a lot of iterator usages to be range usages.
For the most part, there should be nothing contentious here, with one exception. In order to generate an accessor with a sensible identifier, we may need to pluralize the identifier. Eg) callableState_begin()/callableState_end() --> callableStates(), but args_begin()/args_end() --> args(). I "solved" this with a poor-man's pluralizer that makes assumptions (which I've documented), but I think this is acceptable since this is only for use within variadic argument objects when tablegenning attributes. But I figured it was worth putting out as a patch to see if there were objections or better ideas. ~Aaron
RangeBasedAttributeArgs.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
