summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/30312-return_init_list.cpp
blob: ef91c52862efd644ebb0db5ac57ceda74a05a1c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
inline static std::tuple<bool, std::string> foo(void) {
// should remain a one liner
	return{ true, ""s };
}
inline static std::tuple<bool, std::string, std::string> foo(void) {
	if (condition) {
// should remain a one liner
		return{ true, ""s, ""s };
	}
// should remain a one liner
	return{ false, ""s, ""s };
}
inline static std::tuple<bool, std::string> foo(void) {
// should indent one level
	return{
	        true, ""s
	};
}
inline static std::tuple<bool, std::string> foo(void) {
// should indent one level on new line
	return
	        { true, ""s };
}
inline static std::tuple<bool, std::string> foo(void) {
// should indent one level for braces and another level for values
	return
	        {
	                true, ""s
		};
}