forked from qt-creator/qt-creator
ClangFormat: Fix wrong comment indentation
Fixes: QTCREATORBUG-25539 Change-Id: Ifecc4bc2c0984319d858720d5bcd1788a9008e90 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -704,4 +704,24 @@ void ClangFormatTest::testIndentFunctionArgumentOnNewLine()
|
||||
}));
|
||||
}
|
||||
|
||||
void ClangFormatTest::testIndentCommentOnNewLine()
|
||||
{
|
||||
insertLines(
|
||||
{"/*!",
|
||||
" \\qmlproperty double Type::property",
|
||||
" ",
|
||||
" \\brief The property of Type.",
|
||||
"*/"
|
||||
});
|
||||
m_indenter->indent(*m_cursor, QChar::Null, TextEditor::TabSettings());
|
||||
QCOMPARE(documentLines(),
|
||||
(std::vector<QString>{
|
||||
"/*!",
|
||||
" \\qmlproperty double Type::property",
|
||||
" ",
|
||||
" \\brief The property of Type.",
|
||||
"*/"
|
||||
}));
|
||||
}
|
||||
|
||||
} // namespace ClangFormat::Internal
|
||||
|
||||
Reference in New Issue
Block a user