Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
2273ee40
Commit
2273ee40
authored
Dec 05, 2012
by
liujisi@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add java options to plugin proto and rollback the r450
parent
0c995c93
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
53 deletions
+8
-53
cpp_message.cc
src/google/protobuf/compiler/cpp/cpp_message.cc
+2
-4
cpp_string_field.cc
src/google/protobuf/compiler/cpp/cpp_string_field.cc
+1
-2
plugin.pb.cc
src/google/protobuf/compiler/plugin.pb.cc
+3
-7
plugin.proto
src/google/protobuf/compiler/plugin.proto
+2
-0
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+0
-40
No files found.
src/google/protobuf/compiler/cpp/cpp_message.cc
View file @
2273ee40
...
@@ -857,14 +857,12 @@ GenerateDefaultInstanceInitializer(io::Printer* printer) {
...
@@ -857,14 +857,12 @@ GenerateDefaultInstanceInitializer(io::Printer* printer) {
void
MessageGenerator
::
void
MessageGenerator
::
GenerateShutdownCode
(
io
::
Printer
*
printer
)
{
GenerateShutdownCode
(
io
::
Printer
*
printer
)
{
printer
->
Print
(
printer
->
Print
(
"delete $classname$::default_instance_;
\n
"
"delete $classname$::default_instance_;
\n
"
,
"$classname$::default_instance_ = NULL;
\n
"
,
"classname"
,
classname_
);
"classname"
,
classname_
);
if
(
HasDescriptorMethods
(
descriptor_
->
file
()))
{
if
(
HasDescriptorMethods
(
descriptor_
->
file
()))
{
printer
->
Print
(
printer
->
Print
(
"delete $classname$_reflection_;
\n
"
"delete $classname$_reflection_;
\n
"
,
"$classname$_reflection_ = NULL;
\n
"
,
"classname"
,
classname_
);
"classname"
,
classname_
);
}
}
...
...
src/google/protobuf/compiler/cpp/cpp_string_field.cc
View file @
2273ee40
...
@@ -251,8 +251,7 @@ void StringFieldGenerator::
...
@@ -251,8 +251,7 @@ void StringFieldGenerator::
GenerateShutdownCode
(
io
::
Printer
*
printer
)
const
{
GenerateShutdownCode
(
io
::
Printer
*
printer
)
const
{
if
(
!
descriptor_
->
default_value_string
().
empty
())
{
if
(
!
descriptor_
->
default_value_string
().
empty
())
{
printer
->
Print
(
variables_
,
printer
->
Print
(
variables_
,
"delete $classname$::$default_variable$;
\n
"
"delete $classname$::$default_variable$;
\n
"
);
"$classname$::$default_variable$ = NULL;
\n
"
);
}
}
}
}
...
...
src/google/protobuf/compiler/plugin.pb.cc
View file @
2273ee40
...
@@ -115,17 +115,11 @@ void protobuf_RegisterTypes(const ::std::string&) {
...
@@ -115,17 +115,11 @@ void protobuf_RegisterTypes(const ::std::string&) {
void
protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto
()
{
void
protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto
()
{
delete
CodeGeneratorRequest
::
default_instance_
;
delete
CodeGeneratorRequest
::
default_instance_
;
CodeGeneratorRequest
::
default_instance_
=
NULL
;
delete
CodeGeneratorRequest_reflection_
;
delete
CodeGeneratorRequest_reflection_
;
CodeGeneratorRequest_reflection_
=
NULL
;
delete
CodeGeneratorResponse
::
default_instance_
;
delete
CodeGeneratorResponse
::
default_instance_
;
CodeGeneratorResponse
::
default_instance_
=
NULL
;
delete
CodeGeneratorResponse_reflection_
;
delete
CodeGeneratorResponse_reflection_
;
CodeGeneratorResponse_reflection_
=
NULL
;
delete
CodeGeneratorResponse_File
::
default_instance_
;
delete
CodeGeneratorResponse_File
::
default_instance_
;
CodeGeneratorResponse_File
::
default_instance_
=
NULL
;
delete
CodeGeneratorResponse_File_reflection_
;
delete
CodeGeneratorResponse_File_reflection_
;
CodeGeneratorResponse_File_reflection_
=
NULL
;
}
}
void
protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto
()
{
void
protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto
()
{
...
@@ -145,7 +139,9 @@ void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
...
@@ -145,7 +139,9 @@ void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
"atorResponse
\022\r\n\005
error
\030\001
\001
(
\t\022
B
\n\004
file
\030\017
\003
("
"atorResponse
\022\r\n\005
error
\030\001
\001
(
\t\022
B
\n\004
file
\030\017
\003
("
"
\013
24.google.protobuf.compiler.CodeGenerat"
"
\013
24.google.protobuf.compiler.CodeGenerat"
"orResponse.File
\032
>
\n\004
File
\022\014\n\004
name
\030\001
\001
(
\t\022\027\n
"
"orResponse.File
\032
>
\n\004
File
\022\014\n\004
name
\030\001
\001
(
\t\022\027\n
"
"
\017
insertion_point
\030\002
\001
(
\t\022\017\n\007
content
\030\017
\001
(
\t
"
,
399
);
"
\017
insertion_point
\030\002
\001
(
\t\022\017\n\007
content
\030\017
\001
(
\t
B"
",
\n\034
com.google.protobuf.compilerB
\014
PluginP"
"rotos"
,
445
);
::
google
::
protobuf
::
MessageFactory
::
InternalRegisterGeneratedFile
(
::
google
::
protobuf
::
MessageFactory
::
InternalRegisterGeneratedFile
(
"google/protobuf/compiler/plugin.proto"
,
&
protobuf_RegisterTypes
);
"google/protobuf/compiler/plugin.proto"
,
&
protobuf_RegisterTypes
);
CodeGeneratorRequest
::
default_instance_
=
new
CodeGeneratorRequest
();
CodeGeneratorRequest
::
default_instance_
=
new
CodeGeneratorRequest
();
...
...
src/google/protobuf/compiler/plugin.proto
View file @
2273ee40
...
@@ -45,6 +45,8 @@
...
@@ -45,6 +45,8 @@
// flag "--${NAME}_out" is passed to protoc.
// flag "--${NAME}_out" is passed to protoc.
package
google
.
protobuf.compiler
;
package
google
.
protobuf.compiler
;
option
java_package
=
"com.google.protobuf.compiler"
;
option
java_outer_classname
=
"PluginProtos"
;
import
"google/protobuf/descriptor.proto"
;
import
"google/protobuf/descriptor.proto"
;
...
...
src/google/protobuf/descriptor.pb.cc
View file @
2273ee40
...
@@ -518,85 +518,45 @@ void protobuf_RegisterTypes(const ::std::string&) {
...
@@ -518,85 +518,45 @@ void protobuf_RegisterTypes(const ::std::string&) {
void
protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto
()
{
void
protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto
()
{
delete
FileDescriptorSet
::
default_instance_
;
delete
FileDescriptorSet
::
default_instance_
;
FileDescriptorSet
::
default_instance_
=
NULL
;
delete
FileDescriptorSet_reflection_
;
delete
FileDescriptorSet_reflection_
;
FileDescriptorSet_reflection_
=
NULL
;
delete
FileDescriptorProto
::
default_instance_
;
delete
FileDescriptorProto
::
default_instance_
;
FileDescriptorProto
::
default_instance_
=
NULL
;
delete
FileDescriptorProto_reflection_
;
delete
FileDescriptorProto_reflection_
;
FileDescriptorProto_reflection_
=
NULL
;
delete
DescriptorProto
::
default_instance_
;
delete
DescriptorProto
::
default_instance_
;
DescriptorProto
::
default_instance_
=
NULL
;
delete
DescriptorProto_reflection_
;
delete
DescriptorProto_reflection_
;
DescriptorProto_reflection_
=
NULL
;
delete
DescriptorProto_ExtensionRange
::
default_instance_
;
delete
DescriptorProto_ExtensionRange
::
default_instance_
;
DescriptorProto_ExtensionRange
::
default_instance_
=
NULL
;
delete
DescriptorProto_ExtensionRange_reflection_
;
delete
DescriptorProto_ExtensionRange_reflection_
;
DescriptorProto_ExtensionRange_reflection_
=
NULL
;
delete
FieldDescriptorProto
::
default_instance_
;
delete
FieldDescriptorProto
::
default_instance_
;
FieldDescriptorProto
::
default_instance_
=
NULL
;
delete
FieldDescriptorProto_reflection_
;
delete
FieldDescriptorProto_reflection_
;
FieldDescriptorProto_reflection_
=
NULL
;
delete
EnumDescriptorProto
::
default_instance_
;
delete
EnumDescriptorProto
::
default_instance_
;
EnumDescriptorProto
::
default_instance_
=
NULL
;
delete
EnumDescriptorProto_reflection_
;
delete
EnumDescriptorProto_reflection_
;
EnumDescriptorProto_reflection_
=
NULL
;
delete
EnumValueDescriptorProto
::
default_instance_
;
delete
EnumValueDescriptorProto
::
default_instance_
;
EnumValueDescriptorProto
::
default_instance_
=
NULL
;
delete
EnumValueDescriptorProto_reflection_
;
delete
EnumValueDescriptorProto_reflection_
;
EnumValueDescriptorProto_reflection_
=
NULL
;
delete
ServiceDescriptorProto
::
default_instance_
;
delete
ServiceDescriptorProto
::
default_instance_
;
ServiceDescriptorProto
::
default_instance_
=
NULL
;
delete
ServiceDescriptorProto_reflection_
;
delete
ServiceDescriptorProto_reflection_
;
ServiceDescriptorProto_reflection_
=
NULL
;
delete
MethodDescriptorProto
::
default_instance_
;
delete
MethodDescriptorProto
::
default_instance_
;
MethodDescriptorProto
::
default_instance_
=
NULL
;
delete
MethodDescriptorProto_reflection_
;
delete
MethodDescriptorProto_reflection_
;
MethodDescriptorProto_reflection_
=
NULL
;
delete
FileOptions
::
default_instance_
;
delete
FileOptions
::
default_instance_
;
FileOptions
::
default_instance_
=
NULL
;
delete
FileOptions_reflection_
;
delete
FileOptions_reflection_
;
FileOptions_reflection_
=
NULL
;
delete
MessageOptions
::
default_instance_
;
delete
MessageOptions
::
default_instance_
;
MessageOptions
::
default_instance_
=
NULL
;
delete
MessageOptions_reflection_
;
delete
MessageOptions_reflection_
;
MessageOptions_reflection_
=
NULL
;
delete
FieldOptions
::
default_instance_
;
delete
FieldOptions
::
default_instance_
;
FieldOptions
::
default_instance_
=
NULL
;
delete
FieldOptions_reflection_
;
delete
FieldOptions_reflection_
;
FieldOptions_reflection_
=
NULL
;
delete
EnumOptions
::
default_instance_
;
delete
EnumOptions
::
default_instance_
;
EnumOptions
::
default_instance_
=
NULL
;
delete
EnumOptions_reflection_
;
delete
EnumOptions_reflection_
;
EnumOptions_reflection_
=
NULL
;
delete
EnumValueOptions
::
default_instance_
;
delete
EnumValueOptions
::
default_instance_
;
EnumValueOptions
::
default_instance_
=
NULL
;
delete
EnumValueOptions_reflection_
;
delete
EnumValueOptions_reflection_
;
EnumValueOptions_reflection_
=
NULL
;
delete
ServiceOptions
::
default_instance_
;
delete
ServiceOptions
::
default_instance_
;
ServiceOptions
::
default_instance_
=
NULL
;
delete
ServiceOptions_reflection_
;
delete
ServiceOptions_reflection_
;
ServiceOptions_reflection_
=
NULL
;
delete
MethodOptions
::
default_instance_
;
delete
MethodOptions
::
default_instance_
;
MethodOptions
::
default_instance_
=
NULL
;
delete
MethodOptions_reflection_
;
delete
MethodOptions_reflection_
;
MethodOptions_reflection_
=
NULL
;
delete
UninterpretedOption
::
default_instance_
;
delete
UninterpretedOption
::
default_instance_
;
UninterpretedOption
::
default_instance_
=
NULL
;
delete
UninterpretedOption_reflection_
;
delete
UninterpretedOption_reflection_
;
UninterpretedOption_reflection_
=
NULL
;
delete
UninterpretedOption_NamePart
::
default_instance_
;
delete
UninterpretedOption_NamePart
::
default_instance_
;
UninterpretedOption_NamePart
::
default_instance_
=
NULL
;
delete
UninterpretedOption_NamePart_reflection_
;
delete
UninterpretedOption_NamePart_reflection_
;
UninterpretedOption_NamePart_reflection_
=
NULL
;
delete
SourceCodeInfo
::
default_instance_
;
delete
SourceCodeInfo
::
default_instance_
;
SourceCodeInfo
::
default_instance_
=
NULL
;
delete
SourceCodeInfo_reflection_
;
delete
SourceCodeInfo_reflection_
;
SourceCodeInfo_reflection_
=
NULL
;
delete
SourceCodeInfo_Location
::
default_instance_
;
delete
SourceCodeInfo_Location
::
default_instance_
;
SourceCodeInfo_Location
::
default_instance_
=
NULL
;
delete
SourceCodeInfo_Location_reflection_
;
delete
SourceCodeInfo_Location_reflection_
;
SourceCodeInfo_Location_reflection_
=
NULL
;
}
}
void
protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto
()
{
void
protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment