Add folly non null
authorSubodh Iyengar <subodh@fb.com>
Thu, 20 Jul 2017 11:51:25 +0000 (04:51 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 20 Jul 2017 11:58:57 +0000 (04:58 -0700)
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

folly/CppAttributes.h

index f1ed1c23bcf9b9c7beb057e633df82c395090a39..f435212d157986c28aa34c27199400014675b01b 100644 (file)
@@ -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