SourceKitten icon indicating copy to clipboard operation
SourceKitten copied to clipboard

Extracting attributes

Open esad opened this issue 9 years ago • 1 comments

I tried adding support for parsing attributes defined via __attribute__ in ObjC in order to mark unavailable/deprecated methods in Jazzy.

While I can get the attributes by processing the CXCursor_UnexposedAttr cursors, those seem not to include any information such as attribute name/value, only the original declaration, without macros expanded.

Can someone with more Clang know-how explain what would be the best way to expand those declarations and correctly process the attribute declarations.

P.S. I also briefly looked into SourceKit support for @available in Swift. The version shipping with Xcode 7.3.1 seems to emit only the entry with attribute name, without other parameters :(

esad avatar May 30 '16 16:05 esad

I'm sorry I don't know if that's possible.

jpsim avatar May 30 '16 21:05 jpsim