[cfe-commits] libclang: Patch to get an integer value from a cursor.

Argyrios Kyrtzidis kyrtzidis at apple.com
Tue Sep 27 12:55:29 PDT 2011


On Sep 27, 2011, at 12:13 PM, Vinay Sajip wrote:

> ----- Original Message -----
> 
>> From: Argyrios Kyrtzidis <kyrtzidis at apple.com>
>> 
>> When I said "expose the attributes" I meant adding the attributes that 
>> you are interested in CXCursorKind, see:
>> 
>>   CXCursor_UnexposedAttr                 = 400,
>> 
>>   CXCursor_IBActionAttr                  = 401,
>>   CXCursor_IBOutletAttr                  = 402,
>>   CXCursor_IBOutletCollectionAttr        = 403,
>>   CXCursor_CXXFinalAttr                  = 404,
>>   CXCursor_CXXOverrideAttr               = 405,
>>   CXCursor_LastAttr                      = CXCursor_CXXOverrideAttr,
>> 
>> We can add new ones here.
>> 
> 
> Okay, I get it now. This will cover some cases but not other essential ones - AFAICT, you can't expose things like isInlineSpecified() or the storage class for declarations using this mechanism, because they're not exposed as attributes. 

How about new function "get declaration specifiers" with enums for these.

> 
> Regards,
> 
> Vinay Sajip
> 




More information about the cfe-commits mailing list