aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* Down-integrate from google3.Gravatar Feng Xiao2017-03-29
|
* Removes ignored const from return type (#2915)Gravatar Juan David Dominguez2017-03-29
| | | See https://github.com/google/protobuf/issues/2425
* Fix gcc warning when using map (#2213)Gravatar drivehappy2017-03-28
| | | | | | * Issue #2211: Addressing GCC warning on enumeral/non-enumeral in conditional expression. * Updated per 80 character wrap.
* Added a workaround to allow building for NaClGravatar Adam Cozzette2017-03-28
| | | | | | | arm-nacl-clang seems to produce a mysterious compiler error when it encounters __builtin_clzll, so when we are building for NaCl, let's avoid that in favor of the portable implementation of Log2FloorNonZero64.
* Merge pull request #2858 from haberman/gopackageGravatar Joshua Haberman2017-03-27
|\ | | | | Changed go_package for plugin.proto.
* \ Merge pull request #2861 from byronyi/#710Gravatar Adam Cozzette2017-03-20
|\ \ | | | | | | migrate delimited messages functions to util package
* \ \ Merge pull request #2860 from prehistoric-penguin/masterGravatar Feng Xiao2017-03-20
|\ \ \ | | | | | | | | Remove duplicated copyright statement
* \ \ \ Merge pull request #2854 from hesmar/attributesFixGravatar Adam Cozzette2017-03-20
|\ \ \ \ | | | | | | | | | | fix attributes warning
* \ \ \ \ Merge pull request #2867 from mojoBrendan/masterGravatar Feng Xiao2017-03-17
|\ \ \ \ \ | | | | | | | | | | | | Add preserve_proto_field_names option to JsonPrintOptions
* \ \ \ \ \ Merge pull request #2837 from anandolee/masterGravatar Jie Luo2017-03-17
|\ \ \ \ \ \ | | | | | | | | | | | | | | DefaultValueObjectWriter should populate oneof message field
* | | | | | | Add file option php_class_prefix (#2849)Gravatar Paul Yang2017-03-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This option will be prepended to generated classes of all messages in the containing file.
* | | | | | | Merge pull request #2848 from xfxyjwf/freebsdGravatar Feng Xiao2017-03-17
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix freebsd build.
| | | | | | * | Update delimited_message_util_test.ccGravatar Bairen Yi2017-03-18
| | | | | | | |
| | | * | | | | Add option to preserve original proto field namesGravatar Brendan McCarthy2017-03-17
| | | | | | | |
| | | * | | | | Add use_snake_case_for_field_names option to JsonPrintOptionsGravatar Brendan McCarthy2017-03-17
| |_|/ / / / / |/| | | | | |
| | | | | * | fix several issuesGravatar Byron Yi2017-03-17
| | | | | | |
| | | | | | * Properly regenerated descriptor.proto.Gravatar Josh Haberman2017-03-16
| | | | | | |
| | | | | * | add LIBPROTOBUF_EXPORT to make msvc happyGravatar Byron Yi2017-03-16
| | | | | | |
| | | | | * | migrate delimited messages functions to util packageGravatar Byron Yi2017-03-16
| |_|_|_|/ / |/| | | | |
| | | | * | Remove duplicated copyright statementGravatar prehistoric-penguin2017-03-16
| |_|_|/ / |/| | | |
| | | | * Changed go_package for plugin.proto.Gravatar Josh Haberman2017-03-15
| |_|_|/ |/| | | | | | | | | | | For more info see: https://github.com/google/protobuf/issues/1289
* | | | Merge pull request #2023 from odeke-em/fix-print-help-to-stdoutGravatar Joshua Haberman2017-03-15
|\ \ \ \ | | | | | | | | | | compiler/cli: PrintHelpText prints to stdout instead of stderr
* \ \ \ \ Merge pull request #2829 from afrantzis/hide-unnecessary-library-symbolsGravatar Adam Cozzette2017-03-15
|\ \ \ \ \ | | | | | | | | | | | | Hide unnecessary exported library symbols
* \ \ \ \ \ Merge pull request #2846 from acozzette/bytestream-commentGravatar Adam Cozzette2017-03-15
|\ \ \ \ \ \ | | | | | | | | | | | | | | Updated an outdated comment in bytestream.h
| | | | | | * fix attributes warningGravatar Markus Heß2017-03-15
| |_|_|_|_|/ |/| | | | |
| | | | * | Fix freebsd build.Gravatar Feng Xiao2017-03-14
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out system headers included by generated plugin.pb.h file already contains major/minor macro definitions when built on FreeBSD and we need to add #undefs to the generated header file. This change also fixes another compile error regarding EXPECT_DEATH on FreeBSD.
| * | | | Updated an outdated comment in bytestream.hGravatar Adam Cozzette2017-03-14
| | | | |
* | | | | Replace CHECK() with GOOGLE_CHECK().Gravatar Josh Haberman2017-03-13
|/ / / / | | | | | | | | | | | | Fixes: https://github.com/google/protobuf/issues/1175
| * / / Hide unnecessary exported library symbolsGravatar Alexandros Frantzis2017-03-13
|/ / /
| | * DefaultValueObjectWriter should populate oneof message fieldGravatar Jie Luo2017-03-10
| | |
* | | Merge pull request #2822 from anandolee/masterGravatar Jie Luo2017-03-10
|\ \ \ | | |/ | |/| Detect generated code of WKT, addressbook and conformance protos
* | | Merge pull request #2832 from pherl/javaepGravatar Jisi Liu2017-03-10
|\ \ \ | | | | | | | | Fix java code according to error prone.
* \ \ \ Merge pull request #2824 from xfxyjwf/i1415Gravatar Feng Xiao2017-03-10
|\ \ \ \ | | | | | | | | | | Use per-type table to lookup JSON name.
| | * | | Fix java code according to error prone.Gravatar Jisi Liu2017-03-10
| | | | |
* | | | | Repeated/Map field setter should accept a regular PHP array (#2817)Gravatar Paul Yang2017-03-10
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Accept regular PHP array for repeated/map setter. Existing map/repeated field will be swapped by a clean map/repeated field. Then, elements in the array will be added to the map/repeated field. All elements will be type checked before adding. See #2686 for detail.
| | * | Add auto detect for generated code of WKT protos, addressbook.proto and ↵Gravatar Jie Luo2017-03-10
| | | | | | | | | | | | | | | | conformance.proto
| * | | Use per-type table to lookup JSON name.Gravatar Feng Xiao2017-03-09
| |/ / | | | | | | | | | | | | | | | | | | Different fields from different messages can map to the same JSON name and the original global lookup table is only capable of mapping one of such fields. This change converts the global table to per-type tables so fields from different messages won't conflict.
* / / Fix lint warnings in the javalite branch.Gravatar Jisi Liu2017-03-09
|/ /
* | Merge pull request #2810 from xfxyjwf/i1994Gravatar Feng Xiao2017-03-09
|\ \ | | | | | | Avoid redundant type casts for oneof bytes fields.
* \ \ Merge pull request #2775 from xfxyjwf/fixmajorGravatar Feng Xiao2017-03-09
|\ \ \ | | | | | | | | Undef major/minor if they are defined as macro.
* \ \ \ Merge pull request #2814 from pherl/javadeprecateGravatar Jisi Liu2017-03-09
|\ \ \ \ | | | | | | | | | | Add annotations for deprecated messages in Java
| * | | | Add annotations for deprecated messages in JavaGravatar Jisi Liu2017-03-09
| | | | |
| | | * | Avoid redundant type casts for oneof bytes fields.Gravatar Feng Xiao2017-03-08
| |_|/ / |/| | |
| | | * compiler/cli: PrintHelpText prints to stdout instead of stderrGravatar Emmanuel Odeke2017-03-08
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #698. PrintHelpText now prints to standard output instead of to standard error. The purpose of this CL is to make it easy for users to grep for matches otherwise stderr output has to be awkwardly redirectly to stdout using this shell trick `2>&1`, for example ```shell protoc --help 2>&1 | grep cpp ``` of which we shouldn't be making users have to work that hard just to get use of --help. + Exhibits: * Before: ```shell $ protoc --help | grep cpp Usage: protoc [OPTION] PROTO_FILES Parse PROTO_FILES and generate output based on the options given: -IPATH, --proto_path=PATH Specify the directory in which to search for imports. May be specified multiple times; directories will be searched in order. If not given, the current working directory is used. --version Show version info and exit. -h, --help Show this text and exit. --encode=MESSAGE_TYPE Read a text-format message of the given type from standard input and write it in binary to standard output. The message type must be defined in PROTO_FILES or their imports. --decode=MESSAGE_TYPE Read a binary message of the given type from standard input and write it in text format to standard output. The message type must be defined in PROTO_FILES or their imports. --decode_raw Read an arbitrary protocol message from standard input and write the raw tag/value pairs in text format to standard output. No PROTO_FILES should be given when using this flag. -oFILE, Writes a FileDescriptorSet (a protocol buffer, --descriptor_set_out=FILE defined in descriptor.proto) containing all of the input files to FILE. --include_imports When using --descriptor_set_out, also include all dependencies of the input files in the set, so that the set is self-contained. --include_source_info When using --descriptor_set_out, do not strip SourceCodeInfo from the FileDescriptorProto. This results in vastly larger descriptors that include information about the original location of each decl in the source file as well as surrounding comments. --dependency_out=FILE Write a dependency output file in the format expected by make. This writes the transitive set of input file paths to FILE --error_format=FORMAT Set the format in which to print errors. FORMAT may be 'gcc' (the default) or 'msvs' (Microsoft Visual Studio format). --print_free_field_numbers Print the free field numbers of the messages defined in the given proto files. Groups share the same field number space with the parent message. Extension ranges are counted as occupied fields numbers. --plugin=EXECUTABLE Specifies a plugin executable to use. Normally, protoc searches the PATH for plugins, but you may specify additional executables not in the path using this flag. Additionally, EXECUTABLE may be of the form NAME=PATH, in which case the given plugin name is mapped to the given executable even if the executable's own name differs. --cpp_out=OUT_DIR Generate C++ header and source. --csharp_out=OUT_DIR Generate C# source file. --java_out=OUT_DIR Generate Java source file. --javanano_out=OUT_DIR Generate Java Nano source file. --js_out=OUT_DIR Generate JavaScript source. --objc_out=OUT_DIR Generate Objective C header and source. --python_out=OUT_DIR Generate Python source file. --ruby_out=OUT_DIR Generate Ruby source file. ``` * After: ```shell $ protoc --help | grep cpp --plugin=EXECUTABLE Specifies a plugin executable to use. Normally, protoc searches the PATH for plugins, but you may specify additional executables not in the path using this flag. Additionally, EXECUTABLE may be of the form NAME=PATH, in which case the given plugin name is mapped to the given executable even if the executable's own name differs. --cpp_out=OUT_DIR Generate C++ header and source. --csharp_out=OUT_DIR Generate C# source file. --java_out=OUT_DIR Generate Java source file. --javanano_out=OUT_DIR Generate Java Nano source file. --js_out=OUT_DIR Generate JavaScript source. --objc_out=OUT_DIR Generate Objective C header and source. --python_out=OUT_DIR Generate Python source file. --ruby_out=OUT_DIR Generate Ruby source file. ```
* | | Removed a stray return statement, causing compilation error.Gravatar Manjunath Kudlur2017-03-06
| | |
* | | Detect if Descriptor.cs changes for csharpGravatar Jie Luo2017-03-06
|\ \ \ | | | | | | | | Merge pull request #2788 from anandolee/master
| * | | Detect if Descriptor.cs changes for csharpGravatar Jie Luo2017-03-02
| | | |
* | | | Return uint32 from Log2FloorNonZero64Gravatar Adam Cozzette2017-03-02
|/ / / | | | | | | | | | | | | | | | A uint32 is big enough to hold any return value from that function, and doing it this way prevents compiler warnings in coded_stream.h about narrowing a uint64 to a uint32.
* | | Fix gcc 4.1 build (#1035) (#1913)Gravatar Matt Hauck2017-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix gcc 4.1.2 compilation of map_field_inl.h Fixes "error: object missing in reference to '...'" errors from #1035 * Disable 64-bit map keys on gcc <= 4.1 * Add missing case statements
* | | Change hint type to `const void*` (#2568)Gravatar Matt Hauck2017-03-01
| | | | | | | | | This is both more correct, and the build fails on AIX without it