Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#3490 from jwnimmer-tri/cpplint-ref…
Browse files Browse the repository at this point in the history
…erences

Push runtime/references suppressions to the leaves
  • Loading branch information
jwnimmer-tri authored Sep 19, 2016
2 parents 4b8a5c6 + c399d5f commit 7829cd2
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CPPLINT.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ filter=-readability/casting

# TODO(#2273) Fix this.
filter=-readability/namespace

# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/common/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/examples/@VanDerPolCpp/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/examples/Acrobot/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/examples/Pendulum/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/examples/Quadrotor/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/math/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/solvers/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/systems/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
2 changes: 2 additions & 0 deletions drake/util/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO(#2274) Fix this.
filter=-runtime/references
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace ros {
namespace systems {

bool decode(const ackermann_msgs::AckermannDriveStamped& msg,
// NOLINTNEXTLINE(runtime/references) due to LCMSystem.
drake::automotive::DrivingCommand<double>& x) {
x.set_steering_angle(msg.drive.steering_angle);
if (msg.drive.speed > 0) {
Expand Down Expand Up @@ -119,6 +120,7 @@ class ROSAckermannCommandReceiverSystem {
template <typename System>
void run_ros_vehicle_sim(
std::shared_ptr<System> sys, double t0, double tf,
// NOLINTNEXTLINE(runtime/references) False positive.
const typename System::template StateVector<double>& x0,
const SimulationOptions& options = SimulationOptions()) {
auto ros_ackermann_input =
Expand Down

0 comments on commit 7829cd2

Please sign in to comment.