forked from qt-creator/qt-creator
ClangFormat: Fix compilation with LLVM 15
Change-Id: I7990e8331c317d3bc363be610b2585d37dee4445
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
(cherry picked from commit a1bfcbf30d
)
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -118,7 +118,11 @@ clang::format::FormatStyle qtcStyle()
|
||||
style.ColumnLimit = 100;
|
||||
style.CommentPragmas = "^ IWYU pragma:";
|
||||
style.CompactNamespaces = false;
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
style.PackConstructorInitializers = FormatStyle::PCIS_BinPack;
|
||||
#else
|
||||
style.ConstructorInitializerAllOnOneLineOrOnePerLine = false;
|
||||
#endif
|
||||
style.ConstructorInitializerIndentWidth = 4;
|
||||
style.ContinuationIndentWidth = 4;
|
||||
style.Cpp11BracedListStyle = true;
|
||||
|
Reference in New Issue
Block a user