15 lines
578 B
Diff
15 lines
578 B
Diff
--- /soft/qt-creator/src/plugins/clangformat/clangformatbaseindenter.cpp 2022-12-07 04:26:12.928000000 +0000
|
|
+++ /soft/clangformatbaseindenter.cpp 2022-12-07 04:20:13.644000000 +0000
|
|
@@ -61,7 +61,11 @@
|
|
|
|
// This is a separate pass, don't do it unless it's the full formatting.
|
|
style.FixNamespaceComments = false;
|
|
+#if LLVM_VERSION_MAJOR >= 16
|
|
+ style.AlignTrailingComments.Kind = clang::format::FormatStyle::TCAS_Never;
|
|
+#else
|
|
style.AlignTrailingComments = false;
|
|
+#endif
|
|
|
|
if (replacementsToKeep == ReplacementsToKeep::IndentAndBefore)
|
|
return;
|