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
f4ceaecf
Commit
f4ceaecf
authored
Sep 04, 2019
by
Adam Cozzette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated deprecation macros to annotate deprecated code
parent
0d1d92d3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
4 deletions
+15
-4
BUILD
BUILD
+1
-0
dynamic_message.h
src/google/protobuf/dynamic_message.h
+1
-0
port_def.inc
src/google/protobuf/port_def.inc
+9
-2
port.h
src/google/protobuf/stubs/port.h
+3
-2
text_format.h
src/google/protobuf/text_format.h
+1
-0
No files found.
BUILD
View file @
f4ceaecf
...
...
@@ -59,6 +59,7 @@ COPTS = select({
"-Wno-unused-function",
# Prevents ISO C++ const string assignment warnings for pyext sources.
"-Wno-write-strings",
"-Wno-deprecated-declarations",
],
})
...
...
src/google/protobuf/dynamic_message.h
View file @
f4ceaecf
...
...
@@ -44,6 +44,7 @@
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/message.h>
#include <google/protobuf/reflection.h>
#include <google/protobuf/stubs/mutex.h>
#include <google/protobuf/reflection.h>
#include <google/protobuf/repeated_field.h>
...
...
src/google/protobuf/port_def.inc
View file @
f4ceaecf
...
...
@@ -146,8 +146,15 @@
#define PROTOBUF_NAMESPACE_CLOSE \
}
/* namespace protobuf */
\
}
/* namespace google */
#define PROTOBUF_DEPRECATED
#define PROTOBUF_DEPRECATED_MSG(x)
#if defined(__GNUC__) || defined(__clang__)
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
#define PROTOBUF_DEPRECATED_MSG(msg) __attribute__((deprecated(msg)))
#elif defined(_MSC_VER)
#define PROTOBUF_DEPRECATED __declspec(deprecated)
#define PROTOBUF_DEPRECATED_MSG(msg) __declspec(deprecated(msg))
#endif
#define PROTOBUF_SECTION_VARIABLE(x)
#define PROTOBUF_MUST_USE_RESULT
...
...
src/google/protobuf/stubs/port.h
View file @
f4ceaecf
...
...
@@ -103,8 +103,9 @@
#define LIBPROTOC_EXPORT
#endif
#define PROTOBUF_RUNTIME_DEPRECATED(message)
#define GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(message)
#define PROTOBUF_RUNTIME_DEPRECATED(message) PROTOBUF_DEPRECATED_MSG(message)
#define GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(message) \
PROTOBUF_DEPRECATED_MSG(message)
// ===================================================================
// from google3/base/port.h
...
...
src/google/protobuf/text_format.h
View file @
f4ceaecf
...
...
@@ -157,6 +157,7 @@ class PROTOBUF_EXPORT TextFormat {
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS
(
FastFieldValuePrinter
);
};
// Deprecated: please use FastFieldValuePrinter instead.
class
PROTOBUF_EXPORT
FieldValuePrinter
{
public
:
FieldValuePrinter
();
...
...
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