forked from qt-creator/qt-creator
C++ indenter: Add another ObjC test.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user