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
7654f780
Commit
7654f780
authored
Dec 10, 2014
by
Krishna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs
parent
a761f061
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
cpp_helpers.cc
src/google/protobuf/compiler/cpp/cpp_helpers.cc
+6
-4
python_generator.cc
src/google/protobuf/compiler/python/python_generator.cc
+1
-1
python_generator.h
src/google/protobuf/compiler/python/python_generator.h
+1
-0
No files found.
src/google/protobuf/compiler/cpp/cpp_helpers.cc
View file @
7654f780
...
...
@@ -360,6 +360,12 @@ string FilenameIdentifier(const string& filename) {
return
result
;
}
string
GlobalSymbolName
(
const
string
&
filename
,
string
prefix
)
{
return
prefix
+
FilenameIdentifier
(
filename
);
}
// Return the name of the AddDescriptors() function for a given file.
string
GlobalAddDescriptorsName
(
const
string
&
filename
)
{
...
...
@@ -378,10 +384,6 @@ string GlobalShutdownFileName(const string& filename)
return
GlobalSymbolName
(
filename
,
"protobuf_ShutdownFile_"
);
}
string
GlobalSymbolName
(
const
string
&
filename
,
string
prefix
)
{
return
prefix
+
FilenameIdentifier
(
filename
);
}
// Return the qualified C++ name for a file level symbol.
string
QualifiedFileLevelSymbol
(
const
string
&
package
,
const
string
&
name
)
{
...
...
src/google/protobuf/compiler/python/python_generator.cc
View file @
7654f780
...
...
@@ -581,7 +581,7 @@ void Generator::PrintServiceDescriptor(
}
void
Generator
::
PrintDescriptorKeyAndModuleName
(
const
ServiceDescriptor
&
descriptor
,
string
keyandmodule
)
{
void
Generator
::
PrintDescriptorKeyAndModuleName
(
const
ServiceDescriptor
&
descriptor
,
const
char
*
keyandmodule
)
const
{
printer_
->
Print
(
keyandmodule
,
"class_name"
,
descriptor
.
name
());
printer_
->
Indent
();
printer_
->
Print
(
...
...
src/google/protobuf/compiler/python/python_generator.h
View file @
7654f780
...
...
@@ -127,6 +127,7 @@ class LIBPROTOC_EXPORT Generator : public CodeGenerator {
void
PrintServiceDescriptor
(
const
ServiceDescriptor
&
descriptor
)
const
;
void
PrintServiceClass
(
const
ServiceDescriptor
&
descriptor
)
const
;
void
PrintServiceStub
(
const
ServiceDescriptor
&
descriptor
)
const
;
void
PrintDescriptorKeyAndModuleName
(
const
ServiceDescriptor
&
descriptor
,
const
char
*
keyandmodule
)
const
;
void
PrintEnumValueDescriptor
(
const
EnumValueDescriptor
&
descriptor
)
const
;
string
OptionsValue
(
const
string
&
class_name
,
...
...
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