forked from qt-creator/qt-creator
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:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user