In this post, we will see how to resolve clang-format 15 – force function parameters into new line Question: I can’t force clang-format into spliting function parameters into separate lines: Current: Expected: I don’t mind where exactly it is aligned ...

In this post, we will see how to resolve How to use git filter-repo to format all code in git history Question: I would like to use git filter-repo to format all my c++ files in my repos history. To ...

Question: I am writing a clang-format file for a c++ code-base that is not mine (I mention this because I can’t arbitrarily change the previous design choices, namings etc.). I want to change the formatting that is created by the ...

Question: I have the following BraceWrapping options: However, clang-format always inserts a new line after an enum: I want it to be like this: what am I doing wrong here? Answer: The one option I could find that seems to ...

Question: In the .clang-format file I can say: How do I specify the same on the command line? (For some reason using .clang-format is not an option.) I tried: and as well as some other variations using BraceWrapping.Afterclass, BraceWrapping:AfterClass, BraceWrappingAfterClass, ...