diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-07-24 10:45:37 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-24 10:45:37 -0400 |
commit | d5a7947e8b3fc9b8f45ad1a0f0380e22e67fe6d1 (patch) | |
tree | c1cb06d8b7506db07fbdea1cace5bad169b731e4 | |
parent | cbe1864ab421d4fe71c19ed592318f87272af577 (diff) | |
parent | f430ec5c50fbe7707343136cc4f3dde72b62d950 (diff) | |
download | rneovim-d5a7947e8b3fc9b8f45ad1a0f0380e22e67fe6d1.tar.gz rneovim-d5a7947e8b3fc9b8f45ad1a0f0380e22e67fe6d1.tar.bz2 rneovim-d5a7947e8b3fc9b8f45ad1a0f0380e22e67fe6d1.zip |
Merge pull request #986 from aktau/func-attr-enable-more-clang
func_attr: clang/icc support NONNULL_* attr
-rw-r--r-- | src/nvim/func_attr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/func_attr.h b/src/nvim/func_attr.h index 6c29f0fed4..c75d0ab312 100644 --- a/src/nvim/func_attr.h +++ b/src/nvim/func_attr.h @@ -105,6 +105,8 @@ #define REAL_FATTR_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #define REAL_FATTR_ALWAYS_INLINE __attribute__((always_inline)) #define REAL_FATTR_UNUSED __attribute__((unused)) + #define REAL_FATTR_NONNULL_ALL __attribute__((nonnull)) + #define REAL_FATTR_NONNULL_ARG(...) __attribute__((nonnull(__VA_ARGS__))) #ifdef __clang__ // clang only @@ -118,8 +120,6 @@ // gcc only #define REAL_FATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x))) #define REAL_FATTR_ALLOC_SIZE_PROD(x,y) __attribute__((alloc_size(x,y))) - #define REAL_FATTR_NONNULL_ALL __attribute__((nonnull)) - #define REAL_FATTR_NONNULL_ARG(...) __attribute__((nonnull(__VA_ARGS__))) #if GCC_VERSION >= 40900 #define REAL_FATTR_NONNULL_RET __attribute__((returns_nonnull)) #endif |