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
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
Mike Kruskal
388e3d744f
Sync from Piper @mkruskal/footmitten
...
PROTOBUF_SYNC_PIPER
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
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
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
Kenji Abe
2bc454cd9b
Add missing `public` modifier to Kotlin generated code
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
e99b2819ee
Sync from Piper @476205078
...
PROTOBUF_SYNC_PIPER
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
2ce17c08a2
Fixing sync problems
2 years ago
Mike Kruskal
c3e751aac6
Sync from Piper @475378801
...
PROTOBUF_SYNC_PIPER
2 years ago
Miguel Young de la Sota
0a60bdc070
Fix a UAF in descriptor.cc that slipped past CI
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
Josh Humphries
8e74523ff6
address review feedback
2 years ago
Dennis Shao
790f85dad2
Correct the link to example WORKSPACE file
2 years ago
Mike Kruskal
d4af9c919f
Fixing bad merges, updating generated files
2 years ago
Mike Kruskal
81e35132bf
Improve CMake installation tests ( #10615 )
...
* Using glob to remove headers instead of cyclic file_lists
* Simplify CMake config and include missing files
* Don't remove generated proto headers
* Fix broken CMake proto dependencies instead of opting out pb.h files.
* Fixing cyclic dependency
2 years ago
Mike Kruskal
01c340d0bb
Adding full build to 32 bit tests ( #10589 )
...
* Adding full build to 32 bit tests
* Running C++ tests in 32 bit builds
* Patching static assert test failure
* Test fixes for 32-bit architectures
* Cleanup after CMake build
* Save protoc before cleanup
* Route protoc better
2 years ago
Protobuf Team Bot
fe9db54ced
Auto-generate CMake file lists after PR #10612
2 years ago
Adam Cozzette
975ed9f704
Make slight change to ordering in src/file_lists.cmake ( #10612 )
...
This change does not directly do anything useful, but the goal is to
confirm that the GitHub action for auto-generating file_lists.cmake will
quickly rewrite the file in its canonical form.
2 years ago
Brad Smith
644d7ec8cf
No longer define no_threadlocal on OpenBSD
2 years ago
Thomas Van Lenten
2202cc8d33
Add clang-format for some things are well formatted already.
...
The sources haven't yet been reformatted, there are lots of Print() calls that
end up worse, but those should probably get revisit to Emit() instead.
2 years ago
Deanna Garcia
42ce332a5f
Add missing modifier
2 years ago
Deanna Garcia
47a3ccf756
Add missing public
2 years ago
Deanna Garcia
b6a3f6eb98
Add public modifier
2 years ago
Joshua Humphries
e293b5cc43
clarify comment
2 years ago
Joshua Humphries
7e745c4910
oops, fix name: LOG -> GOOGLE_LOG
2 years ago
Josh Humphries
d86340e37d
apply clang-format changes; change really long pair type to auto
2 years ago
Josh Humphries
16627c5f41
address review feedback wrt absl string functions
...
also moves helpers into anonymous namespace
2 years ago
Josh Humphries
7c57fb08e6
JSON -> Json
2 years ago
Joshua Humphries
0362a1204f
initialize var to avoid undefined return val
2 years ago
Josh Humphries
d6acffba7b
use normal conditional
2 years ago
Thomas Van Lenten
3c01924679
[ObjC] Move generation options out to their own file.
...
This will make it easier to pass the option down in the future to the other
parts (message, enum, extension, etc. generators) as needed.
2 years ago
Thomas Van Lenten
b67bd3309b
[ObjC] Add helper for IsCreateName for the CF Create Rule.
...
Also add tests for all of the Is*Name helpers.
2 years ago
Josh Humphries
f82be68831
avoid possible exception; error if octal or hex literal that is too large
2 years ago
Thomas Van Lenten
9b64c403f6
[ObjC] Clean up includes.
...
- Sort things.
- Remove the duplicate (not sure if some automation went wrong at some point).
2 years ago
Josh Humphries
0bc90b189c
put helpers into anon namespace
2 years ago
Josh Humphries
1eb29b8257
validate reserved names are identifiers
2 years ago
Josh Humphries
7702355b9c
address latest review comments
2 years ago
Mike Kruskal
0264866ce6
Use generated WKT code in Bazel builds ( #10576 )
...
* Use generated WKT code in Bazel builds
* Prefer src over external for genrule
* Prefer external over src for genrule
* Proper fix for windows proto path issues
2 years ago
Josh Humphries
4c69337faa
use template instead of macro
2 years ago
Josh Humphries
35dd193f47
add test to verify parsing of extremely large decimal integers to double values
2 years ago
Josh Humphries
4e54ec20d1
change format of int range in error message; use macro to make DRY
2 years ago