C++ indenter: Add another ObjC test.

This commit is contained in:
Christian Kamm
2010-10-06 15:39:53 +02:00
parent c2d890f65e
commit ed6585c312

View File

@@ -33,6 +33,7 @@ private Q_SLOTS:
void classAccess();
void ternary();
void objcAtDeclarations();
void objcCall();
void objcCallAndFor();
void braceList();
void bug1();
@@ -667,6 +668,20 @@ void tst_CodeFormatter::objcAtDeclarations()
checkIndent(data);
}
void tst_CodeFormatter::objcCall()
{
QList<Line> data;
data << Line("void foo() {")
<< Line(" [NSApp windows];")
<< Line(" [NSObject class];")
<< Line(" if (a)")
<< Line(" int a = [window drawers];")
<< Line("}")
<< Line("int y;")
;
checkIndent(data);
}
void tst_CodeFormatter::objcCallAndFor()
{
QList<Line> data;