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

Add/Run/CI Clang-format on adoc/code #709

Merged
merged 4 commits into from
Feb 13, 2025
Merged

Add/Run/CI Clang-format on adoc/code #709

merged 4 commits into from
Feb 13, 2025

Conversation

TApplencourt
Copy link
Contributor

@TApplencourt TApplencourt commented Jan 31, 2025

  • This PR copy / pasted the clang-format format used by the CTS.
  • And formed the ./adoc/code files
  • I also adapted their CI practice. The CI will fail if the files in ./adoc/code are incorrectly formatted.

We can use this PR to see if we like this format-style or want to customize it.

Then, I can do another PR to do the same thing on all the other code blocks.

@TApplencourt TApplencourt changed the title [draft] Add Clang-format [draft] Add/Run/CI Clang-format Jan 31, 2025
@TApplencourt TApplencourt force-pushed the clang-ci branch 7 times, most recently from 78c8619 to 0f59af1 Compare January 31, 2025 18:20
@TApplencourt TApplencourt changed the title [draft] Add/Run/CI Clang-format Add/Run/CI Clang-format on adoc/code Jan 31, 2025
@TApplencourt
Copy link
Contributor Author

Ready to review

@TApplencourt TApplencourt added the editorial Some purely editorial problem label Jan 31, 2025
Copy link
Contributor

@gmlueck gmlueck left a comment

Choose a reason for hiding this comment

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

The new format looks good to me! Any other opinions?

ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
SpaceBeforeParens: ControlStatements
DisableFormat: false
SortIncludes: true
Copy link
Member

Choose a reason for hiding this comment

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

Why repeating all the definitions used by default in the Google style?
Could you just keep the one which differ so we can understand the changes to the basic style?
I doubt we have ObjectiveC language constructs, so ObjCSpaceBeforeProtocolList and others seem useless. 😄

Copy link
Contributor Author

@TApplencourt TApplencourt Feb 13, 2025

Choose a reason for hiding this comment

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

Fixed with 1a32f1

@tomdeakin
Copy link
Contributor

Ready to merge now, editorial.

Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Thanks!

@gmlueck
Copy link
Contributor

gmlueck commented Feb 13, 2025

Merging as editorial

@gmlueck gmlueck merged commit 4c87cbc into main Feb 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial Some purely editorial problem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants