From f80e888b7e0bc847ace66f4fd3ab85deb441dac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Tue, 31 Jan 2017 16:22:31 +0100 Subject: [PATCH] run astyle [ci-skip] --- test/testother.cpp | 12 ++++++------ test/testtokenize.cpp | 8 ++++---- test/testunusedvar.cpp | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/testother.cpp b/test/testother.cpp index 4fd28a950..7be95ee33 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -6408,15 +6408,15 @@ private: "[test.cpp:11] -> [test.cpp:16]: (warning) Function 'func4' argument order different: declaration ', b, c' definition 'c, b, a'\n", errout.str()); } - // #7846 - Syntax error when using C++11 braced-initializer in default argument + // #7846 - Syntax error when using C++11 braced-initializer in default argument void cpp11FunctionArgInit() { // syntax error is not expected ASSERT_NO_THROW(check( - "\n void foo(int declaration = {}) {" - "\n for (int i = 0; i < 10; i++) {}" - "\n }" - "\n " - )); + "\n void foo(int declaration = {}) {" + "\n for (int i = 0; i < 10; i++) {}" + "\n }" + "\n " + )); ASSERT_EQUALS("", errout.str()); } }; diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index fc3df9a40..5e9b1edf4 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -2888,10 +2888,10 @@ private: " delete [] *dataPtr;\n" "}"; const char exp[] = "int main ( ) {\n" - "char * data ; data = new char [ 100 ] ;\n" - "char * * dataPtr ; dataPtr = & data ;\n" - "printf ( \"test\" ) ;\n" - "delete [ ] data ;\n" + "char * data ; data = new char [ 100 ] ;\n" + "char * * dataPtr ; dataPtr = & data ;\n" + "printf ( \"test\" ) ;\n" + "delete [ ] data ;\n" "}"; ASSERT_EQUALS(exp, tokenizeAndStringify(code, /*simplify=*/true)); } diff --git a/test/testunusedvar.cpp b/test/testunusedvar.cpp index 471f78b4e..1c14fb484 100644 --- a/test/testunusedvar.cpp +++ b/test/testunusedvar.cpp @@ -4105,10 +4105,10 @@ private: void bracesInitCpp11() { functionVariableUsage( - "int fun() {\n" - " static int fpUnread{0};\n" - " const int var{fpUnread++};\n" - " return var;\n" + "int fun() {\n" + " static int fpUnread{0};\n" + " const int var{fpUnread++};\n" + " return var;\n" "}\n" ); ASSERT_EQUALS("", errout.str());