Commit b79fe7e7 authored by Christian Kamm's avatar Christian Kamm
Browse files

C++: Fix indenting of QML_* macros.

Task-number: QTCREATORBUG-2111
parent 7a8c07a1
......@@ -678,6 +678,7 @@ bool CodeFormatter::tryDeclaration()
QString tokenText = currentTokenText().toString();
if (tokenText.startsWith(QLatin1String("Q_"))
|| tokenText.startsWith(QLatin1String("QT_"))
|| tokenText.startsWith(QLatin1String("QML_"))
|| tokenText.startsWith(QLatin1String("QDOC_"))) {
enter(qt_like_macro);
return true;
......
......@@ -299,6 +299,8 @@ void tst_CodeFormatter::macrosNoSemicolon()
<< Line("int i;")
<< Line("Q_BLABLA();")
<< Line("int i;")
<< Line("QML_DECLARE_TYPE(a, b, c, d)")
<< Line("int i;")
<< Line("Q_PROPERTY(abc)")
<< Line("QDOC_PROPERTY(abc)")
<< Line("void foo() {")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment