forked from qt-creator/qt-creator
CppTools: Fix indentation for some completion tests
Change-Id: I9a5bf4705da5ca88776dec70057da2c64e4c1494 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
0909c0295f
commit
90265b7696
@@ -314,18 +314,18 @@ void CppToolsPlugin::test_completion_data()
|
||||
QTest::addColumn<QStringList>("expectedCompletions");
|
||||
|
||||
QTest::newRow("forward_declarations_present") << _(
|
||||
"class Foo\n"
|
||||
"{\n"
|
||||
" struct Bar;\n"
|
||||
" int i;\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"struct Foo::Bar \n"
|
||||
"{\n"
|
||||
" Bar() {}\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"@\n"
|
||||
"class Foo\n"
|
||||
"{\n"
|
||||
" struct Bar;\n"
|
||||
" int i;\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"struct Foo::Bar \n"
|
||||
"{\n"
|
||||
" Bar() {}\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"@\n"
|
||||
) << _("Foo::Bar::") << (QStringList()
|
||||
<< QLatin1String("Bar"));
|
||||
|
||||
@@ -1966,29 +1966,29 @@ void CppToolsPlugin::test_completion_data()
|
||||
<< QLatin1String("bar"));
|
||||
|
||||
QTest::newRow("signals_hide_QPrivateSignal") << _(
|
||||
"#define SIGNAL(a) #a\n"
|
||||
"#define SLOT(a) #a\n"
|
||||
"#define signals public\n"
|
||||
"#define Q_OBJECT struct QPrivateSignal {};\n"
|
||||
"\n"
|
||||
"class QObject\n"
|
||||
"{\n"
|
||||
"public:\n"
|
||||
" void connect(QObject *, char *, QObject *, char *);\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"class Timer : public QObject\n"
|
||||
"{\n"
|
||||
" Q_OBJECT\n"
|
||||
"signals:\n"
|
||||
" void timeout(QPrivateSignal);\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"void client()\n"
|
||||
"{\n"
|
||||
" Timer *timer = new Timer;\n"
|
||||
" connect(timer, SIGNAL(@\n"
|
||||
"}\n"
|
||||
"#define SIGNAL(a) #a\n"
|
||||
"#define SLOT(a) #a\n"
|
||||
"#define signals public\n"
|
||||
"#define Q_OBJECT struct QPrivateSignal {};\n"
|
||||
"\n"
|
||||
"class QObject\n"
|
||||
"{\n"
|
||||
"public:\n"
|
||||
" void connect(QObject *, char *, QObject *, char *);\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"class Timer : public QObject\n"
|
||||
"{\n"
|
||||
" Q_OBJECT\n"
|
||||
"signals:\n"
|
||||
" void timeout(QPrivateSignal);\n"
|
||||
"};\n"
|
||||
"\n"
|
||||
"void client()\n"
|
||||
"{\n"
|
||||
" Timer *timer = new Timer;\n"
|
||||
" connect(timer, SIGNAL(@\n"
|
||||
"}\n"
|
||||
) << _() << (QStringList()
|
||||
<< QLatin1String("timeout()"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user