forked from qt-creator/qt-creator
Clang: Build against LLVM/Clang 9
Task-numer: QTCREATORBUG-23038
Change-Id: I3608bca6541614bb55e67d35c87334957cd02761
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
(cherry picked from commit 6ec8017bc6
)
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -60,7 +60,11 @@ static clang::format::FormatStyle qtcStyle()
|
||||
style.AllowShortBlocksOnASingleLine = false;
|
||||
style.AllowShortCaseLabelsOnASingleLine = false;
|
||||
style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline;
|
||||
#if LLVM_VERSION_MAJOR >= 9
|
||||
style.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_Never;
|
||||
#else
|
||||
style.AllowShortIfStatementsOnASingleLine = false;
|
||||
#endif
|
||||
style.AllowShortLoopsOnASingleLine = false;
|
||||
style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_None;
|
||||
style.AlwaysBreakBeforeMultilineStrings = false;
|
||||
|
Reference in New Issue
Block a user