-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Astyle to clang format #8464
Astyle to clang format #8464
Conversation
would a different author help filtering when blame / log-search is happening? |
Indeed FWIW and given the huge umber of changes, in the past and in my previous attempt I used the separate "allman" account in order to get a better commit history. |
Here's a relevant issue to watch: community/community#5033 |
b1451b2
to
cfc9779
Compare
cfc9779
to
7a3a9c4
Compare
Ignore mass-reformatting commits Include the clang-format, and the previous astyle Based on the idea from black https://black.readthedocs.io/en/stable/guides/introducing_black_to_your_project.html#avoiding-ruining-git-blame To be used with git CLI when exploring some specific file history ``` $ git blame --ignore-revs-file .git-blame-ignore-revs -- file.cpp ``` Or, by modifying the config to apply globally ``` $ git config blame.ignoreRevsFile .git-blame-ignore-revs ``` (note that the by default config will apply only for the current repository)
7a3a9c4
to
9019c28
Compare
GitHub PR rebase-merge of esp8266#8464 introduced a new commit, instead of using the one from the PR tree. Point to that new one in the `master` branch. (fixing 24c4152 changes)
Ignore mass-reformatting commits Include the clang-format, and the previous astyle Based on the idea from black https://black.readthedocs.io/en/stable/guides/introducing_black_to_your_project.html#avoiding-ruining-git-blame To be used with git CLI when exploring some specific file history ``` $ git blame --ignore-revs-file .git-blame-ignore-revs -- file.cpp ``` Or, by modifying the config to apply globally ``` $ git config blame.ignoreRevsFile .git-blame-ignore-revs ``` (note that the by default config will apply only for the current repository)
GitHub PR rebase-merge of esp8266#8464 introduced a new commit, instead of using the one from the PR tree. Point to that new one in the `master` branch. (fixing 24c4152 changes)
replaces / amends #8455
there does not seem to be an option for one-line brace addition for if() { ... } while() { ... } etc. :/
clang-tidy might help with that, but it needs a build command line info via compile_commands.json so it can handle macros, build options, know the language context etc. For target build of the Core, arduino-cli or platformio can already do that, but need some kind of project file and there might be problems with dependencies not being picked up. Host files need something else, either manually create the .json or use some makefile generator like cmake to build mock files and retrieve build cmd that way.