summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/return_init_list.cpp
blob: f58dfee5c9db844c26299de5ca983dabb7e0e176 (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
};
}