forked from qt-creator/qt-creator
ClangFormat: Adapt to upstream API change
Change-Id: I171f7432499459a14621c1887e69945ab506a734 Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user