Debian Codegraph @

docpages/example_code/coding_style_standards/curly_braces.cpp

raw
1 void foo() {
2 if (a == b) {
3 c();
4 } else {
5 d();
6 }
7
8 while (true) {
9 // ...
10 }
11
12 switch (a) {
13 case 1:
14 c();
15 break;
16 case 2:
17 d();
18 break;
19 }
20 }