elvout / cs393r

CS 393R Graduate Autonomous Robots, Fall 2021 | Autobots
0 stars 0 forks source link

Starter Code Reformatting #1

Closed elvout closed 3 years ago

elvout commented 3 years ago

This PR introduces clang-format rules.

The formatting rules are based on the Chromium Project's code style, but with a relaxed column limit of 100.

I personally think this style is quite nice -- it's basically the Google style but it's not as aggressive with trying to fit statements all on one line.

One of the problems I see so far is that the Matrix2f creation syntax gets formatted onto one line (src/eigen_tutorial.cc). We can try using // clang-format off / on statements to override the formatter.