diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-02-01 22:10:08 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-02-04 11:34:03 +0100 |
commit | 7febebc294d235916c8a0736f0e573600d14ce1f (patch) | |
tree | ffcd146c5073c5efccaff4dc587f7e1dfbedbdba | |
parent | e600424648eaebe5cf3ea1fa3ae8a41a22ce7b95 (diff) | |
download | qt-creator-7febebc294d235916c8a0736f0e573600d14ce1f.tar.gz |
C++: Fix indentation in preprocessor tests
Easier to compare when indentation is aligned
Change-Id: I216073dc167c0ed785616ae308b566db7f910592
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
-rw-r--r-- | tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp b/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp index 9cc7ecda61..13d85d8a5b 100644 --- a/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp +++ b/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp @@ -1148,18 +1148,18 @@ void tst_Preprocessor::comments_within_data() "# 8 \"<stdin>\"\n" "x = 10\n" ) << _( - "# 1 \"<stdin>\"\n" - "\n" - "\n" - " // comment\n" - " // comment\n" - " // comment\n" - " // comment\n" - "# expansion begin 76,3 ~3\n" - "int x;\n" - "# expansion end\n" - "# 8 \"<stdin>\"\n" - "x = 10\n" + "# 1 \"<stdin>\"\n" + "\n" + "\n" + " // comment\n" + " // comment\n" + " // comment\n" + " // comment\n" + "# expansion begin 76,3 ~3\n" + "int x;\n" + "# expansion end\n" + "# 8 \"<stdin>\"\n" + "x = 10\n" ); QTest::newRow("case 2") << _( @@ -1185,18 +1185,18 @@ void tst_Preprocessor::comments_within_data() "# 8 \"<stdin>\"\n" "x = 10\n" ) << _( - "# 1 \"<stdin>\"\n" - "\n" - "\n" - " /* comment\n" - " comment\n" - " comment\n" - " comment */\n" - "# expansion begin 79,3 ~3\n" - "int x;\n" - "# expansion end\n" - "# 8 \"<stdin>\"\n" - "x = 10\n" + "# 1 \"<stdin>\"\n" + "\n" + "\n" + " /* comment\n" + " comment\n" + " comment\n" + " comment */\n" + "# expansion begin 79,3 ~3\n" + "int x;\n" + "# expansion end\n" + "# 8 \"<stdin>\"\n" + "x = 10\n" ); QTest::newRow("case 3") << _( @@ -1224,20 +1224,20 @@ void tst_Preprocessor::comments_within_data() "# 10 \"<stdin>\"\n" "x = 10\n" ) << _( - "# 1 \"<stdin>\"\n" - "\n" - "\n" - " // comment\n" - " // comment\n" - " // comment\n" - " // comment\n" - "# expansion begin 76,3 ~3\n" - "int x;\n" - "# expansion end\n" - "# 8 \"<stdin>\"\n" - "// test\n" - "// test again\n" - "x = 10\n" + "# 1 \"<stdin>\"\n" + "\n" + "\n" + " // comment\n" + " // comment\n" + " // comment\n" + " // comment\n" + "# expansion begin 76,3 ~3\n" + "int x;\n" + "# expansion end\n" + "# 8 \"<stdin>\"\n" + "// test\n" + "// test again\n" + "x = 10\n" ); QTest::newRow("case 4") << _( @@ -1265,20 +1265,20 @@ void tst_Preprocessor::comments_within_data() "# 10 \"<stdin>\"\n" "x = 10\n" ) << _( - "# 1 \"<stdin>\"\n" - "\n" - "\n" - " /* comment\n" - " comment\n" - " comment\n" - " comment */\n" - "# expansion begin 79,3 ~3\n" - "int x;\n" - "# expansion end\n" - "# 8 \"<stdin>\"\n" - "/* \n" - "*/\n" - "x = 10\n" + "# 1 \"<stdin>\"\n" + "\n" + "\n" + " /* comment\n" + " comment\n" + " comment\n" + " comment */\n" + "# expansion begin 79,3 ~3\n" + "int x;\n" + "# expansion end\n" + "# 8 \"<stdin>\"\n" + "/* \n" + "*/\n" + "x = 10\n" ); QTest::newRow("case 5") << _( @@ -1299,14 +1299,14 @@ void tst_Preprocessor::comments_within_data() "# expansion end\n" "# 8 \"<stdin>\"\n" ) << _( - "# 1 \"<stdin>\"\n" - "\n" - "\n" - "void foo() {\n" - "# expansion begin 57,3 ~4 4:7 ~5 6:7 7:0 ~2\n" - "{ (void)10; (void)/*comment*/ 12}; }\n" - "# expansion end\n" - "# 8 \"<stdin>\"\n" + "# 1 \"<stdin>\"\n" + "\n" + "\n" + "void foo() {\n" + "# expansion begin 57,3 ~4 4:7 ~5 6:7 7:0 ~2\n" + "{ (void)10; (void)/*comment*/ 12}; }\n" + "# expansion end\n" + "# 8 \"<stdin>\"\n" ); QTest::newRow("case 6") << _( @@ -1327,14 +1327,14 @@ void tst_Preprocessor::comments_within_data() "# expansion end\n" "# 8 \"<stdin>\"\n" ) << _( - "# 1 \"<stdin>\"\n" - "\n" - "\n" - "void foo() {\n" - "# expansion begin 57,3 ~4 4:7 ~5 6:7 7:0 ~2\n" - "{ (void)10; (void)/*tricky*|comment*/ 12}; }\n" - "# expansion end\n" - "# 8 \"<stdin>\"\n" + "# 1 \"<stdin>\"\n" + "\n" + "\n" + "void foo() {\n" + "# expansion begin 57,3 ~4 4:7 ~5 6:7 7:0 ~2\n" + "{ (void)10; (void)/*tricky*|comment*/ 12}; }\n" + "# expansion end\n" + "# 8 \"<stdin>\"\n" ); QTest::newRow("case 7") << _( @@ -1356,17 +1356,17 @@ void tst_Preprocessor::comments_within_data() " ) {}\n" "}\n" ) << _( - "# 1 \"<stdin>\"\n" - "\n" - "\n" - "void foo() {\n" - " if (\n" - "# expansion begin 68,3 ~5\n" - "(1 == 0)\n" - "# expansion end\n" - "# 4 \"<stdin>\"\n" - " ) {}\n" - "}\n" + "# 1 \"<stdin>\"\n" + "\n" + "\n" + "void foo() {\n" + " if (\n" + "# expansion begin 68,3 ~5\n" + "(1 == 0)\n" + "# expansion end\n" + "# 4 \"<stdin>\"\n" + " ) {}\n" + "}\n" ); } |