[cfe-dev] Getting the class name for a category in libclang

Ted Kremenek kremenek at apple.com
Fri Oct 29 12:20:26 PDT 2010


On Oct 29, 2010, at 12:16 PM, David Chisnall wrote:

> Nope, this returns the name of the category.  For example, in the case of:
> 
> @implementation Foo (Bar)
> 
> This returns Bar.  I see no API for accessing Foo.


Ah, I see.

When visiting the children of that cursor, I believe you should see a class reference to the @interface for 'Foo'.  You should be able to query the class name that way.  Does this work?  It's a little indirect, and possibly worthy of a wrapper API.



More information about the cfe-dev mailing list