Files
qtcreator/build_files/clangformatutils.patch
2022-12-07 13:43:27 +03:00

15 lines
562 B
Diff

--- /soft/qt-creator/src/plugins/clangformat/clangformatutils.cpp 2022-12-07 04:26:12.928000000 +0000
+++ /soft/clangformatutils.cpp 2022-12-07 04:20:31.924000000 +0000
@@ -71,7 +71,11 @@
#else
style.AlignOperands = true;
#endif
+#if LLVM_VERSION_MAJOR >= 16
+ style.AlignTrailingComments.Kind = clang::format::FormatStyle::TCAS_Always;
+#else
style.AlignTrailingComments = true;
+#endif
style.AllowAllParametersOfDeclarationOnNextLine = true;
#if LLVM_VERSION_MAJOR >= 10
style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never;