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

Enable clang-format AllowShortBlocksOnASingleLine #2741

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Sep 18, 2024

This looks much cleaner and readable IMHO. There is also an "Always" option for this, but its output feels less readable to me.

=============

See https://clang.llvm.org/docs/ClangFormatStyleOptions.html#allowshortblocksonasingleline. I don't remember how I found this but it might have been improved/fixed in LLVM 18/19.

@fhanau fhanau requested review from a team as code owners September 18, 2024 19:32
Copy link
Member

@npaun npaun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite nice.

Don't forget:

  • .git-blame-ignore-revs
  • Merge via merge commit

This looks much cleaner and readable IMHO. There is also an "Always" option for
this, but its output feels less readable to me.
@fhanau fhanau merged commit 501ef65 into main Sep 19, 2024
12 of 13 checks passed
@fhanau fhanau deleted the felix/compact-short-blocks branch September 19, 2024 02:14
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.

3 participants