From e50f7a3e09f4f09a5abcfbf6e2a58bc55fb25a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 30 Jun 2021 20:27:35 +0200 Subject: [PATCH] astyle formatting --- test/testnullpointer.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/test/testnullpointer.cpp b/test/testnullpointer.cpp index 67342bbf7..1df8354da 100644 --- a/test/testnullpointer.cpp +++ b/test/testnullpointer.cpp @@ -2242,23 +2242,23 @@ private: } void nullpointer72() { // #10215 - check("int test() {\n" - "int* p0 = nullptr, *p1 = nullptr;\n" - "getFoo(p0);\n" - "getBar(p1);\n" - "if (!(p0 != nullptr && p1 != nullptr))\n" - "return {};\n" - "return *p0 + *p1;\n" - "}\n", true /*inconclusive*/); - ASSERT_EQUALS("", errout.str()); + check("int test() {\n" + "int* p0 = nullptr, *p1 = nullptr;\n" + "getFoo(p0);\n" + "getBar(p1);\n" + "if (!(p0 != nullptr && p1 != nullptr))\n" + "return {};\n" + "return *p0 + *p1;\n" + "}\n", true /*inconclusive*/); + ASSERT_EQUALS("", errout.str()); - check("int test2() {\n" - "int* p0 = nullptr; \n" - "if (!(getBaz(p0) && p0 != nullptr))\n" - "return 0;\n" - "return *p0;\n" - "}\n", true /*inconclusive*/); - ASSERT_EQUALS("", errout.str()); + check("int test2() {\n" + "int* p0 = nullptr; \n" + "if (!(getBaz(p0) && p0 != nullptr))\n" + "return 0;\n" + "return *p0;\n" + "}\n", true /*inconclusive*/); + ASSERT_EQUALS("", errout.str()); } void nullpointer73() {