astyle formatting
This commit is contained in:
parent
7a51fc8232
commit
869eac5670
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue