CppEditor: Make two test cases ClangFormat-compatible

Change-Id: I5e9df40de3e13f0941c0f8c14385de43e828b5d2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Christian Kandeler
2024-02-28 17:07:13 +01:00
parent 87f2e9e190
commit 2e45d1d85a

View File

@@ -225,26 +225,30 @@ void DoxygenTest::testBasic_data()
/// test cpp style doxygen comment when inside a indented scope /// test cpp style doxygen comment when inside a indented scope
QTest::newRow("cpp_styleA_indented") << _( QTest::newRow("cpp_styleA_indented") << _(
" bool preventFolding;\n" "void func() {\n"
" ///|\n" " ///|\n"
" int a;\n" " int a;\n"
"}\n"
) << _( ) << _(
" bool preventFolding;\n" "void func() {\n"
" ///\n" " ///\n"
" /// \\brief a\n" " /// \\brief a\n"
" ///\n" " ///\n"
" int a;\n") << int(CommandPrefix::Auto); " int a;\n"
"}\n") << int(CommandPrefix::Auto);
QTest::newRow("cpp_styleB_indented") << _( QTest::newRow("cpp_styleB_indented") << _(
" bool preventFolding;\n" "void func() {\n"
" //!|\n" " //!|\n"
" int a;\n" " int a;\n"
"}\n"
) << _( ) << _(
" bool preventFolding;\n" "void func() {\n"
" //!\n" " //!\n"
" //! \\brief a\n" " //! \\brief a\n"
" //!\n" " //!\n"
" int a;\n") << int(CommandPrefix::Auto); " int a;\n"
"}\n") << int(CommandPrefix::Auto);
QTest::newRow("cpp_styleA_indented_preserve_mixed_indention_continuation") << _( QTest::newRow("cpp_styleA_indented_preserve_mixed_indention_continuation") << _(
"\t bool preventFolding;\n" "\t bool preventFolding;\n"