From: Subodh Iyengar Date: Thu, 20 Jul 2017 11:51:25 +0000 (-0700) Subject: Add folly non null X-Git-Tag: v2017.07.24.00~15 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=339c14d3295071baf13066aae1e8b7be1df62b34;p=folly.git Add folly non null Summary: Add non null annotation to folly to help with linters complaining when a pointer could be null, however it never is. Reviewed By: yfeldblum Differential Revision: D5453255 fbshipit-source-id: cf7ccbcc86d171ef4f6d373b6f751f709e4587b1 --- diff --git a/folly/CppAttributes.h b/folly/CppAttributes.h index f1ed1c23..f435212d 100644 --- a/folly/CppAttributes.h +++ b/folly/CppAttributes.h @@ -90,6 +90,8 @@ */ #if FOLLY_HAS_EXTENSION(nullability) #define FOLLY_NULLABLE _Nullable +#define FOLLY_NONNULL _Nonnull #else #define FOLLY_NULLABLE +#define FOLLY_NONNULL #endif