Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global reformatting of C code #138

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tridge
Copy link
Member

@tridge tridge commented Dec 1, 2024

this uses astyle to reformat all the C code in AM32 for 2 space indent, which is what the Keil editor config is set to on @AlkaMotors PC

It also adds a .git-blame-ignore-rev so it can ignore the big commit in git history. Note that after this is merged (with a rebase merge please) we likely will need to change the git hash as the merge/rebase will likely change the hash

I have checked that the Makefile build produces identical binaries for all targets after this PR and before

Note! I used "add-braces" in the astylerc, so even 1 line if() statements get braces, which is how I prefer it, but if @AlkaMotors prefers not to do that I will redo this PR without that

reformat with astyle for 2-space indent
for ignoring reformatting in history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant