appledragon
1d2e8d9302
for old clang build issue, related with https://reviews.llvm.org/D12375 ( #9159 )
...
This seems wrong: given [[foo]] [[bar]], we'll now parse the second one as an MS attribute in a context where both are allowed.
3 years ago
Marnix Bouhuis
e350ef8c20
JS: Fixed `ReferenceError: window is not defined` when getting the global object ( #9156 )
3 years ago
Taufiq Rahman
84c2e1e502
Fix grammatical error in comments #7603
3 years ago
appledragon
02d2e5fdd7
Update stl_util.h
3 years ago
Adam Cozzette
42db8a3f96
Make IsDescriptor* helpers lenient about descriptor name ( #9127 )
...
Our internal version of the codebase has a different path and package
name for descriptor.proto, so this change updates IsDescriptorProto()
and IsDescriptorOptionMessage() to be able to handle both the internal
and external descriptor types.
3 years ago
Adam Cozzette
17b30e9647
Update protobuf version ( #9119 )
3 years ago
Joshua Haberman
bb5a2684de
Minor whitespace fixes and test fixups.
3 years ago
Joshua Haberman
4c445b1803
Fix for descriptor_pb.rb: google/protobuf should be required first.
3 years ago
Deanna Garcia
ad9eb238cc
Fixing formatting
3 years ago
Deanna Garcia
33113ce9f9
Fixing inlining and deprecation for repeated string fields in kotlin
3 years ago
Adam Cozzette
3f3e6f47c6
Update version to 3.19.0-rc2 and fix changelog about Java 7 ( #9116 )
...
* Update protobuf version
* Update CHANGES.txt to reflect that we're not yet dropping Java 7
3 years ago
Masaki Hara
d08bc71c96
Suppress dot-delimiter warning if ruby_package consists of a single component ( #7276 )
3 years ago
Adam Cozzette
519340d662
Update protobuf version ( #9106 )
3 years ago
Adam Cozzette
f367bfb13d
Use dedicated helper functions for map descriptors ( #9099 )
...
The Descriptor class now has map_key() and map_value() methods for
accessing the special key and value fields in generated map entry
messages. This commit updates all the relevant code to use these
accessors instead of the clunkier FindFieldByName("key") or
FindFieldByName("value") approach.
3 years ago
Adam Cozzette
d049bce844
Remove references to HAVE_PTHREAD ( #9100 )
...
This is based on @haberman's changes in #8257 . Now that we're using
std::mutex we no longer need to check whether pthreads are available, so
this commit removes references to HAVE_PTHREAD. I left the autotools
build alone, though, since we are likely to drop support for it soon
anyway.
3 years ago
Jorg Brown
72f085747e
Use int32_t rather than int32.
3 years ago
Marnix Bouhuis
6bc21b531e
Update the way we get the global object, to comply with CSP no-unsafe-eval ( #8864 )
3 years ago
Adam Cozzette
68c17dcde8
Tweak syntax of casting function to void
...
GCC 4.9 seems to be unable to handle (void) syntax with a function, but
it is OK with a static_cast to void.
3 years ago
Adam Cozzette
1f66b1b032
Sync from Piper @402594188
...
PROTOBUF_SYNC_PIPER
3 years ago
Dietmar Scheidl
3bdcc1266b
Fix build on AIX and SunOS ( #8373 ) ( #9065 )
...
* fix includes for AIX and SunOS
3 years ago
mgabris
1b22582bc0
Fix unused variable warnings in extension_set.h ( #9073 )
3 years ago
johanmoe
15c63ad850
Fix build error with MinGW ( #9077 )
...
Fixes:
* zero_copy_stream_impl.cc uses F_GETFL when build with MinGW,
which isn't defined under Windows.
3 years ago
NexusNull
5142e362bc
Update README.md ( #9078 )
...
remove dollar sign for easier copying
3 years ago
Adam Cozzette
0dab03ba7b
Update protobuf version to 3.18.1 ( #9051 )
...
* Update protobuf version
* Update PHP release notes in package.xml
3 years ago
Jason Lunn
f88c8ef11a
Remove vestigial function that makes a dated claim that Ruby doesn't support proto2
3 years ago
Thomas Van Lenten
be37b08a31
review feedback
3 years ago
Thomas Van Lenten
9ab14a81e1
Fix spacing in message (missing a space between words from line split)
3 years ago
Thomas Van Lenten
a9e1d7c177
Remove some of the state handoff via ivars within Parser.
...
Hopefully makes things a litte easier to follow.
3 years ago
Thomas Van Lenten
a7823bbd45
Ensure errors are reported from the last chunk of a file.
...
- Fix case where no error was provide if the consumer rejected something in the
final chunk of input.
- Expose a more testable interface for the parser.
- Test all the basic behaviors of the parser.
3 years ago
Joshua Haberman
5e8396fd27
Performance fix for DynamicMessage: force GetRaw() to be inlined.
3 years ago
Thomas Van Lenten
5d5bc234ea
Move some common code into a helper.
3 years ago
Thomas Van Lenten
57da2b45ae
Update some types to be more current.
3 years ago
Thomas Van Lenten
c4e0deddb9
Add two new generation options around objc prefix usage.
...
- `require_prefixes`: Fail generation if a file doesn't have the option.
- `prefixes_must_be_registered`: If a prefix is in a file, it must be registered
in the expected file. There is a grey space here for files without packages as
there is no way to register it, so these case will still warn at the moment.
3 years ago
Eddie-cz
58a7c8ab92
Update port_def.inc ( #8993 )
3 years ago
zhangskz
740c4b082d
Update ruby_generator.cc to allow proto2 imports in proto3 ( #9003 )
...
* Update ruby_generator.cc to allow proto2 imports in proto3, with updated unit tests
* Update Makefile.am with new ruby_generated_code_proto2_import.proto
* Fix ruby_generator unit test to use temporary test directory for imported protos
* Add test for imported proto2 to ruby/tests
* Fix proto_path, restore to ../src/protoc, and fix/cleanup unit test.
* Rename Proto2TestMessage to TestImportedMessage for consistency, for ruby compiler tests
3 years ago
Jason Erb
8e451fa7c4
Protobuf: Fix for C5041 for VC++ >= 15.5 ( #8979 )
...
* Protobuf: Fix for C5041 for VC++ > 15.5
Introduced in 15.5: https://docs.microsoft.com/en-us/cpp/overview/cpp-conformance-improvements-2017?view=msvc-160#inline-variables
15.5 is 1912: https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-160
Issue: #8978
* Fix comment wording for #8978
3 years ago
Sil3ntStorm
32677158b4
Fix unused variable warnings outside of compiler directory ( #8945 )
3 years ago
Paul Yang
12fb2b7450
Update protobuf version ( #8973 )
...
* Update protobuf version
* Update php notes
3 years ago
Sil3ntStorm
385672597f
Disable MSVC warning C4125 (decimal digit terminates octal escape sequence) ( #8928 )
3 years ago
Sil3ntStorm
8c7e082920
Fix warning about unary minus operator ( #8929 )
3 years ago
Sil3ntStorm
d6699989ab
Fix shadowing warnings ( #8926 )
3 years ago
junzeng
fabb59448a
Clean up unused code in src\google\protobuf\compiler\cpp\cpp_helpers.h ( #8819 )
...
Co-authored-by: junzeng <hjunzeng6@gmail.com>
3 years ago
Sandy Zhang
6dd2176354
Sync from Piper @396393195
...
PROTOBUF_SYNC_PIPER
3 years ago
Joshua Haberman
bbf5d54ab7
Added missing source to Makefile.am.
3 years ago
Joshua Haberman
e5c570bb57
Sync from Piper @395706834
...
PROTOBUF_SYNC_PIPER
3 years ago
Kevin Gibson
10d0faef6d
Use ReadVarint32 for Int32 types ( #8769 )
...
* Add INT32 to list of 32-bit varint types
* update descriptor protos
Co-authored-by: Greg Stoll <greg@gregstoll.com>
4 years ago
Sil3ntStorm
7b9b7fe4a0
Fix unreachable code return in a case label that has a switch with only a default case in it, which returns already ( #8927 )
4 years ago
Sil3ntStorm
c87e1ae597
Fix uninitialized variable warnings in descriptor.cc ( #8931 )
...
* Fix uninitialized variable use warnings in descriptor.cc AllocateFieldNames and AllocRawInternal
* Fix missing-field-initializers warning
4 years ago
Sil3ntStorm
ef6a9b2854
Fix cast truncates constant value warning ( #8932 )
4 years ago
Sil3ntStorm
1473d74620
Disable conditional expression is constant warning (C4127) inside protobuf
4 years ago