Suppress false LLVM static analyzer positives


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.