ClangFormat: Adapt to changes in LLVM 16

Change-Id: Ia4a2cf21e351095609d8858f1f9355c6607470f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2023-01-31 08:11:29 +01:00
parent 50ee70fcee
commit e20bdfae4d
2 changed files with 8 additions and 0 deletions

View File

@@ -151,7 +151,11 @@ clang::format::FormatStyle qtcStyle()
#else
style.SortIncludes = true;
#endif
#if LLVM_VERSION_MAJOR >= 16
style.SortUsingDeclarations = FormatStyle::SUD_Lexicographic;
#else
style.SortUsingDeclarations = true;
#endif
style.SpaceAfterCStyleCast = true;
style.SpaceAfterTemplateKeyword = false;
style.SpaceBeforeAssignmentOperators = true;