Run clang-format on the entire repo
This patch clang-formats the entire repo. Third-party code is
excluded.
I needed to fix up the .clang-format file so that all the header
includes are ordered properly. I could have sworn that it used to work
without the extra modification, but I guess not.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I64bb9f2c795401393f9dfe2fefc4f04cb36b52f6
diff --git a/y2019/control_loops/drivetrain/localizer.h b/y2019/control_loops/drivetrain/localizer.h
index 818e1b9..2e7c3a5 100644
--- a/y2019/control_loops/drivetrain/localizer.h
+++ b/y2019/control_loops/drivetrain/localizer.h
@@ -95,15 +95,13 @@
dhdx;
make_h_queue_.CorrectKnownHBuilder(
z, nullptr,
- ExpectedObservationBuilder(this, camera, targets, &h_functions,
- &dhdx),
+ ExpectedObservationBuilder(this, camera, targets, &h_functions, &dhdx),
R, t);
// Fetch cache:
for (size_t ii = 1; ii < targets.size(); ++ii) {
TargetViewToMatrices(targets[ii], &z, &R);
h_queue_.CorrectKnownH(
- z, nullptr,
- ExpectedObservationFunctor(h_functions[ii], dhdx[ii]), R,
+ z, nullptr, ExpectedObservationFunctor(h_functions[ii], dhdx[ii]), R,
t);
}
}
@@ -189,8 +187,8 @@
const State &state, const StateSquare &P) {
HFunction h;
Eigen::Matrix<Scalar, kNOutputs, kNStates> dhdx;
- localizer_->MakeH(camera_, target_views_, h_functions_, dhdx_,
- state, P, &h, &dhdx);
+ localizer_->MakeH(camera_, target_views_, h_functions_, dhdx_, state, P,
+ &h, &dhdx);
functor_.emplace(h, dhdx);
return &functor_.value();
}
@@ -410,8 +408,7 @@
if (view_idx >= camera_views.size()) {
AOS_LOG(ERROR, "Somehow, the view scorer failed.\n");
h_functions->emplace_back();
- dhdx->push_back(
- Eigen::Matrix<Scalar, kNOutputs, kNStates>::Zero());
+ dhdx->push_back(Eigen::Matrix<Scalar, kNOutputs, kNStates>::Zero());
continue;
}
const Eigen::Matrix<Scalar, kNOutputs, kNStates> best_H =