summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletion_test.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-12-23 14:43:16 +0200
committerOrgad Shaneh <orgads@gmail.com>2013-12-23 13:46:59 +0100
commit90265b7696b78dd034a18a4853523a905314d48b (patch)
tree84116b8e5ed2e556de530e10c1bf4e02e308d681 /src/plugins/cpptools/cppcompletion_test.cpp
parent0909c0295f901b3b656335ef08352a90a4e01ad0 (diff)
downloadqt-creator-90265b7696b78dd034a18a4853523a905314d48b.tar.gz
CppTools: Fix indentation for some completion tests
Change-Id: I9a5bf4705da5ca88776dec70057da2c64e4c1494 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp70
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()"));