astyle formatting

This commit is contained in:
Daniel Marjamäki 2021-07-01 21:09:32 +02:00
parent 7a51fc8232
commit 869eac5670
2 changed files with 26 additions and 26 deletions

View File

@ -488,20 +488,20 @@ private:
}
void simple15() { // #8942
check("class A\n"
"{\n"
"public:\n"
" int member;\n"
"};\n"
"class B\n"
"{\n"
"public:\n"
" B(const decltype(A::member)& x, const decltype(A::member)& y) : x(x), y(y) {}\n"
"private:\n"
" const decltype(A::member)& x;\n"
" const decltype(A::member)& y;\n"
"};\n");
ASSERT_EQUALS("", errout.str());
check("class A\n"
"{\n"
"public:\n"
" int member;\n"
"};\n"
"class B\n"
"{\n"
"public:\n"
" B(const decltype(A::member)& x, const decltype(A::member)& y) : x(x), y(y) {}\n"
"private:\n"
" const decltype(A::member)& x;\n"
" const decltype(A::member)& y;\n"
"};\n");
ASSERT_EQUALS("", errout.str());
}
void noConstructor1() {

View File

@ -1354,18 +1354,18 @@ private:
ASSERT_EQUALS("", errout.str());
}
void iterator26() { // #9176
check(
"#include <map>\n"
"int main()\n"
"{"
" std::map<char const*, int> m{ {\"a\", 1} };\n"
" if (auto iter = m.find(\"x\"); iter != m.end()) {\n"
" return iter->second;\n"
" }\n"
" return 0;\n"
"}\n");
ASSERT_EQUALS("", errout.str());
void iterator26() { // #9176
check(
"#include <map>\n"
"int main()\n"
"{"
" std::map<char const*, int> m{ {\"a\", 1} };\n"
" if (auto iter = m.find(\"x\"); iter != m.end()) {\n"
" return iter->second;\n"
" }\n"
" return 0;\n"
"}\n");
ASSERT_EQUALS("", errout.str());
}
void iteratorExpression() {