astyle formatting
This commit is contained in:
parent
7a51fc8232
commit
869eac5670
|
@ -488,20 +488,20 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
void simple15() { // #8942
|
void simple15() { // #8942
|
||||||
check("class A\n"
|
check("class A\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
"public:\n"
|
"public:\n"
|
||||||
" int member;\n"
|
" int member;\n"
|
||||||
"};\n"
|
"};\n"
|
||||||
"class B\n"
|
"class B\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
"public:\n"
|
"public:\n"
|
||||||
" B(const decltype(A::member)& x, const decltype(A::member)& y) : x(x), y(y) {}\n"
|
" B(const decltype(A::member)& x, const decltype(A::member)& y) : x(x), y(y) {}\n"
|
||||||
"private:\n"
|
"private:\n"
|
||||||
" const decltype(A::member)& x;\n"
|
" const decltype(A::member)& x;\n"
|
||||||
" const decltype(A::member)& y;\n"
|
" const decltype(A::member)& y;\n"
|
||||||
"};\n");
|
"};\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void noConstructor1() {
|
void noConstructor1() {
|
||||||
|
|
|
@ -1354,18 +1354,18 @@ private:
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void iterator26() { // #9176
|
void iterator26() { // #9176
|
||||||
check(
|
check(
|
||||||
"#include <map>\n"
|
"#include <map>\n"
|
||||||
"int main()\n"
|
"int main()\n"
|
||||||
"{"
|
"{"
|
||||||
" std::map<char const*, int> m{ {\"a\", 1} };\n"
|
" std::map<char const*, int> m{ {\"a\", 1} };\n"
|
||||||
" if (auto iter = m.find(\"x\"); iter != m.end()) {\n"
|
" if (auto iter = m.find(\"x\"); iter != m.end()) {\n"
|
||||||
" return iter->second;\n"
|
" return iter->second;\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
" return 0;\n"
|
" return 0;\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void iteratorExpression() {
|
void iteratorExpression() {
|
||||||
|
|
Loading…
Reference in New Issue