diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2014-12-04 12:42:31 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2014-12-15 14:36:54 +0100 |
commit | cbc64077d5fb1eb8d9d65bca72b85749f27b2404 (patch) | |
tree | 440de9492a06712eb3dc4dde8464eabf9dd7a27e /src/plugins/cppeditor/cppdoxygen_test.cpp | |
parent | 65bb5856d0f771c069f0687bc9382ae963fe126c (diff) |
CppEditor: Fix comment continuation
Do not continue a comment with '*' for
*foo //<Enter>
and
*foo /*<Enter>
Task-number: QTCREATORBUG-13415
Change-Id: I0bf062fb96942930f8c9a268bff832de219c7787
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/cppeditor/cppdoxygen_test.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppdoxygen_test.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppdoxygen_test.cpp b/src/plugins/cppeditor/cppdoxygen_test.cpp index 3cd9a13f3b..c412ab8ee9 100644 --- a/src/plugins/cppeditor/cppdoxygen_test.cpp +++ b/src/plugins/cppeditor/cppdoxygen_test.cpp @@ -268,6 +268,24 @@ void CppEditorPlugin::test_doxygen_comments_data() "void d(); ///\n" "\n" ); + + QTest::newRow("noContinuationForExpressionAndComment1") << _( + "bool preventFolding;\n" + "*foo //|\n" + ) << _( + "bool preventFolding;\n" + "*foo //\n" + "\n" + ); + + QTest::newRow("noContinuationForExpressionAndComment2") << _( + "bool preventFolding;\n" + "*foo /*|\n" + ) << _( + "bool preventFolding;\n" + "*foo /*\n" + " \n" + ); } void CppEditorPlugin::test_doxygen_comments() |