Commit Graph

6559 Commits

Author SHA1 Message Date
Hao Nguyen
a1c8868344 Down integrate to GitHub 2019-05-13 10:52:29 -07:00
Hao Nguyen
ec1a70913e
Merge pull request #6106 from haon4/php_fix
Update php/release.sh to be executable and create a new branch
2019-05-06 13:55:16 -07:00
Hao Nguyen
a56b529832 Update php/release.sh to be executable and create a new branch for the new version 2019-05-06 12:58:01 -07:00
Hao Nguyen
b06fd483ae
Merge pull request #6097 from haon4/201905031433
Down integrate to GitHub
2019-05-03 17:03:32 -07:00
Hao Nguyen
4cebf97a52 Update BUILD file to match the changes in cmake files for lite 2019-05-03 15:08:01 -07:00
Hao Nguyen
1d4e959374 Down integrate to GitHub 2019-05-03 14:33:43 -07:00
Sydney Acksman
9e89b6e70a C# Proto2 feature : Extensions (#5350)
* Compiler changes (extensions)

* Generated changes (extensions)

* Library changes (extensions)

* Adjusted a summary to indicate ContainingType can be null for extensions

* Compiler changes (custom option review + access level review)

* Generated code changes (custom options + access review)

* Library changes (custom options + access review)

* Support C# 6 with library changes

* Access HasValue by property

* Set access level of all extension classes to internal (revert in next PR)

* Added null checks to custom options

* Rebase on master and regenerate Conformance

* Removed second dictionary from ExtensionSet

* Rebased compiler changes

* Rebased generated code changes

* Rebased library changes + review changes

* Add more safety checks to extension accessors

* Remove instances where extension sets were unnecessarily allocated

* Remove cleared items from sets
Empty sets are now made null
IExtensionMessage -> IExtendableMessage

* Remove dead code from IExtensionValue impls

* Clean both repeated and single value extensions

* Add GetOrRegister method for repeated fields and allow clearing repeated extensions

* Add type safe ClearExtension methods, remove non-generic IExtendableMessage interface.

* Simplify ExtensionSet.TryMergeFieldFrom

* Rebase on master to resolve conflicts

* Fix Makefile.am

* Add ObjectIntPair to Makefile.am
2019-05-03 13:54:41 -07:00
Denis Smirnov
3ee24bca49 should close protocolbuffers#6095 2019-05-03 13:21:09 -07:00
Parnic
fbe4ccccc5 Added missing include to satisfy certain versions of clang
Some compilers, such as PS4's clang, were giving errors such as:
C:\dev\protobuf\src\google/protobuf/parse_context.h(227,5): error : no type named 'uintptr_t' in namespace 'std'; did you mean simply 'uintptr_t'?
Adding the necessary include for integer types fixes these.
2019-05-02 17:18:22 -07:00
Maik Riechert
15cf5378b3 make use of RDTSC optional as it may not be available
One example is when using seccomp with PR_SET_TSC set to PR_TSC_SIGSEGV.
2019-05-02 10:52:38 -07:00
Hao Nguyen
c3721151ed
Merge pull request #6088 from haon4/201904301530
Down integrate to GitHub
2019-05-01 14:31:56 -07:00
Hao Nguyen
9276cb502e Fix gulpfile to use gulp 4 API 2019-05-01 13:22:07 -07:00
Hao Nguyen
983fd4e2ac Upgrade gulp version 2019-05-01 12:42:52 -07:00
Yilun Chong
f87aaff558
Merge pull request #6085 from haon4/update_version_fix
Change update_version to update the generated codes too
2019-05-01 11:36:00 -07:00
Hao Nguyen
76b4b4b331 Down integrate to GitHub 2019-04-30 15:30:49 -07:00
Hao Nguyen
5d4e58c4c2 Change update_version to update the generated codes too 2019-04-29 16:52:33 -07:00
Yilun Chong
859d2da51b
Merge pull request #6077 from haon4/fixlitepom
Remove unused files from lite's pom.xml
2019-04-26 17:42:23 -07:00
Hao Nguyen
598a6da287 Remove unused files from lite's pom.xml 2019-04-26 16:12:22 -07:00
Hao Nguyen
7f07bcdcfc
Merge pull request #6072 from haon4/revert_strcat
Partially Revert "Replaced all instances of Simple{IDF}toa with StrCat."
2019-04-25 14:41:36 -07:00
Hao Nguyen
ded3c23ead Only replace SimpleItoa with StrCat 2019-04-25 13:21:39 -07:00
Hao Nguyen
bbd6dc6d4e Revert "Replaced all instances of Simple{IDF}toa with StrCat."
This reverts commit 029f2c7cda.
2019-04-25 13:15:38 -07:00
Hao Nguyen
6b4b9869ec
Add a new conformance test for top level JSON null (#5966)
* Add a new conformance test for top level JSON null
2019-04-24 15:29:17 -07:00
Hao Nguyen
64a483aad1
Merge pull request #6044 from haberman/strcat
Replaced all instances of Simple{IDF}toa with StrCat.
2019-04-24 15:27:06 -07:00
Yilun Chong
cd63cc4914
Merge pull request #6069 from haon4/update_version
Update the version for JavaLite in update_version script
2019-04-24 14:37:58 -07:00
Hao Nguyen
13e188fb31 Update the version for JavaLite in update_version script 2019-04-23 17:06:40 -07:00
Hao Nguyen
d6bcf07a8f
Merge pull request #6064 from haon4/201904221711
Down integrate to GitHub
2019-04-23 09:54:53 -07:00
Hao Nguyen
711e4b4d6c Down integrate to GitHub 2019-04-22 17:12:12 -07:00
Hao Nguyen
60b66a119d
Merge pull request #6051 from haon4/201904171256
Down Integration to GitHub
2019-04-17 18:14:45 -07:00
Hao Nguyen
da4e028c72 Remove passing test from failure_list_ruby again. 2019-04-17 14:43:36 -07:00
Hao Nguyen
9e3f053fcc Down integrate to GitHub 2019-04-17 12:57:37 -07:00
Josh Haberman
029f2c7cda Replaced all instances of Simple{IDF}toa with StrCat.
This makes for easier rewrites between internal and external.
2019-04-16 15:54:41 -07:00
Keith Smiley
1c5e8cbb8f Remove -Wall from default build options
All bazel crosstools automatically pass -Wall to compiles. The order of
operations is:

- bazel crosstool flags
- `--host_copt` flags and other variations like `--host_cxxopt`
- the `copts` defined on the rule

Because of this when protobuf produces warnings, there's no way to
disable them from the consumer side if they are re-enabled later by
another `-Wall` flag.
2019-04-16 09:49:59 -07:00
Keith Smiley
1958925c76 Add -Werror for CI builds 2019-04-16 09:49:23 -07:00
Keith Smiley
46f2401614 Use GetArena instead 2019-04-15 16:07:27 -07:00
Keith Smiley
c40ab0fffa Fix more warnings
These were found attempting to enable -Werror
2019-04-15 16:07:27 -07:00
Keith Moyer
c1f650a387 Satisfy GCC class-memaccess warnings
GCC 8 added a -Wclass-memaccess that is enabled in -Wall that warns when
making direct memory modifications to non-trivial objects. The objects
that are modified here are only "non-trivial" in non-interesting ways
(e.g., removal of copy constructor) and can be safely modified as is
being done.

This simply explicitly casts the pointers before calling memset to
indicate that they should be treated as raw memory.
2019-04-15 13:45:23 -07:00
Nic McDonald
f313b9ccf7 comply with Bazel recommendations 2019-04-15 13:43:05 -07:00
Hao Nguyen
8e5ea65953
Merge pull request #6033 from haon4/201904121310
Down integrate to GitHub
2019-04-12 15:19:36 -07:00
Hao Nguyen
2c18ec841a Remove Required.Proto3.JsonInput.EmptyFieldMask.JsonOutput from failure list since it is now passing for Ruby 2019-04-12 14:12:08 -07:00
Hao Nguyen
42bab121fd
Merge pull request #6032 from haon4/objectivec
Replace SimpleItoa with StrCat in ObjectiveC compiler codes
2019-04-12 13:28:43 -07:00
Hao Nguyen
1467e08d7c Down integrate to Github 2019-04-12 13:10:30 -07:00
Hao Nguyen
1a23e2ab2d Replace SimpleItoa with StrCat 2019-04-12 11:50:15 -07:00
senhalil
97e7ddc015 Small patch to handle -Wfloat-equal warnings
https://groups.google.com/d/msg/protobuf/H8_D1hfg3p4/A2oPHdfUAgAJ
2019-04-11 15:54:23 -07:00
Justin Buchanan
27228494c3 emit annotations for oneof field accessors in c++ 2019-04-11 15:53:09 -07:00
Keith Smiley
da5e11b605 Remove unused constants
When compiling protobuf these produce warnings
2019-04-11 15:41:54 -07:00
Keith Smiley
7db639f924 Make cold_threshold_ look used to fix warning
This field isn't used yet, but it will be in the future so we don't want
to remove it. This fixes the warning in the meantime.
2019-04-11 15:41:26 -07:00
Hao Nguyen
105a0666d3
Merge pull request #6016 from haon4/201904101300
Down integration to GitHub
2019-04-10 15:07:04 -07:00
Hao Nguyen
466615a8e2 Remove Required.Proto3.JsonInput.EmptyFieldMask.JsonOutput from ruby_mac too 2019-04-10 13:52:28 -07:00
Hao Nguyen
3d69bad4b2 Update generated proto and remove a test from failure_list 2019-04-10 13:33:56 -07:00
Hao Nguyen
51b0225599 Down integrate to Github 2019-04-10 13:00:25 -07:00