Posted By

eaignr on 11/04/10


Tagged

Objective-c llvm


Versions (?)

Suppress false LLVM static analyzer positives


 / Published in: Objective C
 

  1. #ifndef __has_feature // Optional.
  2. #define __has_feature(x) 0 // Compatibility with non-clang compilers.
  3. #endif
  4.  
  5. #ifndef NS_RETURNS_NOT_RETAINED
  6. #if __has_feature(attribute_ns_returns_not_retained)
  7. #define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
  8. #else
  9. #define NS_RETURNS_NOT_RETAINED
  10. #endif
  11. #endif

Report this snippet  

You need to login to post a comment.