diff options
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcompletion_test.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp index 74f61e0721..2828a94593 100644 --- a/src/plugins/cpptools/cppcompletion_test.cpp +++ b/src/plugins/cpptools/cppcompletion_test.cpp @@ -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()")); |