Skip to content

Commit fd43867

Browse files
committed
Keep cpplint 2 formatting stable under clang-format
1 parent a1c7367 commit fd43867

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

envpool/box2d/car_dynamics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ static const float kWheelMomentOfInertia = 4000.0f * kSize * kSize;
4040
static const float kFrictionLimit = 1000000.0f * kSize * kSize;
4141
static const float kWheelR = 27;
4242
static const float kWheelW = 14;
43+
// clang-format off
4344
static const float kBrakeForce = 15; // radians per second
4445
static const float kWheelPos[4][2] = { // NOLINT
4546
{-55, 80},
@@ -69,6 +70,7 @@ static const float kWheelPoly[4][2] = { // NOLINT
6970
{+kWheelW, +kWheelR},
7071
{+kWheelW, -kWheelR},
7172
{-kWheelW, -kWheelR}};
73+
// clang-format on
7274

7375
static const cv::Scalar kRoadColor(102, 102, 102);
7476
static const cv::Scalar kBgColor(102, 204, 102);

envpool/minigrid/impl/utils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ enum Type {
6161
};
6262

6363
// constants
64+
// clang-format off
6465
static const std::unordered_map<Type, bool> kCanSeeBehind{
6566
{kEmpty, true}, {kWall, false}, {kGoal, true},
6667
{kFloor, true}, {kLava, true}, {kKey, true},
@@ -73,6 +74,7 @@ static const std::unordered_map<Type, bool> kCanPickup{
7374
{kEmpty, false}, {kWall, false}, {kGoal, false},
7475
{kFloor, false}, {kLava, false}, {kKey, true},
7576
{kBall, true}, {kDoor, false}, {kBox, true}};
77+
// clang-format on
7678

7779
// object class
7880

0 commit comments

Comments
 (0)