Merge remote-tracking branch 'origin/11.0'

Change-Id: Ic24d9800eceafa17c51f2ac9c989f55a9b6e920a
This commit is contained in:
Eike Ziller
2023-08-03 13:18:37 +02:00

View File

@@ -161,7 +161,9 @@ clang::format::FormatStyle calculateQtcStyle()
style.SpaceAfterTemplateKeyword = false;
style.SpaceBeforeAssignmentOperators = true;
style.SpaceBeforeParens = FormatStyle::SBPO_ControlStatements;
#if LLVM_VERSION_MAJOR < 17
style.SpaceInEmptyParentheses = false;
#endif
style.SpacesBeforeTrailingComments = 1;
#if LLVM_VERSION_MAJOR >= 13
style.SpacesInAngles = FormatStyle::SIAS_Never;
@@ -169,8 +171,12 @@ clang::format::FormatStyle calculateQtcStyle()
style.SpacesInAngles = false;
#endif
style.SpacesInContainerLiterals = false;
#if LLVM_VERSION_MAJOR >= 17
style.SpacesInParens = FormatStyle::SIPO_Never;
#else
style.SpacesInCStyleCastParentheses = false;
style.SpacesInParentheses = false;
#endif
style.SpacesInSquareBrackets = false;
addQtcStatementMacros(style);
style.Standard = FormatStyle::LS_Cpp11;