Adam Cozzette
7ad2210641
Add a staleness test for src/file_lists.cmake ( #10684 )
...
* Upgrade upb to latest head
My motivation for this is that I plan to make use of upb's
staleness_test() macro, which was recently renamed
(protocolbuffers/upb#810 ).
* Add a staleness test for src/file_lists.cmake
This test is tagged "manual", because ordinarily no one should be
directly running this test. If we were to run this test regularly during
development then we would expect it to fail occasionally, because
file_lists.cmake will sometimes be temporarily stale until it is
auto-updated by our post-merge GitHub action. We want to run this test
nightly just as a safeguard to alert us if anything ever goes wrong with
the auto-update.
2 years ago
zhangskz
1dc63ea581
Update versions and upb commit ( #10676 )
...
* Updating version.json and repo version numbers to: 21.7
* Updating changelog
Co-authored-by: Protobuf Team Bot <protobuf-team-bot@google.com>
2 years ago
Dennis
0a9e51ddf2
doc: Add documentation for CMake `protobuf_generate` ( #10590 )
...
* doc: Add document that describes protobuf_generate
How to use it.
How it works. (basic and with gRPC)
Reference documentation.
* doc: Address several typos and wording issues in cmake_protobuf_generate.md
2 years ago
Mike Kruskal
a3888f5331
Clean up TextFormat parser ( #10673 )
...
* Fix TextFormat parser
2 years ago
Mike Kruskal
9a6781e476
Fix TextFormat parser ( #10672 )
2 years ago
Mike Kruskal
db7c178033
Sync from Piper @mkruskal/footmitten
...
PROTOBUF_SYNC_PIPER
2 years ago
Mike Kruskal
3b5301c114
Refactoring Java parsing (21.x) ( #10665 )
...
* Porting java cleanup
* Update changelog
* Fix absl usage
* Extension patch
* Remove extra allocations
2 years ago
Mike Kruskal
0a12e946a2
Refactoring Java parsing (22.x) ( #10664 )
...
* Porting java cleanup
* Update changelog
* Extension patch
* Remove extra allocations
2 years ago
tison
2d0862131c
Auto capitalize enums name in Ruby ( #10454 )
...
This closes #1965 .
2 years ago
Mike Kruskal
77036367ce
Sync from Piper @mkruskal/footmitten
...
PROTOBUF_SYNC_PIPER
2 years ago
Mike Kruskal
a7da44c5ae
Sync from Piper @mkruskal/footmitten
...
PROTOBUF_SYNC_PIPER
2 years ago
Hai Hoang Dang
3be642b71e
Correct the link name for BUILD.bazel file ( #10662 )
...
* Correct the link name for BUILD file
* Correct BUILD.bazel text
2 years ago
Mike Kruskal
388e3d744f
Sync from Piper @mkruskal/footmitten
...
PROTOBUF_SYNC_PIPER
2 years ago
Matt Fowles Kulukundis
c45dd50ec4
Merge pull request #10660 from jhump/jh/comments-ignored
...
gracefully handle weird placement of linebreaks around comments
2 years ago
themoox
d993377d14
Fix MSVC C4244 narrowing conversion warning on 64-bit Windows. ( #10647 )
...
The difference_type (ptrdiff_t) is a narrowing conversion to size_type (int).
MSVC 2019 C++17 issues a C4244 warning about the initialization.
Co-authored-by: Mike Kruskal <62662355+mkruskal-google@users.noreply.github.com>
2 years ago
Josh Humphries
54ddc88966
gracefully handle weird placement of linebreaks around comments
2 years ago
Matt Fowles Kulukundis
86a8760244
Merge pull request #10610 from brad0/openbsd_platform_macros
...
No longer define no_threadlocal on OpenBSD
2 years ago
Mike Kruskal
d0936c37f5
Remove deprecated protoc-artifacts directory ( #10628 )
...
* Move build-protoc.sh script to kokoro release directory
* Move pom.xml to root directory
* Delete protoc-artifacts directory
* Merge pom.xml into the java/protoc version
* Review comments
2 years ago
deannagarcia
83d6e74bc6
Merge pull request #10616 from STAR-ZERO/add-public-modifier
...
Add missing `public` modifier to Kotlin generated code
2 years ago
Mike Kruskal
01fe22219a
Open up visibility for some compiler internals ( #10608 )
...
* Expose language-specific naming utilities in Bazel for downstream code generators
* Expose language generators without exposing implementation details
* Update cmake configs
* Revert "Expose language generators without exposing implementation details"
This reverts commit b073d9b4ebf28b825a6340ea0dfc60f1e43ae4c1.
* Give gRPC privileged access to our python generator
* Naming cleanup
* Add linkage for public names.h helpers
* Fixing build/merge issues
* Fix extension docstring
2 years ago
Mike Kruskal
d58d471117
Revert "Merge pull request #10581 from jhump/jh/custom-json-name-validation" ( #10657 )
...
This reverts commit d3b5389301
, reversing
changes made to bcd175578f
.
2 years ago
Mike Kruskal
1e24391438
Remove NMake support ( #10656 )
...
* Deleting NMake build
* Deleting documentation for NMake
2 years ago
Mike Kruskal
264292e4c7
Revert "Merge pull request #10470 from jhump/jh/source-code-info-pseudo-options" ( #10658 )
...
This reverts commit dd052c9dc6
, reversing
changes made to 0d3eaed6eb
.
2 years ago
Xavier Léauté
c7729aaa95
Merge branch 'main' into issue-9673
2 years ago
Thomas Van Lenten
a6f9ec815e
[ObjC] Raise the min OS versions (and required Xcode)
...
Xcode min: 13.3.1
iOS min: 10.0
macOS min: 10.12
tvOS min: 12.0
watchOS min: 6.0
Apple's AppStore requirements now require Xcode 13:
https://developer.apple.com/news/?id=2t1chhp3
Update to the minOS version and Xcode version that also matches what Firebase
as done as that seems like a common set for most Apple platforms
(https://firebase.google.com/docs/ios/setup ).
2 years ago
Thomas Van Lenten
2fb33b8c54
[ObjC] Move from `#pragma unused()` to `_unused`
2 years ago
Kenji Abe
2bc454cd9b
Add missing `public` modifier to Kotlin generated code
2 years ago
Mike Kruskal
b0c76ccc21
Sync from Piper @mkruskal/footmitten
...
PROTOBUF_SYNC_PIPER
2 years ago
Thomas Van Lenten
f1a939fb69
Add an objc_class_prefix for the proto2 syntax file used in conformance tests.
...
Not all the types have "Proto2" on the end, so for uniformity put an
objc_class_prefix like was done for the proto3 syntax file.
2 years ago
Mike Kruskal
391cc7b355
Merge pull request #10653 from mkruskal-google/sync-stage
...
Integrate from Piper for C++, Java, and Python
2 years ago
Mike Kruskal
12bedd20c3
Updating changelog
2 years ago
Mike Kruskal
38da0b3d42
Merge tag 'refs/tags/sync-piper' into sync-stage
...
# Conflicts:
# src/google/protobuf/arena.cc
# src/google/protobuf/compiler/java/enum_field_lite.cc
2 years ago
Mike Kruskal
e99b2819ee
Sync from Piper @476205078
...
PROTOBUF_SYNC_PIPER
2 years ago
Thomas Van Lenten
bc4cbf9a05
Remove the pre Xcode 10.2 support.
...
objectivec/README.md lists Xcode 10.2 as the minimum, update things accordingly.
- Remove code paths referencing the older versions.
- Remove support from the testing script.
2 years ago
Thomas Van Lenten
ecd63bb219
Format the test sources.
2 years ago
Thomas Van Lenten
189f6325d4
Format the runtime sources.
2 years ago
Thomas Van Lenten
5d0b2175c3
Format the headers.
2 years ago
Thomas Van Lenten
9e069b2e51
[ObjC] Tweak some things to be better shape for clang-format.
...
- Minor formatting changes to make thing happy.
- Block clang-format from the PDDM macro definitions to avoid it wrapping
things.
- Don't add clang-format directives to the expansion, easier to handling
it outside of there.
2 years ago
Thomas Van Lenten
7c64628669
[ObjC] Output directive to disable clang-format on generated files.
...
Regenerate the WKTs accordingly.
2 years ago
Mike Kruskal
374465f683
Merge pull request #10636 from mkruskal-google/sync-stage
...
Integrate from Piper for C++, Java, and Python
2 years ago
Mike Kruskal
2ce17c08a2
Fixing sync problems
2 years ago
Mike Kruskal
1bd3d1932a
Update changelog
2 years ago
Mike Kruskal
c3e751aac6
Sync from Piper @475378801
...
PROTOBUF_SYNC_PIPER
2 years ago
Miguel Young
b971bea8aa
Merge pull request #10635 from mcy/retrigger-kokoro
...
Unbreak Windows tests
2 years ago
Miguel Young de la Sota
0a60bdc070
Fix a UAF in descriptor.cc that slipped past CI
2 years ago
Miguel Young
d3b5389301
Merge pull request #10581 from jhump/jh/custom-json-name-validation
...
protoc: validate custom json_name configuration
2 years ago
Mike Kruskal
bcd175578f
Merge pull request #10586 from jhump/jh/validate-reserved-names
...
protoc: validate reserved names are identifiers
2 years ago
Josh Humphries
8f17f57855
don't return false and abort parsing of current statement
2 years ago
Josh Humphries
072fb8f58a
downgrade to a warning
2 years ago
Josh Humphries
c7ba0553f5
return struct instead of using out param
2 years ago