Commit ed6585c3 authored by Christian Kamm's avatar Christian Kamm

C++ indenter: Add another ObjC test.

parent c2d890f6
......@@ -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;
......
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