Skip to content

Conversation

@Ozaq
Copy link
Member

@Ozaq Ozaq commented Dec 2, 2025

Description

A very common review request is to add braces to if statements even if they only have a single statement. Not doing so is a subtle source of bugs, hece we are upating the clang-format config to automatically add missing braces in such situations.

See clang-format doc for more details:
https://releases.llvm.org/19.1.0/tools/clang/docs/ClangFormatStyleOptions.html#insertbraces

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

A very common review request is to add braces to if statements even if
they only have a single statement. Not doing so is a subtle source of
bugs, hece we are upating the clang-format config to automatically add
missing braces in such situations.

See clang-format doc for more details:
https://releases.llvm.org/19.1.0/tools/clang/docs/ClangFormatStyleOptions.html#insertbraces
@simondsmart
Copy link
Contributor

Approved, as commented in Teams chat. Merging.

@simondsmart simondsmart merged commit 4553939 into main Dec 2, 2025
1 check passed
@simondsmart simondsmart deleted the update-clang-format branch December 2, 2025 22:01
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