clangformat: Fix build with LLVM 13

Change-Id: Ia9db10696fd129c8b989ecc4c9ecbb7f1f10e68c
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Björn Schäpers
2021-06-16 20:59:29 +02:00
committed by Björn Schäpers
parent bf04c98c1c
commit 55b91a7617

View File

@@ -157,7 +157,11 @@ static clang::format::FormatStyle qtcStyle()
style.SpaceBeforeParens = FormatStyle::SBPO_ControlStatements;
style.SpaceInEmptyParentheses = false;
style.SpacesBeforeTrailingComments = 1;
#if LLVM_VERSION_MAJOR >= 13
style.SpacesInAngles = FormatStyle::SIAS_Never;
#else
style.SpacesInAngles = false;
#endif
style.SpacesInContainerLiterals = false;
style.SpacesInCStyleCastParentheses = false;
style.SpacesInParentheses = false;