From 3ceaf66cd82da204e465ccf153dfc539b4970855 Mon Sep 17 00:00:00 2001 From: James LaChance Date: Wed, 14 Oct 2020 01:44:55 -0400 Subject: [PATCH] Add instructions for how to format code This took @jfly and me far too long to figure out how to actually get the code formatted. --- docs/CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 21b1a2b1..5935a019 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -19,6 +19,7 @@ For small fixes or incremental improvements simply fork the repo and follow the 2. Start coding! - Implement your feature. - Check your code works as expected. + - Run the code formatter: `clang-format -i $(git ls-files "*.cpp" "*.h")` 3. Commit your changes to a new branch (not `master`, one change per branch) and push it: - Commit messages should: