diff --git a/src/plugins/clangformat/clangformatutils.cpp b/src/plugins/clangformat/clangformatutils.cpp index 7beb062a45e..573b489cea7 100644 --- a/src/plugins/clangformat/clangformatutils.cpp +++ b/src/plugins/clangformat/clangformatutils.cpp @@ -69,7 +69,11 @@ clang::format::FormatStyle calculateQtcStyle() style.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_Yes; #endif style.BinPackArguments = false; +#if LLVM_VERSION_MAJOR >= 20 + style.BinPackParameters = FormatStyle::BPPS_OnePerLine; +#else style.BinPackParameters = false; +#endif style.BraceWrapping.AfterClass = true; style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Never; style.BraceWrapping.AfterEnum = false;