From 339c14d3295071baf13066aae1e8b7be1df62b34 Mon Sep 17 00:00:00 2001 From: Subodh Iyengar Date: Thu, 20 Jul 2017 04:51:25 -0700 Subject: [PATCH] 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 --- folly/CppAttributes.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.34.1