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 InsertBraces: false to .clang-format #246

Open
maryamtahhan opened this issue Dec 16, 2022 · 1 comment
Open

Add InsertBraces: false to .clang-format #246

maryamtahhan opened this issue Dec 16, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@maryamtahhan
Copy link
Contributor

Update .clang-format file to include the new option InsertBraces: false when clang 15 is available in Fedora + Ubuntu.

https://clang.llvm.org/docs/ClangFormatStyleOptions.html

this will add the check for {} in single line statements

@KeithWiles
Copy link
Contributor

I have updated Ubuntu and the CI to use clang-format 15.0.2, just need to wait for Fedora I guess as ubuntu 22.10 uses 15.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants