summaryrefslogtreecommitdiff
path: root/runtime/base/bit_struct_test.cc
diff options
context:
space:
mode:
author Igor Murashkin <iam@google.com> 2017-11-16 13:34:30 -0800
committer Igor Murashkin <iam@google.com> 2017-11-16 14:42:49 -0800
commit5573c37e795668eca81a8488078f798d977685c3 (patch)
tree5e7675d6c1ca9ed1c31834e52282bfb9f73dc2a4 /runtime/base/bit_struct_test.cc
parent1598a77ca3559c8a59902f26ee887504b8159859 (diff)
cpplint: Remove many unnecessary NOLINT
Now that we updated to upstream cpplint, a lot of these NOLINTs are no longer necessary. Bug: 68951293 Change-Id: If8ed5ffe89727f313f907a214b6d8fd2a2eddbad
Diffstat (limited to 'runtime/base/bit_struct_test.cc')
-rw-r--r--runtime/base/bit_struct_test.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/runtime/base/bit_struct_test.cc b/runtime/base/bit_struct_test.cc
index a80d39eb91..577682ccce 100644
--- a/runtime/base/bit_struct_test.cc
+++ b/runtime/base/bit_struct_test.cc
@@ -73,7 +73,7 @@ struct CustomBitStruct {
TEST(BitStructs, Custom) {
CustomBitStruct expected(0b1111);
- BitStructField<CustomBitStruct, /*lsb*/4, /*width*/4> f{}; // NOLINT
+ BitStructField<CustomBitStruct, /*lsb*/4, /*width*/4> f{};
EXPECT_EQ(1u, sizeof(f));
@@ -95,7 +95,7 @@ TEST(BitStructs, TwoCustom) {
VALIDATE_BITSTRUCT_SIZE(TestTwoCustom);
- TestTwoCustom cst{}; // NOLINT
+ TestTwoCustom cst{};
// Test the write to most-significant field doesn't clobber least-significant.
cst.f4_a = CustomBitStruct(0b0110);
@@ -122,7 +122,7 @@ TEST(BitStructs, TwoCustom) {
}
TEST(BitStructs, Number) {
- BitStructNumber<uint16_t, /*lsb*/4, /*width*/4> bsn{}; // NOLINT
+ BitStructNumber<uint16_t, /*lsb*/4, /*width*/4> bsn{};
EXPECT_EQ(2u, sizeof(bsn));
bsn = 0b1111;
@@ -154,7 +154,7 @@ TEST(BitStructs, Test1) {
EXPECT_EQ(1u, sizeof(u4));
EXPECT_EQ(1u, sizeof(alias_all));
}
- TestBitStruct tst{}; // NOLINT
+ TestBitStruct tst{};
// Check minimal size selection is correct.
EXPECT_EQ(1u, sizeof(TestBitStruct));
@@ -229,7 +229,7 @@ BITSTRUCT_DEFINE_END(MixedSizeBitStruct);
TEST(BitStructs, Mixed) {
EXPECT_EQ(4u, sizeof(MixedSizeBitStruct));
- MixedSizeBitStruct tst{}; // NOLINT
+ MixedSizeBitStruct tst{};
// Check operator assignment.
tst.u3 = 0b111u;
@@ -263,11 +263,11 @@ BITSTRUCT_DEFINE_START(TestBitStruct_u8, /* size */ 8)
BITSTRUCT_DEFINE_END(TestBitStruct_u8);
TEST(BitStructs, FieldAssignment) {
- TestBitStruct_u8 all_1s{}; // NOLINT
+ TestBitStruct_u8 all_1s{};
all_1s.alias_all = 0xffu;
{
- TestBitStruct_u8 tst{}; // NOLINT
+ TestBitStruct_u8 tst{};
tst.i3 = all_1s.i3;
// Copying a single bitfield does not copy all bitfields.
@@ -275,7 +275,7 @@ TEST(BitStructs, FieldAssignment) {
}
{
- TestBitStruct_u8 tst{}; // NOLINT
+ TestBitStruct_u8 tst{};
tst.u4 = all_1s.u4;
// Copying a single bitfield does not copy all bitfields.
@@ -291,13 +291,13 @@ BITSTRUCT_DEFINE_START(NestedStruct, /* size */ 64)
BITSTRUCT_DEFINE_END(NestedStruct);
TEST(BitStructs, NestedFieldAssignment) {
- MixedSizeBitStruct mixed_all_1s{}; // NOLINT
+ MixedSizeBitStruct mixed_all_1s{};
mixed_all_1s.alias_all = 0xFFFFFFFFu;
{
- NestedStruct xyz{}; // NOLINT
+ NestedStruct xyz{};
- NestedStruct other{}; // NOLINT
+ NestedStruct other{};
other.mixed_upper = mixed_all_1s;
other.mixed_lower = mixed_all_1s;
@@ -307,9 +307,9 @@ TEST(BitStructs, NestedFieldAssignment) {
}
{
- NestedStruct xyz{}; // NOLINT
+ NestedStruct xyz{};
- NestedStruct other{}; // NOLINT
+ NestedStruct other{};
other.mixed_upper = mixed_all_1s;
other.mixed_lower = mixed_all_1s;