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
401e07d3
Commit
401e07d3
authored
Jun 07, 2016
by
Bo Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GOOGLE_ prefix before PROTOBUF_DEPRECATED_ATTR
parent
b60e615c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
cpp_enum.cc
src/google/protobuf/compiler/cpp/cpp_enum.cc
+1
-1
cpp_field.cc
src/google/protobuf/compiler/cpp/cpp_field.cc
+1
-1
generated_message_util.h
src/google/protobuf/generated_message_util.h
+1
-1
No files found.
src/google/protobuf/compiler/cpp/cpp_enum.cc
View file @
401e07d3
...
...
@@ -189,7 +189,7 @@ void EnumGenerator::GenerateSymbolImports(io::Printer* printer) {
for
(
int
j
=
0
;
j
<
descriptor_
->
value_count
();
j
++
)
{
vars
[
"tag"
]
=
EnumValueName
(
descriptor_
->
value
(
j
));
vars
[
"deprecated_attr"
]
=
descriptor_
->
value
(
j
)
->
options
().
deprecated
()
?
"PROTOBUF_DEPRECATED_ATTR "
:
""
;
"
GOOGLE_
PROTOBUF_DEPRECATED_ATTR "
:
""
;
printer
->
Print
(
vars
,
"$deprecated_attr$static $constexpr$const $nested_name$ $tag$ =
\n
"
" $classname$_$tag$;
\n
"
);
...
...
src/google/protobuf/compiler/cpp/cpp_field.cc
View file @
401e07d3
...
...
@@ -78,7 +78,7 @@ void SetCommonFieldVariables(const FieldDescriptor* descriptor,
(
*
variables
)[
"deprecation"
]
=
descriptor
->
options
().
deprecated
()
?
" PROTOBUF_DEPRECATED"
:
""
;
(
*
variables
)[
"deprecated_attr"
]
=
descriptor
->
options
().
deprecated
()
?
"PROTOBUF_DEPRECATED_ATTR "
:
""
;
?
"
GOOGLE_
PROTOBUF_DEPRECATED_ATTR "
:
""
;
(
*
variables
)[
"cppget"
]
=
"Get"
;
...
...
src/google/protobuf/generated_message_util.h
View file @
401e07d3
...
...
@@ -63,7 +63,7 @@ namespace internal {
#undef DEPRECATED_PROTOBUF_FIELD
#define PROTOBUF_DEPRECATED
#define PROTOBUF_DEPRECATED_ATTR
#define
GOOGLE_
PROTOBUF_DEPRECATED_ATTR
// Constants for special floating point values.
...
...
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