NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.19k stars 610 forks source link

Run recent version of `clang-format` on source files #2594

Closed oskooi closed 1 year ago

oskooi commented 1 year ago

Manually running clang-format on the source C++ files after updating the pre-commit package to use latest version. Also includes some formatting tweaks and minor updates to the pre-commit yaml file.

Separately, if we ever do decide to limit the line length to 80 characters for all source files, we just need to add an additional argument to the black and clang-format pre-commit hooks (e.g., args: [--line-length=80]).