[cfe-dev] Enum parameters for a C++11 Attribute

LUIS MIGUEL SANCHEZ GARCIA lmsanche at inf.uc3m.es
Tue Dec 16 05:08:09 PST 2014


I tried to include a variadic parameter into a c++11 attribute:

Example:

*int main(){*

*....*

*[[my::ownattr(**RED, BLUE)**]]*

*f();*

*....*

*}*



being A and B values of an enumerate like:
*enum class Color {RED, GREEN, BLUE};*

Any help?
Thanks.

Regards,
Luis.

-- 
-- 
--------------------------------------------------
Luis Miguel Sánchez García
Computer Architecture and Technology Area.
Office 2.2.B08
Computer Science Department. UNIVERSIDAD CARLOS III DE MADRID
Universidad Carlos III de Madrid
Avda. de la Universidad, 30
28911 Leganés - Madrid - Spain
e-mail: lmsan at arcos.inf.uc3m.es
        luismiguel.sanchez at uc3m.es

Phone: (+34) 91 624 5951

Linked-In: http://es.linkedin.com/in/lmsan
Twitter: http://twitter.com/lmsanchezgarcia
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141216/6aedf3bc/attachment.html>


More information about the cfe-dev mailing list