astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2019-10-08 19:33:32 +02:00
parent 08bc369296
commit 47e9504083
1 changed files with 16 additions and 16 deletions

View File

@ -395,27 +395,27 @@ private:
ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str()); ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str());
check("class Fred {\n" check("class Fred {\n"
"public:\n" "public:\n"
" Fred() = default;\n" " Fred() = default;\n"
" int x;\n" " int x;\n"
"};"); "};");
ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str()); ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str());
check("class Fred {\n" check("class Fred {\n"
"public:\n" "public:\n"
" Fred();\n" " Fred();\n"
" int x;\n" " int x;\n"
"};\n" "};\n"
"Fred::Fred()=default;"); "Fred::Fred()=default;");
ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str()); ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str());
check("class Fred {\n" check("class Fred {\n"
"public:\n" "public:\n"
" Fred() = default;\n" " Fred() = default;\n"
"private:\n" "private:\n"
" int x = 0;\n" " int x = 0;\n"
"};"); "};");
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
} }
void simple11() { // ticket #4536, #6214 void simple11() { // ticket #4536, #6214