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
};
}
|