Skip to content

Commit 4b63fdb

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 954251144
1 parent 7140d7f commit 4b63fdb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

internal/empty_descriptors.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "internal/empty_descriptors.h"
1616

1717
#include <cstdint>
18+
#include <iterator>
1819

1920
#include "google/protobuf/descriptor.pb.h"
2021
#include "absl/base/attributes.h"
@@ -39,7 +40,7 @@ const google::protobuf::DescriptorPool* absl_nonnull GetEmptyDescriptorPool() {
3940
static const google::protobuf::DescriptorPool* absl_nonnull const pool = []() {
4041
google::protobuf::FileDescriptorSet file_desc_set;
4142
ABSL_CHECK(file_desc_set.ParseFromArray( // Crash OK
42-
kEmptyDescriptorSet, ABSL_ARRAYSIZE(kEmptyDescriptorSet)));
43+
kEmptyDescriptorSet, std::size(kEmptyDescriptorSet)));
4344
auto* pool = new google::protobuf::DescriptorPool();
4445
for (const auto& file_desc : file_desc_set.file()) {
4546
ABSL_CHECK(pool->BuildFile(file_desc) != nullptr); // Crash OK

internal/minimal_descriptors.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
#include <cstdint>
16+
#include <iterator>
1617
#include <string>
1718
#include <vector>
1819

@@ -43,7 +44,7 @@ const google::protobuf::FileDescriptorSet* GetMinimumFileDescriptorSet() {
4344
static google::protobuf::FileDescriptorSet* const file_desc_set = []() {
4445
google::protobuf::FileDescriptorSet* file_desc_set = new google::protobuf::FileDescriptorSet();
4546
ABSL_CHECK(file_desc_set->ParseFromArray( // Crash OK
46-
kMinimalDescriptorSet, ABSL_ARRAYSIZE(kMinimalDescriptorSet)));
47+
kMinimalDescriptorSet, std::size(kMinimalDescriptorSet)));
4748
return file_desc_set;
4849
}();
4950
return file_desc_set;

0 commit comments

Comments
 (0)