I think using clang sounds too complicated. I would just use RegEx.
Instead, I would write a simple script wrapper around Doxygen that comments on the problematic syntax.
This should be pretty easy to change:
@property(nonatomic, retain) BOOL myProperty NS_AVAILABLE_IOS(3_2);
To:
@property(nonatomic, retain) BOOL myProperty ;
You can even convert things like NS_DEPRECATED() to @deprecated comment.
source share