diff options
author | Derek Mauro <dmauro@google.com> | 2024-06-12 08:23:36 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-06-12 08:24:30 -0700 |
commit | 17137c084a3d502277bea803b076894eef06af41 (patch) | |
tree | f989f0b4885bc2309915d8c5df168506841555de | |
parent | 567ebd0540f4e56d125491e71e2727d8ab5458e0 (diff) | |
download | abseil-17137c084a3d502277bea803b076894eef06af41.tar.gz abseil-17137c084a3d502277bea803b076894eef06af41.tar.bz2 abseil-17137c084a3d502277bea803b076894eef06af41.zip |
Add the missing inline namespace to the nullability files
PiperOrigin-RevId: 642621989
Change-Id: I95efa4bd9fe8fe3c449304706401374f851f0fbe
-rw-r--r-- | absl/base/BUILD.bazel | 1 | ||||
-rw-r--r-- | absl/base/CMakeLists.txt | 1 | ||||
-rw-r--r-- | absl/base/internal/nullability_impl.h | 4 | ||||
-rw-r--r-- | absl/base/nullability.h | 3 |
4 files changed, 8 insertions, 1 deletions
diff --git a/absl/base/BUILD.bazel b/absl/base/BUILD.bazel index f0e3e63f..cf5a84d8 100644 --- a/absl/base/BUILD.bazel +++ b/absl/base/BUILD.bazel @@ -87,6 +87,7 @@ cc_library( copts = ABSL_DEFAULT_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ + ":config", ":core_headers", "//absl/meta:type_traits", ], diff --git a/absl/base/CMakeLists.txt b/absl/base/CMakeLists.txt index 09c622ab..e010efec 100644 --- a/absl/base/CMakeLists.txt +++ b/absl/base/CMakeLists.txt @@ -75,6 +75,7 @@ absl_cc_library( SRCS "internal/nullability_impl.h" DEPS + absl::config absl::core_headers absl::type_traits COPTS diff --git a/absl/base/internal/nullability_impl.h b/absl/base/internal/nullability_impl.h index 36e1b33d..03fa2434 100644 --- a/absl/base/internal/nullability_impl.h +++ b/absl/base/internal/nullability_impl.h @@ -19,10 +19,11 @@ #include <type_traits> #include "absl/base/attributes.h" +#include "absl/base/config.h" #include "absl/meta/type_traits.h" namespace absl { - +ABSL_NAMESPACE_BEGIN namespace nullability_internal { // `IsNullabilityCompatible` checks whether its first argument is a class @@ -101,6 +102,7 @@ using NullabilityUnknownImpl = T; } // namespace nullability_internal +ABSL_NAMESPACE_END } // namespace absl #endif // ABSL_BASE_INTERNAL_NULLABILITY_IMPL_H_ diff --git a/absl/base/nullability.h b/absl/base/nullability.h index 6f49b6f5..7804de2e 100644 --- a/absl/base/nullability.h +++ b/absl/base/nullability.h @@ -150,9 +150,11 @@ #ifndef ABSL_BASE_NULLABILITY_H_ #define ABSL_BASE_NULLABILITY_H_ +#include "absl/base/config.h" #include "absl/base/internal/nullability_impl.h" namespace absl { +ABSL_NAMESPACE_BEGIN // absl::Nonnull // @@ -219,6 +221,7 @@ using Nullable = nullability_internal::NullableImpl<T>; template <typename T> using NullabilityUnknown = nullability_internal::NullabilityUnknownImpl<T>; +ABSL_NAMESPACE_END } // namespace absl #endif // ABSL_BASE_NULLABILITY_H_ |