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
08ec9dcb
Commit
08ec9dcb
authored
May 20, 2015
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #406 from AustinSchuh/unsigned_has_bits
Marked compiler literal unsigned.
parents
f71eea88
e826837f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
cpp_message.cc
src/google/protobuf/compiler/cpp/cpp_message.cc
+1
-1
plugin.pb.cc
src/google/protobuf/compiler/plugin.pb.cc
+1
-1
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+14
-14
No files found.
src/google/protobuf/compiler/cpp/cpp_message.cc
View file @
08ec9dcb
...
...
@@ -2096,7 +2096,7 @@ GenerateClear(io::Printer* printer) {
}
else
{
if
(
HasFieldPresence
(
descriptor_
->
file
()))
{
printer
->
Print
(
"if (_has_bits_[$index$ / 32] & $mask$) {
\n
"
,
"if (_has_bits_[$index$ / 32] & $mask$
u
) {
\n
"
,
"index"
,
SimpleItoa
(
i
/
8
*
8
),
"mask"
,
SimpleItoa
(
mask
));
printer
->
Indent
();
...
...
src/google/protobuf/compiler/plugin.pb.cc
View file @
08ec9dcb
...
...
@@ -724,7 +724,7 @@ CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf::
}
void
CodeGeneratorResponse_File
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
7
)
{
if
(
_has_bits_
[
0
/
32
]
&
7
u
)
{
if
(
has_name
())
{
name_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
src/google/protobuf/descriptor.pb.cc
View file @
08ec9dcb
...
...
@@ -1139,7 +1139,7 @@ FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena)
}
void
FileDescriptorProto
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
3
)
{
if
(
_has_bits_
[
0
/
32
]
&
3
u
)
{
if
(
has_name
())
{
name_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
@@ -1147,7 +1147,7 @@ void FileDescriptorProto::Clear() {
package_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
}
if
(
_has_bits_
[
8
/
32
]
&
3584
)
{
if
(
_has_bits_
[
8
/
32
]
&
3584
u
)
{
if
(
has_options
())
{
if
(
options_
!=
NULL
)
options_
->::
google
::
protobuf
::
FileOptions
::
Clear
();
}
...
...
@@ -2656,7 +2656,7 @@ DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const {
}
void
DescriptorProto
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
129
)
{
if
(
_has_bits_
[
0
/
32
]
&
129
u
)
{
if
(
has_name
())
{
name_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
@@ -3613,7 +3613,7 @@ FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena
}
void
FieldDescriptorProto
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
255
)
{
if
(
_has_bits_
[
0
/
32
]
&
255
u
)
{
if
(
has_name
())
{
name_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
@@ -4898,7 +4898,7 @@ EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena)
}
void
EnumDescriptorProto
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
5
)
{
if
(
_has_bits_
[
0
/
32
]
&
5
u
)
{
if
(
has_name
())
{
name_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
@@ -5369,7 +5369,7 @@ EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren
}
void
EnumValueDescriptorProto
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
7
)
{
if
(
_has_bits_
[
0
/
32
]
&
7
u
)
{
if
(
has_name
())
{
name_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
@@ -5831,7 +5831,7 @@ ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a
}
void
ServiceDescriptorProto
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
5
)
{
if
(
_has_bits_
[
0
/
32
]
&
5
u
)
{
if
(
has_name
())
{
name_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
@@ -6318,7 +6318,7 @@ void MethodDescriptorProto::Clear() {
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
} while (0)
if
(
_has_bits_
[
0
/
32
]
&
63
)
{
if
(
_has_bits_
[
0
/
32
]
&
63
u
)
{
ZR_
(
client_streaming_
,
server_streaming_
);
if
(
has_name
())
{
name_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
...
...
@@ -7110,7 +7110,7 @@ void FileOptions::Clear() {
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
} while (0)
if
(
_has_bits_
[
0
/
32
]
&
255
)
{
if
(
_has_bits_
[
0
/
32
]
&
255
u
)
{
ZR_
(
java_multiple_files_
,
cc_generic_services_
);
if
(
has_java_package
())
{
java_package_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
...
...
@@ -7123,7 +7123,7 @@ void FileOptions::Clear() {
go_package_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
}
if
(
_has_bits_
[
8
/
32
]
&
16128
)
{
if
(
_has_bits_
[
8
/
32
]
&
16128
u
)
{
ZR_
(
java_generic_services_
,
cc_enable_arenas_
);
if
(
has_objc_class_prefix
())
{
objc_class_prefix_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
...
...
@@ -9054,7 +9054,7 @@ void FieldOptions::Clear() {
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
} while (0)
if
(
_has_bits_
[
0
/
32
]
&
31
)
{
if
(
_has_bits_
[
0
/
32
]
&
31
u
)
{
ZR_
(
ctype_
,
weak_
);
}
...
...
@@ -11109,7 +11109,7 @@ UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protob
}
void
UninterpretedOption_NamePart
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
3
)
{
if
(
_has_bits_
[
0
/
32
]
&
3
u
)
{
if
(
has_name_part
())
{
name_part_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
@@ -11434,7 +11434,7 @@ void UninterpretedOption::Clear() {
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
} while (0)
if
(
_has_bits_
[
0
/
32
]
&
126
)
{
if
(
_has_bits_
[
0
/
32
]
&
126
u
)
{
ZR_
(
positive_int_value_
,
double_value_
);
if
(
has_identifier_value
())
{
identifier_value_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
...
...
@@ -12284,7 +12284,7 @@ SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena*
}
void
SourceCodeInfo_Location
::
Clear
()
{
if
(
_has_bits_
[
0
/
32
]
&
12
)
{
if
(
_has_bits_
[
0
/
32
]
&
12
u
)
{
if
(
has_leading_comments
())
{
leading_comments_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
...
...
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