Commit graph

172 commits

Author SHA1 Message Date
Protobuf Team Bot
74f182510d Auto-generate files after cl/816837388 2025-10-08 20:40:46 +00:00
Protobuf Team Bot
afe578f0fd Auto-generate files after cl/740773590 2025-03-26 15:29:16 +00:00
Protobuf Team Bot
6ccd2b145b Auto-generate files after cl/729120445 2025-02-20 16:37:20 +00:00
Protobuf Team Bot
37b2e3cb43 Internal changes.
PiperOrigin-RevId: 625086124
2024-04-15 14:37:15 -07:00
Thomas Van Lenten
740d314166 [ObjC] Simplify root registry generation.
The the distinction in the output isn't worth it.

PiperOrigin-RevId: 556828871
2023-08-14 10:06:35 -07:00
Thomas Van Lenten
6c4ab101ce Move MessageGenerator::GenerateSource over to Printer::Emit
There are whatespace changes because I couldn't get some of the
generated CPreProcessor things to line up in the exact same way.

PiperOrigin-RevId: 547188309
2023-07-11 07:54:35 -07:00
Thomas Van Lenten
e50ee82feb Change indent the indent to try and stabilize the export/import.
Not really sure why things changed and started having this problem, but
cl/536414905 & cl/536708284 just keep swapping this so hopefully changing
the formatting to avoid this going forward.

PiperOrigin-RevId: 537035911
2023-06-01 08:53:15 -07:00
Protobuf Team Bot
d73406a007 Auto-generate files after cl/537029283 2023-06-01 15:34:21 +00:00
Protobuf Team Bot
47f76b7a33 Minor refactor to MapSorter to avoid putting the value_type/mapped_type in the std::sort instantiation.
This allows making only a few instantiations of std::sort (one per key type) instead of one for each key-value pair.

PiperOrigin-RevId: 537029283
2023-06-01 08:24:23 -07:00
Protobuf Team Bot
02e071fe0b Auto-generate files after cl/536936386 2023-06-01 07:32:38 +00:00
Protobuf Team Bot
aa9919d1f8 Internal change
PiperOrigin-RevId: 536936386
2023-06-01 00:23:53 -07:00
Protobuf Team Bot
8322f28183 Auto-generate files after cl/536934704 2023-06-01 07:17:11 +00:00
Protobuf Team Bot
917e00e393 Internal change
PiperOrigin-RevId: 536934704
2023-06-01 00:08:13 -07:00
Protobuf Team Bot
df3b8feadc Auto-generate files after cl/536929770 2023-06-01 06:50:13 +00:00
Jie Luo
52dfa4b853 Update file reference for compiler/cpp/file.cc
PiperOrigin-RevId: 536929770
2023-05-31 23:38:11 -07:00
Protobuf Team Bot
39f7631f47 Auto-generate files after cl/536859974 2023-06-01 00:02:12 +00:00
Protobuf Team Bot
d8901265c7 Check invalid type_id after casting it to uint32_t.
PiperOrigin-RevId: 536859974
2023-05-31 16:49:21 -07:00
Protobuf Team Bot
96c5923601 Auto-generate files after cl/536851491 2023-05-31 23:21:34 +00:00
Mike Kruskal
7971ec7629 Clarify is_packed comments.
PiperOrigin-RevId: 536851491
2023-05-31 16:12:47 -07:00
Protobuf Team Bot
d5df25d965 Auto-generate files after cl/536843635 2023-05-31 22:51:28 +00:00
Mike Kruskal
12e0f1d66a Regenerate amalgamation files
PiperOrigin-RevId: 536843635
2023-05-31 15:42:29 -07:00
Protobuf Team Bot
6d282c969b Auto-generate files after cl/536772539 2023-05-31 18:39:35 +00:00
Protobuf Team Bot
fd3b5e8436 Internal change
PiperOrigin-RevId: 536772539
2023-05-31 11:27:32 -07:00
Protobuf Team Bot
55919fb8e0 Auto-generate files after cl/536759444 2023-05-31 17:59:16 +00:00
Protobuf Team Bot
28d47b0e0c Internal change
PiperOrigin-RevId: 536759444
2023-05-31 10:50:18 -07:00
Protobuf Team Bot
71cfdad483 Auto-generate files after cl/536748225 2023-05-31 17:21:08 +00:00
Protobuf Team Bot
a170ac4be1 Internal change
PiperOrigin-RevId: 536748225
2023-05-31 10:11:55 -07:00
Protobuf Team Bot
4affcfe3b3 Auto-generate files after cl/536738975 2023-05-31 16:49:08 +00:00
Protobuf Team Bot
9f9d55d393 Internal change
PiperOrigin-RevId: 536738975
2023-05-31 09:39:50 -07:00
Protobuf Team Bot
3f765780f2 Auto-generate files after cl/536731565 2023-05-31 16:23:50 +00:00
Protobuf Team Bot
9cedad1f46 Internal change
PiperOrigin-RevId: 536731565
2023-05-31 09:10:43 -07:00
Protobuf Team Bot
315ffb5be8 Auto-generate files after cl/536708284 2023-05-31 14:47:40 +00:00
Marcel Hlopko
8f5404ab11 Update golden file
PiperOrigin-RevId: 536708284
2023-05-31 07:38:48 -07:00
Protobuf Team Bot
340ebaa15d Auto-generate files after cl/536700260 2023-05-31 14:08:12 +00:00
Protobuf Team Bot
2280577370 Internal change
PiperOrigin-RevId: 536700260
2023-05-31 06:59:11 -07:00
Protobuf Team Bot
f5906ea631 Auto-generate files after cl/536671631 2023-05-31 11:29:39 +00:00
Protobuf Team Bot
55c75b64ab Internal change
PiperOrigin-RevId: 536671631
2023-05-31 04:20:16 -07:00
Protobuf Team Bot
8f95cdf315 Auto-generate files after cl/536621668 2023-05-31 07:13:17 +00:00
Protobuf Team Bot
767ef4dc13 Internal change
PiperOrigin-RevId: 536621668
2023-05-31 00:01:39 -07:00
Protobuf Team Bot
b30f3de12f Auto-generate files after cl/536547302 2023-05-31 00:25:40 +00:00
Protobuf Team Bot
48613d16de Internal change
PiperOrigin-RevId: 536547302
2023-05-30 16:59:03 -07:00
Protobuf Team Bot
a3ca51dbaf Auto-generate files after PR #12916 2023-05-30 22:28:07 +00:00
Carlos O'Ryan
4ad5f54fe6 cleanup(cmake): prefer target over global options (#12916)
In CMake >= 3.0 it is more idiomatic to set per-target compiler options than global compiler settings. I have kept these options and defines as `PRIVATE` so they won't be exported with the target.

Closes #12916

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12916 from coryan:cleanup-cmake-avoid-global-compile-settings 3d586dc0e8
PiperOrigin-RevId: 536517165
2023-05-30 14:56:51 -07:00
Protobuf Team Bot
281c5dc908 Auto-generate files after PR #12919 2023-05-30 21:21:35 +00:00
なつき
6609bea792 Fix jruby encoding in new thread (#12919)
In jruby `runtime.evalScriptlet('Encoding::UTF_8')` can be broken under a newly created thread, which can cause protobuf encoding to fail. For example: https://github.com/ntkme/sass-embedded-host-ruby/actions/runs/5108602231/jobs/9182569583#step:5:544

It real issue seems to be in jruby itself. A bug report with minimal reproduction has been filed at https://github.com/jruby/jruby/issues/7820

This PR fixes the problem by effectively replacing `runtime.evalScriptlet('Encoding::UTF_8')` with `runtime.getEncodingService().convertEncodingToRubyEncoding(org.jcodings.specific.UTF8Encoding.INSTANCE)`, which works on all threads.

Closes #12919

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12919 from ntkme:fix-jruby-encoding 345680ea91
PiperOrigin-RevId: 536498846
2023-05-30 13:56:39 -07:00
Protobuf Team Bot
79f0575735 Auto-generate files after cl/536496189 2023-05-30 20:48:38 +00:00
Protobuf Team Bot
4b3615c332 Move more methods into MapFieldBase using the type-erased iteration functions.
This further reduces code duplication and binary size.

PiperOrigin-RevId: 536496189
2023-05-30 13:39:32 -07:00
Protobuf Team Bot
472e8b40f6 Auto-generate files after cl/536487251 2023-05-30 20:16:31 +00:00
Protobuf Team Bot
252aaba0e0 Internal change
PiperOrigin-RevId: 536487251
2023-05-30 13:07:40 -07:00
Protobuf Team Bot
81b432f645 Auto-generate files after cl/536439101 2023-05-30 17:33:17 +00:00