mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
Fix CI on macOS Sequoia
This includes fixes for both the CI scripts in the new OS image and a fix for newly detected missing nullability annotations in string_view with an upgraded Clang. It is also no longer necessary to uninstall google-benchmark since it is not installed by default in the new image. PiperOrigin-RevId: 764725127 Change-Id: I6ea8c55b4d9a9afd261bf4ae9c5e8239675ea7ca
This commit is contained in:
committed by
Copybara-Service
parent
7e67f4ffaa
commit
4d8e467f28
@@ -376,7 +376,7 @@ class ABSL_ATTRIBUTE_VIEW string_view {
|
||||
//
|
||||
// Copies the contents of the `string_view` at offset `pos` and length `n`
|
||||
// into `buf`.
|
||||
size_type copy(char* buf, size_type n, size_type pos = 0) const {
|
||||
size_type copy(char* absl_nonnull buf, size_type n, size_type pos = 0) const {
|
||||
if (ABSL_PREDICT_FALSE(pos > length_)) {
|
||||
base_internal::ThrowStdOutOfRange("absl::string_view::copy");
|
||||
}
|
||||
@@ -624,7 +624,7 @@ class ABSL_ATTRIBUTE_VIEW string_view {
|
||||
|
||||
// Overload of `string_view::starts_with()` that returns true if the
|
||||
// `string_view` starts with the C-style prefix `s`.
|
||||
constexpr bool starts_with(const char* s) const {
|
||||
constexpr bool starts_with(const char* absl_nonnull s) const {
|
||||
return starts_with(string_view(s));
|
||||
}
|
||||
|
||||
@@ -649,7 +649,7 @@ class ABSL_ATTRIBUTE_VIEW string_view {
|
||||
|
||||
// Overload of `string_view::ends_with()` that returns true if the
|
||||
// `string_view` ends with the C-style suffix `s`.
|
||||
constexpr bool ends_with(const char* s) const {
|
||||
constexpr bool ends_with(const char* absl_nonnull s) const {
|
||||
return ends_with(string_view(s));
|
||||
}
|
||||
#endif // ABSL_INTERNAL_CPLUSPLUS_LANG >= 202002L
|
||||
|
||||
Reference in New Issue
Block a user