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
e9f4e8e4
Commit
e9f4e8e4
authored
Jul 25, 2017
by
Adam Cozzette
Committed by
GitHub
Jul 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3407 from bklarson/master
Add declaration for AddDescriptorsImpl()
parents
451d0611
b6da2262
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
29 additions
and
1 deletion
+29
-1
Makefile.am
src/Makefile.am
+1
-1
any.pb.cc
src/google/protobuf/any.pb.cc
+2
-0
api.pb.cc
src/google/protobuf/api.pb.cc
+2
-0
cpp_file.cc
src/google/protobuf/compiler/cpp/cpp_file.cc
+2
-0
plugin.pb.cc
src/google/protobuf/compiler/plugin.pb.cc
+2
-0
profile.pb.cc
src/google/protobuf/compiler/profile.pb.cc
+2
-0
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+2
-0
duration.pb.cc
src/google/protobuf/duration.pb.cc
+2
-0
empty.pb.cc
src/google/protobuf/empty.pb.cc
+2
-0
field_mask.pb.cc
src/google/protobuf/field_mask.pb.cc
+2
-0
source_context.pb.cc
src/google/protobuf/source_context.pb.cc
+2
-0
struct.pb.cc
src/google/protobuf/struct.pb.cc
+2
-0
timestamp.pb.cc
src/google/protobuf/timestamp.pb.cc
+2
-0
type.pb.cc
src/google/protobuf/type.pb.cc
+2
-0
wrappers.pb.cc
src/google/protobuf/wrappers.pb.cc
+2
-0
No files found.
src/Makefile.am
View file @
e9f4e8e4
...
...
@@ -928,7 +928,7 @@ no_warning_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
../gmock/gtest/lib/libgtest_main.la
no_warning_test_CPPFLAGS
=
-I
$(srcdir)
/../gmock/gtest/include
no_warning_test_CXXFLAGS
=
$(PTHREAD_CFLAGS)
$(PTHREAD_DEF)
$(ZLIB_DEF)
\
-Wall
-Wconversion
-Werror
-Wall
-Wconversion
-Werror
-Werror
=
missing-declarations
nodist_no_warning_test_SOURCES
=
no_warning_test.cc
$(protoc_outputs)
TESTS
=
protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test
\
...
...
src/google/protobuf/any.pb.cc
View file @
e9f4e8e4
...
...
@@ -102,6 +102,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -118,6 +119,7 @@ void AddDescriptorsImpl() {
"google/protobuf/any.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/api.pb.cc
View file @
e9f4e8e4
...
...
@@ -146,6 +146,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -177,6 +178,7 @@ void AddDescriptorsImpl() {
::
google
::
protobuf
::
protobuf_google_2fprotobuf_2ftype_2eproto
::
AddDescriptors
();
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/compiler/cpp/cpp_file.cc
View file @
e9f4e8e4
...
...
@@ -811,6 +811,7 @@ void FileGenerator::GenerateBuildDescriptors(io::Printer* printer) {
// Now generate the AddDescriptors() function.
printer
->
Print
(
"namespace {
\n
"
"void AddDescriptorsImpl() {
\n
"
" InitDefaults();
\n
"
);
...
...
@@ -882,6 +883,7 @@ void FileGenerator::GenerateBuildDescriptors(io::Printer* printer) {
printer
->
Outdent
();
printer
->
Print
(
"}
\n
"
"} // anonymous namespace
\n
"
"
\n
"
"void AddDescriptors() {
\n
"
" static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
\n
"
...
...
src/google/protobuf/compiler/plugin.pb.cc
View file @
e9f4e8e4
...
...
@@ -169,6 +169,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -196,6 +197,7 @@ void AddDescriptorsImpl() {
::
google
::
protobuf
::
protobuf_google_2fprotobuf_2fdescriptor_2eproto
::
AddDescriptors
();
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/compiler/profile.pb.cc
View file @
e9f4e8e4
...
...
@@ -143,6 +143,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -162,6 +163,7 @@ void AddDescriptorsImpl() {
"google/protobuf/compiler/profile.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/descriptor.pb.cc
View file @
e9f4e8e4
...
...
@@ -663,6 +663,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -815,6 +816,7 @@ void AddDescriptorsImpl() {
"google/protobuf/descriptor.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/duration.pb.cc
View file @
e9f4e8e4
...
...
@@ -102,6 +102,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -118,6 +119,7 @@ void AddDescriptorsImpl() {
"google/protobuf/duration.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/empty.pb.cc
View file @
e9f4e8e4
...
...
@@ -100,6 +100,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -115,6 +116,7 @@ void AddDescriptorsImpl() {
"google/protobuf/empty.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/field_mask.pb.cc
View file @
e9f4e8e4
...
...
@@ -101,6 +101,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -117,6 +118,7 @@ void AddDescriptorsImpl() {
"google/protobuf/field_mask.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/source_context.pb.cc
View file @
e9f4e8e4
...
...
@@ -101,6 +101,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -118,6 +119,7 @@ void AddDescriptorsImpl() {
"google/protobuf/source_context.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/struct.pb.cc
View file @
e9f4e8e4
...
...
@@ -161,6 +161,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -188,6 +189,7 @@ void AddDescriptorsImpl() {
"google/protobuf/struct.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/timestamp.pb.cc
View file @
e9f4e8e4
...
...
@@ -102,6 +102,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -118,6 +119,7 @@ void AddDescriptorsImpl() {
"google/protobuf/timestamp.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/type.pb.cc
View file @
e9f4e8e4
...
...
@@ -187,6 +187,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -239,6 +240,7 @@ void AddDescriptorsImpl() {
::
google
::
protobuf
::
protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto
::
AddDescriptors
();
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
src/google/protobuf/wrappers.pb.cc
View file @
e9f4e8e4
...
...
@@ -213,6 +213,7 @@ void InitDefaults() {
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
::
google
::
protobuf
::
GoogleOnceInit
(
&
once
,
&
TableStruct
::
InitDefaultsImpl
);
}
namespace
{
void
AddDescriptorsImpl
()
{
InitDefaults
();
static
const
char
descriptor
[]
=
{
...
...
@@ -235,6 +236,7 @@ void AddDescriptorsImpl() {
"google/protobuf/wrappers.proto"
,
&
protobuf_RegisterTypes
);
::
google
::
protobuf
::
internal
::
OnShutdown
(
&
TableStruct
::
Shutdown
);
}
}
// anonymous namespace
void
AddDescriptors
()
{
static
GOOGLE_PROTOBUF_DECLARE_ONCE
(
once
);
...
...
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