Commit graph

14 commits

Author SHA1 Message Date
Protobuf Team Bot
f3dc7b4b41 Auto-generate files after cl/859195047 2026-01-21 19:59:24 +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
Protobuf Team Bot
4ed02cc3a5 [ObjC] Generator changes for fullName and FileDescriptor improvements
PiperOrigin-RevId: 508063892
2023-02-08 06:37:35 -08:00
Protobuf Team Bot
48ff4f6219 [ObjC] Loosen the link between generate messages and roots.
The root class only needs to be started up if the message scopes extensions.
This updates the startup flows so the root is only started when the message
scopes extensions and thus the runtime requires that startup.

Bump the generated source version to account for the new initializer that
doesn't take the rootClass argument.

Fix typo while at it.

PiperOrigin-RevId: 504899046
2023-01-26 11:38:59 -08:00
Protobuf Team Bot
4df096f1e9 [ObjC] Move GenerateHeader over to Printer::Emit.
Update ImportWriter to have a second Emit api for the runtime files to
streamline things a bit better.

PiperOrigin-RevId: 492210147
2022-12-01 09:01:42 -08:00
Protobuf Team Bot
4a122474ce [ObjC] Update generation to include the new closed enum information.
Also bump the generation version since the generate files require the newer
library version.

PiperOrigin-RevId: 488711994
2022-11-15 11:24:30 -08:00
Thomas Van Lenten
672adeb84f [ObjC] Fix up clang-format directives in generate files.
- If the source name is long enough, clang-format can want to reflow that
  comment line, so move up the directive.
- Fix typo at the end of the file.
2022-10-06 18:50:48 -04:00
Thomas Van Lenten
7c64628669 [ObjC] Output directive to disable clang-format on generated files.
Regenerate the WKTs accordingly.
2022-09-23 14:09:00 -04:00
Mike Kruskal
7ff876d758
Migrating macos php builds from 7.0/7.3 to 7.4/8.0 (#10274)
* Migrating macos php builds from 7.0/7.3 to 7.4/8.0

* Removing local comments

* Fix kokoro issues

* Further cleanup

* Fix permissions in Ruby release test
2022-07-20 20:58:32 -07:00
Thomas Van Lenten
020e4e33d1 Simplify imports of the WKTs within the library itself.
Overdue followup to https://github.com/protocolbuffers/protobuf/pull/7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h/GPBWellKnownTypes.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
2022-03-01 17:01:33 -05:00
Thomas Van Lenten
b0e2792842 [ObjC] Generation changes around proto3 optional.
- Bump the version marker in the generated code.
- Set the flag to say clear on zero is known.
- Set clear on zero for proto3 optional fields that aren't tagged as optional.
- Also tweak the call from some C generated code to use different apis with
  better validation.
- Mark the ObjC generator as supporting the proto3 optional feature.
- Regenerate the WKTs to get the new flags.
2020-04-24 16:36:15 -04:00
Thomas Van Lenten
56c48ae592 Revisit how the WKTs are bundled with ObjC.
There are have been a few issues around people using case sensitive file systems
what Xcode/clang does when looking at the paths. In attempts to solve one set of
warnings, new warnings/errors happened in different setup. So, to hopefully put
these problem away for got, move the WKTs to be at the same level as the other
headers.

- Revert "Override CocoaPods module to lowercase (#6464)"
  This reverts commit 479ba8226b.
- Move WKTs to the objectivec directory and make the old headers shim back to
  the new locations.
- Update objectivec/generate_well_known_types.sh to check them one at a time
  and to deal with the new locations for them.

Fixes #6803
2020-02-10 12:20:05 -05:00