diff options
author | Abseil Team <absl-team@google.com> | 2023-07-06 10:49:58 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-07-06 10:50:35 -0700 |
commit | 93ef827f6160dd41e11042ce638e052272f77d7b (patch) | |
tree | bb9b72110ce01e94add2d8eef901999775075552 /absl/base/internal | |
parent | c26cd952ae342ac519fd9f98b67e6152f135c6ce (diff) |
Rename `absl::NonNull` to `absl::Nonnull`.
The current spelling is inconsistent with standard casing rules: "nonnull" is a single word, not two.
PiperOrigin-RevId: 546034114
Change-Id: I04e5a204f4a74ebaa76031dd0b0874ca9cfa902c
Diffstat (limited to 'absl/base/internal')
-rw-r--r-- | absl/base/internal/nullability_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/absl/base/internal/nullability_impl.h b/absl/base/internal/nullability_impl.h index 74f4a417..36e1b33d 100644 --- a/absl/base/internal/nullability_impl.h +++ b/absl/base/internal/nullability_impl.h @@ -60,7 +60,7 @@ struct EnableNullable { }; template <typename T> -struct EnableNonNull { +struct EnableNonnull { static_assert(nullability_internal::IsSupportedType<std::remove_cv_t<T>>, "Template argument must be a raw or supported smart pointer " "type. See absl/base/nullability.h."); @@ -86,8 +86,8 @@ using NullableImpl #endif = T; -template <typename T, typename = typename EnableNonNull<T>::type> -using NonNullImpl +template <typename T, typename = typename EnableNonnull<T>::type> +using NonnullImpl #if ABSL_HAVE_CPP_ATTRIBUTE(clang::annotate) [[clang::annotate("Nonnull")]] #endif |