Commit Graph

7 Commits

Author SHA1 Message Date
Mario Limonciello
8b679f7320 trivial: make contrib/reformat-code.py easier to use
1. Let the user know what commit it's reformatting in stdout
2. Add a debug mode to show the command that was launched
3. Fix output of errors
4. Allow the user to specify starting commit in an argument
2021-07-30 06:42:57 -05:00
Mario Limonciello
01f79c0339 trivial: set the reference commit to run style check against on CI 2021-07-24 20:56:26 -05:00
Daniel Campello
987e7d2929 Add contrib/reformat-code.py to pre-commit hooks 2021-07-24 20:56:26 -05:00
Richard Hughes
affd39f10b Change the style guide to no space before the bracket 2021-07-24 20:56:26 -05:00
Richard Hughes
a75266e701 trivial: Add the missing unversioned clang-format-diff 2021-07-24 16:38:04 +01:00
Daniel Campello
af1577342a reformat-code.py: add argumentless mode for formatting diffs 2021-07-23 12:41:22 -06:00
Mario Limonciello
7787ba6df9 Add a .clang-format file and helper tool
It won't automatically be enforced, but should be picked up by editors
that support it (such as VS code + CPP extension)

It doesn't yet follow project style entirely, so more tweaking is
likely needed.

Also add a helper tool for reformatting new files to match project style
2021-07-22 16:38:29 +01:00