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
3c369dc0
Commit
3c369dc0
authored
May 05, 2017
by
Feng Xiao
Committed by
GitHub
May 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3057 from xfxyjwf/3.3.x
Fix several C++ build issues.
parents
99cf2efa
7378ec2b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
5 deletions
+18
-5
BUILD
BUILD
+1
-0
extract_includes.bat.in
cmake/extract_includes.bat.in
+2
-0
libprotobuf.cmake
cmake/libprotobuf.cmake
+1
-0
Makefile.am
src/Makefile.am
+1
-0
code_generator.h
src/google/protobuf/compiler/code_generator.h
+2
-2
csharp_bootstrap_unittest.cc
...gle/protobuf/compiler/csharp/csharp_bootstrap_unittest.cc
+8
-0
generated_message_table_driven.cc
src/google/protobuf/generated_message_table_driven.cc
+3
-3
No files found.
BUILD
View file @
3c369dc0
...
...
@@ -128,6 +128,7 @@ cc_library(
"src/google/protobuf/extension_set_heavy.cc",
"src/google/protobuf/field_mask.pb.cc",
"src/google/protobuf/generated_message_reflection.cc",
"src/google/protobuf/generated_message_table_driven.cc",
"src/google/protobuf/io/gzip_stream.cc",
"src/google/protobuf/io/printer.cc",
"src/google/protobuf/io/strtod.cc",
...
...
cmake/extract_includes.bat.in
View file @
3c369dc0
...
...
@@ -50,6 +50,7 @@ copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\field_mask.pb.h" incl
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_enum_reflection.h" include\google\protobuf\generated_enum_reflection.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_enum_util.h" include\google\protobuf\generated_enum_util.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_message_reflection.h" include\google\protobuf\generated_message_reflection.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_message_table_driven.h" include\google\protobuf\generated_message_table_driven.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_message_util.h" include\google\protobuf\generated_message_util.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\has_bits.h" include\google\protobuf\has_bits.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\io\coded_stream.h" include\google\protobuf\io\coded_stream.h
...
...
@@ -70,6 +71,7 @@ copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\map_type_handler.h" i
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\message.h" include\google\protobuf\message.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\message_lite.h" include\google\protobuf\message_lite.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\metadata.h" include\google\protobuf\metadata.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\metadata_lite.h" include\google\protobuf\metadata_lite.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\reflection.h" include\google\protobuf\reflection.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\reflection_ops.h" include\google\protobuf\reflection_ops.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\repeated_field.h" include\google\protobuf\repeated_field.h
...
...
cmake/libprotobuf.cmake
View file @
3c369dc0
...
...
@@ -13,6 +13,7 @@ set(libprotobuf_files
${
protobuf_source_dir
}
/src/google/protobuf/extension_set_heavy.cc
${
protobuf_source_dir
}
/src/google/protobuf/field_mask.pb.cc
${
protobuf_source_dir
}
/src/google/protobuf/generated_message_reflection.cc
${
protobuf_source_dir
}
/src/google/protobuf/generated_message_table_driven.cc
${
protobuf_source_dir
}
/src/google/protobuf/io/gzip_stream.cc
${
protobuf_source_dir
}
/src/google/protobuf/io/printer.cc
${
protobuf_source_dir
}
/src/google/protobuf/io/strtod.cc
...
...
src/Makefile.am
View file @
3c369dc0
...
...
@@ -250,6 +250,7 @@ libprotobuf_la_SOURCES = \
google/protobuf/extension_set_heavy.cc
\
google/protobuf/field_mask.pb.cc
\
google/protobuf/generated_message_reflection.cc
\
google/protobuf/generated_message_table_driven.cc
\
google/protobuf/map_field.cc
\
google/protobuf/message.cc
\
google/protobuf/reflection_internal.h
\
...
...
src/google/protobuf/compiler/code_generator.h
View file @
3c369dc0
...
...
@@ -162,8 +162,8 @@ typedef GeneratorContext OutputDirectory;
// "foo=bar,baz,qux=corge"
// parses to the pairs:
// ("foo", "bar"), ("baz", ""), ("qux", "corge")
extern
void
ParseGeneratorParameter
(
const
string
&
,
std
::
vector
<
std
::
pair
<
string
,
string
>
>*
);
LIBPROTOC_EXPORT
void
ParseGeneratorParameter
(
const
string
&
,
std
::
vector
<
std
::
pair
<
string
,
string
>
>*
);
}
// namespace compiler
}
// namespace protobuf
...
...
src/google/protobuf/compiler/csharp/csharp_bootstrap_unittest.cc
View file @
3c369dc0
...
...
@@ -134,6 +134,14 @@ class GenerateAndTest {
};
TEST
(
CsharpBootstrapTest
,
GeneratedCsharpDescriptorMatches
)
{
// Skip this whole test if the csharp directory doesn't exist (i.e., a C++11
// only distribution).
string
descriptor_file_name
=
"../csharp/src/Google.Protobuf/Reflection/Descriptor.cs"
;
if
(
!
File
::
Exists
(
TestSourceDir
()
+
"/"
+
descriptor_file_name
))
{
return
;
}
MockErrorCollector
error_collector
;
DiskSourceTree
source_tree
;
Importer
importer
(
&
source_tree
,
&
error_collector
);
...
...
src/google/protobuf/generated_message_table_driven.cc
View file @
3c369dc0
...
...
@@ -74,7 +74,7 @@ inline Arena* GetArena(MessageLite* msg, int64 arena_offset) {
template
<
typename
Type
>
inline
Type
*
AddField
(
MessageLite
*
msg
,
int64
offset
)
{
#if LANG_CXX11
static_assert
(
std
::
is_trivially_copy_assignable
<
Type
>::
value
,
static_assert
(
google
::
protobuf
::
internal
::
has_trivial_copy
<
Type
>::
value
,
"Do not assign"
);
#endif
...
...
@@ -94,7 +94,7 @@ inline string* AddField<string>(MessageLite* msg, int64 offset) {
template
<
typename
Type
>
inline
void
AddField
(
MessageLite
*
msg
,
int64
offset
,
Type
value
)
{
#if LANG_CXX11
static_assert
(
std
::
is_trivially_copy_assignable
<
Type
>::
value
,
static_assert
(
google
::
protobuf
::
internal
::
has_trivial_copy
<
Type
>::
value
,
"Do not assign"
);
#endif
*
AddField
<
Type
>
(
msg
,
offset
)
=
value
;
...
...
@@ -118,7 +118,7 @@ template <typename Type>
inline
void
SetField
(
MessageLite
*
msg
,
uint32
*
has_bits
,
uint32
has_bit_index
,
int64
offset
,
Type
value
)
{
#if LANG_CXX11
static_assert
(
std
::
is_trivially_copy_assignable
<
Type
>::
value
,
static_assert
(
google
::
protobuf
::
internal
::
has_trivial_copy
<
Type
>::
value
,
"Do not assign"
);
#endif
*
MutableField
<
Type
>
(
msg
,
has_bits
,
has_bit_index
,
offset
)
=
value
;
...
...
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