Add style handling via .editorconfig and .clang-format #203
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Generally such topics are highly volatile, so grab as many/little as you prefer while I hide from the incoming rotten tomatoes
This PR adds the two configuration files, alongside a CI workflow which helps getting consistent style for new changes.
The existing code is untouched - if you want to mass update the repo be my guest. If you do, adding the commit sha in
.git-blame-ignore-revs
will keepgit blame
working OOTB with Github/Gitlab, while devs will have togit config
it (seegit-blame(1)
).Notes:
.clang-format
is coming from the kernel, yet lacks any copyright attributionclang-format
sometimes reorders multi-line enums/initializers - a trailing comma for final entry usually solves itclang-format off
comment and re-enabled withclang-format on