Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] C++11 Attributes and Qt




On Thu, Apr 4, 2013 at 3:58 PM, Doug Schaefer <dschaefer@xxxxxxx> wrote:
This is mainly for Sergey and Andrew E. but may be of interest to others.

Finally took a look at attributes in C++11. It looks like they could be used to store extra info against names and bindings. This is interesting for Qt because we want to be able to tag names as being slots or signals so we can deal with them specially in connect method/function calls.

Is there support now for C++11 attributes or is this new work that we could need to start up?

There is no support for C++11 attributes yet, but there is support for GCC-specific attribute syntax using __attribute__ keyword. Some of the code, for example IASTToken and friends can be reused for C++11 attributes.

Sergey mentioned this to me last week as a possible alternative and it has piqued my interest.

- Doug

-sergey 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top