[cfe-dev] C++11 attributes attached to a statement

LUIS MIGUEL SANCHEZ GARCIA lmsanche at inf.uc3m.es
Tue Dec 16 04:55:14 PST 2014


Thanks,
It worked!

Regards,
Luis.

2014-12-14 10:11 GMT+01:00 Michael Haidl <haidl at pacxx.org>:
>
> Aaron is right. FallThrough is a better example attribute.
>
> Michael
>
> Aaron Ballman <aaron at aaronballman.com> schrieb:
>
> >On Sat, Dec 13, 2014 at 9:00 AM, Michael Haidl <haidl at pacxx.org> wrote:
> >> Hi!
> >>
> >> I the easiest way for you to add a C++11 attribute to a statement is to
> >> follow the LoopHint attribute through the code.
> >>
> >> The attribute is handled in ./lib/Sema/SemaStmtAttr.cpp
> >
> >LoopHint isn't quite the one I would model after since that's a
> >pragma. FallThrough, however, is a good statement attribute to model
> >after. And the semantic handling for statement attributes is in
> >SemaStmtAttr.cpp, as Michael points out.
> >
> >~Aaron
>


-- 
-- 
-- 
--------------------------------------------------
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/0de8b757/attachment.html>


More information about the cfe-dev mailing list