[cfe-dev] Proposal: parsing Qt signals/slots with attributes

Douglas Gregor dgregor at apple.com
Wed Sep 28 10:37:19 PDT 2011


On Sep 28, 2011, at 8:51 AM, Sean Hunt wrote:

> On Wed, Sep 28, 2011 at 11:31, Erik Verbruggen <erikjv at me.com> wrote:
>> Yes, Qt uses Q_blah macros. Then again, Clang is not Qt, and I do not have a strong opinion on this. Should I change the attribute names, and if so, should I also change the enumerators in CXCursorKind to read CXCursor_QtSignalAttr, etc?
> 
> Honestly, this seems like the perfect use-case for attribute
> namespaces (e.g. qt::signal). However, these aren't well-supported
> yet. I'd much prefer if we could use these though, since it would
> avoid starting a bad habit where it's avoidable.

I had completely forgotten about these. How much work is involved in making attribute namespaces work?

	- Doug



More information about the cfe-dev mailing list