Many of the error are probably caused by being to specific and specifying all flags in .clang-format. It is usually sufficient to only specify the style .clang-format is based on + options which deviate from the base style. I have used https://zed0.co.uk/clang-format-configurator/ which includes only necessary lines in .clang-format.
I created it by dumping the LLVM style configuration to a file, which in hindsight might not be great, because I'm running clang-format 18 (git). I switched to a BasedOnStyle: LLVM to avoid these kind of mishaps.
Hi. I'm on clang-format
15.0.7
and project's included.clang-format
contains multiple errors. For example:Many of the error are probably caused by being to specific and specifying all flags in
.clang-format
. It is usually sufficient to only specify the style.clang-format
is based on + options which deviate from the base style. I have used https://zed0.co.uk/clang-format-configurator/ which includes only necessary lines in.clang-format
.