aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge remote-tracking branch 'remotes/google/3.3.x' into merge-3.3-to-masterAdam Cozzette2017-04-27175-4873/+11187
|\|
| * Add prefix to enum value with reserved name. (#3020)v3.3.0Paul Yang2017-04-261-4/+4
| |
| * Allow proto files to import descriptor.proto (#2995)Paul Yang2017-04-201-0/+26
| | | | | | | | | | | | | | | | | | descriptor.proto uses proto2 syntax, which is not ready for external usage. However, some proto3 files import descriptor.proto and cannot be used. In this PR, all references (We cheated by only removing extensions, which is enough for now. User should avoid using messages defined in descriptor.proto as field type.) to content in descriptor.proto are removed from generated files. Those that import descriptor.proto can be used like other proto files.
| * Prepend "PB" to generated classes whose name are reserved words. (#2990)Paul Yang2017-04-201-8/+27
| |
| * Enum defined without package have incorrect class name. (#2988)Paul Yang2017-04-191-47/+35
| | | | | | | | Fix the bug by sharing the code for generating class name for both message and enum.
| * Cherry-pick cl/152450543Feng Xiao2017-04-118-2/+472
| |
| * Cherry-pick cl/151775298Feng Xiao2017-04-112-2/+56
| |
| * Merge pull request #2955 from xfxyjwf/3.3.xFeng Xiao2017-04-111-0/+1
| |\ | | | | | | Add include for INT_MAX
| | * Add include for INT_MAXFeng Xiao2017-04-081-0/+1
| | |
| * | cherrypick descriptor_pool.FindFileContainingSymbol by extensions (#2962)Jie Luo2017-04-101-2/+4
| |/ | | | | | | | | | | * Use PyUnicode_AsEncodedString() instead of PyUnicode_AsEncodedObject() * Cherrypick the fix descriptor_pool.FindFileContainingSymbol by extensions.
| * Cleanup reflection objects for map entry.Feng Xiao2017-04-062-0/+10
| |
| * Update generated code.Feng Xiao2017-04-0513-26/+26
| |
| * Update version number and changelog for 3.3.0Feng Xiao2017-04-052-8/+8
| |
| * Fix C++ distcheck.Feng Xiao2017-03-301-0/+2
| |
| * Fix MSVC DLL build.Feng Xiao2017-03-306-8/+10
| |
| * Down-integrate from google3.Feng Xiao2017-03-29169-4793/+10531
| |
* | Fully qualify min as std::min in wire_format_lite.ccAdam Cozzette2017-04-271-1/+1
| |
* | Merge pull request #3018 from acozzette/using-namespace-stdAdam Cozzette2017-04-2615-98/+108
|\ \ | | | | | | Remove "using namespace std" from stubs/common.h
| * | Remove "using namespace std" from stubs/common.hAdam Cozzette2017-04-2615-98/+108
| | | | | | | | | | | | | | | | | | | | | | | | This prevents the contents of the std namespace from being effectively pulled into the top-level namespace in all translation units that include common.h. I left in individual using statements for a few common things like std::set and std::map, because it did not seem worth going through the churn of updating the whole codebase to fix those right now.
* | | Remove unused constants.Jakob Buchgraber2017-04-251-2/+0
|/ / | | | | | | | | When compiling with -Werror, -Wunused-const-variable the build fails due to those two constants not being used.
* | Simplify the Element dtor invocation when freeing elements inMichael Allen2017-04-171-1/+1
| | | | | | | | | | InternalDeallocate to avoid confusing the compiler when there's a class named Element already defined in the global namespace.
* | Allow unknown values for Map put*Value methods just like every other enum ↵Anuraag Agrawal2017-04-072-6/+0
|/ | | | mutation method.
* Removes ignored const from return type (#2915)Juan David Dominguez2017-03-291-1/+1
| | | See https://github.com/google/protobuf/issues/2425
* Fix gcc warning when using map (#2213)drivehappy2017-03-281-1/+3
| | | | | | * Issue #2211: Addressing GCC warning on enumeral/non-enumeral in conditional expression. * Updated per 80 character wrap.
* Added a workaround to allow building for NaClAdam Cozzette2017-03-281-1/+8
| | | | | | | 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/gopackageJoshua Haberman2017-03-272-4/+5
|\ | | | | Changed go_package for plugin.proto.
| * Properly regenerated descriptor.proto.Josh Haberman2017-03-161-3/+4
| |
| * Changed go_package for plugin.proto.Josh Haberman2017-03-151-1/+1
| | | | | | | | For more info see: https://github.com/google/protobuf/issues/1289
* | Merge pull request #2861 from byronyi/#710Adam Cozzette2017-03-204-0/+205
|\ \ | | | | | | migrate delimited messages functions to util package
| * | Update delimited_message_util_test.ccBairen Yi2017-03-181-1/+1
| | |
| * | fix several issuesByron Yi2017-03-173-15/+15
| | |
| * | add LIBPROTOBUF_EXPORT to make msvc happyByron Yi2017-03-161-6/+6
| | |
| * | migrate delimited messages functions to util packageByron Yi2017-03-164-0/+205
| |/
* | Merge pull request #2860 from prehistoric-penguin/masterFeng Xiao2017-03-202-60/+0
|\ \ | | | | | | Remove duplicated copyright statement
| * | Remove duplicated copyright statementprehistoric-penguin2017-03-162-60/+0
| |/
* | Merge pull request #2854 from hesmar/attributesFixAdam Cozzette2017-03-203-31/+31
|\ \ | | | | | | fix attributes warning
| * | fix attributes warningMarkus Heß2017-03-153-31/+31
| | |
* | | Merge pull request #2867 from mojoBrendan/masterFeng Xiao2017-03-177-9/+86
|\ \ \ | | | | | | | | Add preserve_proto_field_names option to JsonPrintOptions
| * | | Add option to preserve original proto field namesBrendan McCarthy2017-03-179-28/+87
| | | |
| * | | Add use_snake_case_for_field_names option to JsonPrintOptionsBrendan McCarthy2017-03-174-3/+21
| | |/ | |/|
* | | Merge pull request #2837 from anandolee/masterJie Luo2017-03-172-2/+19
|\ \ \ | | | | | | | | DefaultValueObjectWriter should populate oneof message field
| * | | DefaultValueObjectWriter should populate oneof message fieldJie Luo2017-03-102-2/+19
| | | |
* | | | Add file option php_class_prefix (#2849)Paul Yang2017-03-174-148/+358
| | | | | | | | | | | | | | | | This option will be prepended to generated classes of all messages in the containing file.
* | | | Merge pull request #2848 from xfxyjwf/freebsdFeng Xiao2017-03-174-0/+63
|\ \ \ \ | |_|/ / |/| | | Fix freebsd build.
| * | | Fix freebsd build.Feng Xiao2017-03-144-0/+63
| | |/ | |/| | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2023 from odeke-em/fix-print-help-to-stdoutJoshua Haberman2017-03-152-8/+18
|\ \ \ | | | | | | | | compiler/cli: PrintHelpText prints to stdout instead of stderr
| * | | compiler/cli: PrintHelpText prints to stdout instead of stderrEmmanuel Odeke2017-03-082-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ```
* | | | Merge pull request #2829 from afrantzis/hide-unnecessary-library-symbolsAdam Cozzette2017-03-154-0/+42
|\ \ \ \ | | | | | | | | | | Hide unnecessary exported library symbols
| * | | | Hide unnecessary exported library symbolsAlexandros Frantzis2017-03-134-0/+42
| | | | |
* | | | | Merge pull request #2846 from acozzette/bytestream-commentAdam Cozzette2017-03-151-1/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | Updated an outdated comment in bytestream.h