summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppdoxygen_test.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2021-10-27 17:11:28 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2021-10-28 10:05:43 +0000
commita437539096e8d5e4a49101f5d05774667089dc0d (patch)
tree6a6ebd2df85aeef4b877f725a4fb992ebacad4d4 /src/plugins/cppeditor/cppdoxygen_test.cpp
parentd8d4739bc4519637dffd04ac19f72612c1c388da (diff)
downloadqt-creator-a437539096e8d5e4a49101f5d05774667089dc0d.tar.gz
CppEditor: Fix doxygen comment magic before templates
Fixes: QTCREATORBUG-9620 Change-Id: I65a434d72adbe72d449783a917444c2ee216fc5e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppdoxygen_test.cpp')
-rw-r--r--src/plugins/cppeditor/cppdoxygen_test.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppdoxygen_test.cpp b/src/plugins/cppeditor/cppdoxygen_test.cpp
index c9c40a8dd8..7e2781a6ce 100644
--- a/src/plugins/cppeditor/cppdoxygen_test.cpp
+++ b/src/plugins/cppeditor/cppdoxygen_test.cpp
@@ -326,6 +326,20 @@ void DoxygenTest::testBasic_data()
"};\n"
);
+ QTest::newRow("classTemplate") << _(
+ "bool preventFolding;\n"
+ "/**|\n"
+ "template<typename T> class C {\n"
+ "};\n"
+ ) << _(
+ "bool preventFolding;\n"
+ "/**\n"
+ " * @brief The C class\n"
+ " */\n"
+ "template<typename T> class C {\n"
+ "};\n"
+ );
+
QTest::newRow("continuation_after_text_in_first_line") << _(
"bool preventFolding;\n"
"/*! leading comment|\n"