Joshua Haberman
0ce9b81815
Fixed bugs in array accessors.
6 years ago
Joshua Haberman
c3011c1548
Fixed bug: make proto2 setters set hasbit.
6 years ago
Joshua Haberman
618981a60f
Added mutable_ accessor for submessages.
6 years ago
Joshua Haberman
bc916f1d0f
Added "add" accessors for repeated fields.
6 years ago
Joshua Haberman
08987e3dd4
Merge branch 'master' into arrayapi
6 years ago
Joshua Haberman
87b59f445b
Merge pull request #146 from haberman/amalgamate
...
Fixed amalgamation to not list header files explicitly.
6 years ago
Joshua Haberman
51a646ec11
Make Bazel print output for failed tests.
6 years ago
Joshua Haberman
b4dec6b897
Fixed amalgamation to not list header files explicitly.
6 years ago
Joshua Haberman
161258a2ad
Merge pull request #142 from TeBoring/json-any-encoding
...
Add support for encoding Any in json
6 years ago
Bo Yang
18563bee4c
Fix comments
6 years ago
Bo Yang
99600b4a0e
Fix generated file test
6 years ago
Joshua Haberman
aa2d5a609b
Fixed generated code for C++.
6 years ago
Joshua Haberman
10e682cf2a
Added hazzers.
6 years ago
Joshua Haberman
6bcdaa1352
Changed generated array accessors to be more convenient.
6 years ago
Joshua Haberman
2c0e0054a8
Merge pull request #144 from haberman/rmupbc
...
Deleted old Lua-based C API compiler.
6 years ago
Josh Haberman
32ef122e38
Deleted old Lua-based C API compiler.
...
This compiler has been ported to C++, so the Lua
compiler is no longer needed.
6 years ago
Joshua Haberman
aad4f403a6
Merge pull request #143 from haberman/rmtravis
...
Removed Travis config and Makefile, in favor of Kokoro and Bazel/CMake.
6 years ago
Josh Haberman
43ab429c09
Use the latest Bazel version.
6 years ago
Josh Haberman
12195ff19f
Removed Travis config and Makefile, in favor of Kokoro and Bazel/CMake.
6 years ago
Bo Yang
375a25423e
Mark unused parameter
6 years ago
Bo Yang
915806ea8d
Remove unused code
6 years ago
Bo Yang
b39dbb9d40
Add support for encoding Any in json
6 years ago
Joshua Haberman
73ccf4a7c7
Merge pull request #140 from haberman/cmake-mac-fixes
...
Bazel and CMake fixes for macOS
6 years ago
Joshua Haberman
66f90464a8
Fix for sed that also works on Linux.
6 years ago
Joshua Haberman
0c824b6b6c
Merge branch 'master' into cmake-mac-fixes
6 years ago
Paul Yang
13c59cb051
Implement json decoding for Any message. ( #130 )
...
* Implement json decoding for Any message.
type url may not appear as the first value in json. As a result,
other data cannot be resolved before resolving type url. To solve that,
this change caches the start and end position of unparsed values and
resolve them in end_any_object when type url has been resolved.
* Handle Any in switch
* Update json parser size
* Fix comments
* Sync upstream
* Add dependency on upb_pb for upb_json
* Debug failed test
* Fix cmake
* Update test generated files
* Remove debug tests
6 years ago
Joshua Haberman
35fa3df8ec
Fixes for macOS build. Also run tests in CMake test.
6 years ago
Paul Yang
9e44a757ed
Fix Bazel Kokoro build ( #136 )
6 years ago
Joshua Haberman
fb6f7e9689
Merge pull request #137 from vishalpowar/add_visibility
...
Add visibility
6 years ago
Vishal Powar
7031f77666
Add visibility for use in other projects.
6 years ago
Vishal Powar
7c005e7807
Merge branch 'master' of github.com:google/upb
6 years ago
Joshua Haberman
22be932863
Merge pull request #135 from vishalpowar/cast_correct
...
Explicit cast when creating a new struct
6 years ago
Vishal Powar
f6c33307c4
Fix tests for generated code
6 years ago
Vishal Powar
e2ad6bd146
Fix tests for generated code
6 years ago
Vishal Powar
0811b6fead
Explicit cast when creating a new struct
6 years ago
Joshua Haberman
cb113bc8cc
Merge pull request #134 from haberman/upbc-cpp
...
Added upb compiler written in C++ as a normal protoc plugin.
6 years ago
Josh Haberman
9ce4a77f61
Updates to build system for upb C++ compiler.
6 years ago
Josh Haberman
5f575995b5
Added upb compiler written in C++ as a normal protoc plugin.
6 years ago
Joshua Haberman
d4e78f9fdf
Merge pull request #132 from haberman/bazel
...
Added Bazel build, and auto-generate CMake build from it.
6 years ago
Josh Haberman
23fa64f10c
Added script to generate CMake build. Bazel tests it.
6 years ago
Josh Haberman
966d9d89e6
Added Kokoro config files.
6 years ago
Josh Haberman
9abff2b95f
Added missing files from Bazel build.
6 years ago
Josh Haberman
a7ebe54eb1
Conformance tests work under Bazel.
6 years ago
Josh Haberman
2655ed9cf5
Bazel builds everything except conformance_upb.
6 years ago
Josh Haberman
01ed4ce3d4
WIP.
6 years ago
Josh Haberman
9bb0814c48
Added missing "upbc" file.
6 years ago
Josh Haberman
2d44ad4bad
Some fixes to the CMake build.
6 years ago
Paul Yang
3c742bfdc8
Fix json ignore unknown ( #128 )
...
* Fix json ignore unknown
Previously, there were several problems with ignoring unknown in json.
1) After finding a field is unknown, the parser's state is not changed. Thus, there is no way to distinguish whether the parser is dealing with an unknown field or it's just a top level message.
2) Several method didn't respect unknown field, e.g., start_object, end_bool, start_array.
* Update json parser size
* Update json parser size
6 years ago
Paul Yang
b258ae3235
Fix mac use local timezone for strptime by default. ( #127 )
...
* Fix mac use local timezone for strptime by default.
* Fix comments
* Check len == UPB_TIMESTAMP_BASE_SIZE
* Fix comment
6 years ago
Paul Yang
706ffdbc65
Fix json encoding for wrappers, ListValue, Struct and Value. ( #126 )
...
* Fix json encoding for wrappers, ListValue, Struct and Value.
* Add well_known_type field in upb_msgdef to specify type of well known messages.
* Remove comma at end of enum definition.
* Group number wrappers
* Fix comments
* Refactoring to use is_wellknown_{msg/field}
6 years ago