diff options
author | hjk <[email protected]> | 2025-08-15 12:40:45 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2025-08-15 12:17:29 +0000 |
commit | 3876fc2883543f4cb887c231d50c2a4c401f15c3 (patch) | |
tree | e1ed1c7daa8a56f75f17ef58ca04d68c29f6926d | |
parent | 85ef4842e8d870c06f47219180760a32de37f0a1 (diff) |
ClangFormat: Squash a warning for a non-initialized member17.0
Change-Id: Ib9ed8c96a69c726c72d1702503cb108f3fb28cae
Reviewed-by: Christian Kandeler <[email protected]>
-rw-r--r-- | src/plugins/clangformat/clangformatutils.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/clangformat/clangformatutils.cpp b/src/plugins/clangformat/clangformatutils.cpp index c2f5273f079..973097a433a 100644 --- a/src/plugins/clangformat/clangformatutils.cpp +++ b/src/plugins/clangformat/clangformatutils.cpp @@ -39,7 +39,10 @@ clang::format::FormatStyle calculateQtcStyle() style.Language = FormatStyle::LK_Cpp; style.AccessModifierOffset = -4; style.AlignAfterOpenBracket = FormatStyle::BAS_Align; -#if LLVM_VERSION_MAJOR >= 18 +#if LLVM_VERSION_MAJOR >= 20 + style.AlignConsecutiveAssignments = {false, false, false, false, false, false, false}; + style.AlignConsecutiveDeclarations = {false, false, false, false, false, false, false}; +#elif LLVM_VERSION_MAJOR >= 18 style.AlignConsecutiveAssignments = {false, false, false, false, false, false}; style.AlignConsecutiveDeclarations = {false, false, false, false, false, false}; #elif LLVM_VERSION_MAJOR >= 15 |