Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Astyle indent preproc block#1007

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 2 commits intostm32duino:masterfrom3devo:astyle-indent-preproc-block
Mar 31, 2020

Conversation

matthijskooijman
Copy link
Contributor

Based on#1006, I quickly tried enabling the astyle ident-preproc-block to see what the impact would be. It produces a rather big diff, but on first glance does improve readability a lot.

Because it changes so much, this would probably mess with open pullrequests, so it might be good to merge those as far as possible (it is probably also possible to update them semi-automatically, but might still be a bit messy).

@fpistm
Copy link
Member

To have it passed, could you rebase on top of the master, please?
Thanks

@fpistm
Copy link
Member

Looking at all changes, I will have to update my scripts to generate wrapper files and PinNamesVar.h to indent properly by default.

@matthijskooijmanmatthijskooijmanforce-pushed theastyle-indent-preproc-block branch from7295118 toeb6817cCompareMarch 23, 2020 09:03
@matthijskooijman
Copy link
ContributorAuthor

I pushed one more commit to let astyle enforce linux-style line endings. I noticed some CRLF-style files in the jumpsysBL branch, but when adding this option, notice@fpistm had already unified these in master. This just encodes this in the astyle config as well.

fpistm reacted with thumbs up emoji

@matthijskooijmanmatthijskooijmanforce-pushed theastyle-indent-preproc-block branch fromaef4a33 toeb6817cCompareMarch 31, 2020 09:35
This indents preprocessor blocks, making nested preprocessor blockseasier to read.
This runs `python3 CI/astyle/astyle.py` and commits the result.
@matthijskooijmanmatthijskooijmanforce-pushed theastyle-indent-preproc-block branch fromeb6817c to4ab0fc3CompareMarch 31, 2020 09:39
@matthijskooijman
Copy link
ContributorAuthor

What shall we do with this PR? I've just rebased it on top of master again, maybe it could just be merged? There's still a few open PRs that would produce conflicts from this, but most of them are experimental and would need to be mostly redone anyway, I think?

@matthijskooijmanmatthijskooijman marked this pull request as ready for reviewMarch 31, 2020 09:39
@fpistmfpistm merged commitcffb347 intostm32duino:masterMar 31, 2020
@fpistmfpistm linked an issueMar 31, 2020 that may beclosed by this pull request
fpistm added a commit to stm32duino/Arduino_Tools that referenced this pull requestApr 1, 2020
@matthijskooijmanmatthijskooijman deleted the astyle-indent-preproc-block branchApril 27, 2020 13:30
fpistm added a commit to stm32duino/Arduino_Tools that referenced this pull requestMay 4, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fpistmfpistmfpistm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Allow indenting preprocessor macros?
2 participants
@matthijskooijman@fpistm

[8]ページ先頭

©2009-2025 Movatter.jp