forked from qt-creator/qt-creator
clangformat: Fix build with LLVM 13
Change-Id: Ia9db10696fd129c8b989ecc4c9ecbb7f1f10e68c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Björn Schäpers
parent
bf04c98c1c
commit
55b91a7617
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user