aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppdoxygen_test.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-08-24 14:30:51 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-08-25 12:51:10 +0000
commita2db85b11ee2767b903941f2691310184fc21a1e (patch)
treec959ccee724762bd836436bb986be08e27a4fb35 /src/plugins/cppeditor/cppdoxygen_test.cpp
parent00ced26f4774427d4c10ac616cf9fd217ed42674 (diff)
C++: Fix indentation of doxygen comment continuations
Align also after the leading asterisk. Fixes: QTCREATORBUG-11749 Change-Id: Ic054598c80206bf38b74345aed20d88486f57cad Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppdoxygen_test.cpp')
-rw-r--r--src/plugins/cppeditor/cppdoxygen_test.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppdoxygen_test.cpp b/src/plugins/cppeditor/cppdoxygen_test.cpp
index 79e4e9f2d9..59aad20d07 100644
--- a/src/plugins/cppeditor/cppdoxygen_test.cpp
+++ b/src/plugins/cppeditor/cppdoxygen_test.cpp
@@ -309,6 +309,34 @@ void DoxygenTest::testBasic_data()
" public: void f();\n"
"};\n"
);
+
+ QTest::newRow("continuation_after_text_in_first_line") << _(
+ "bool preventFolding;\n"
+ "/*! leading comment|\n"
+ " */\n"
+ "int a;\n"
+ ) << _(
+ "bool preventFolding;\n"
+ "/*! leading comment\n"
+ " * \n"
+ " */\n"
+ "int a;\n"
+ );
+
+ QTest::newRow("continuation_after_extra_indent") << _(
+ "bool preventFolding;\n"
+ "/*! leading comment\n"
+ " * cont|\n"
+ " */\n"
+ "int a;\n"
+ ) << _(
+ "bool preventFolding;\n"
+ "/*! leading comment\n"
+ " * cont\n"
+ " * \n"
+ " */\n"
+ "int a;\n"
+ );
}
void DoxygenTest::testBasic()