search for: do_a_thing

Displaying 3 results from an estimated 3 matches for "do_a_thing".

2020 Jun 23
3
Codifying our Brace rules-
On Tue, 23 Jun 2020 at 03:30, Mehdi AMINI via llvm-dev <llvm-dev at lists.llvm.org> wrote: > On Mon, Jun 22, 2020 at 2:38 PM Steve Scalpone via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Me? I would modify the first sentence from: >> >> > When writing the body of an if, else, or loop statement, >> > omit the braces to avoid unnecessary
2020 Jun 23
2
Codifying our Brace rules-
...iously for IDEs and > not confusing clang-format into "fixing incorrect indentation" when > the problem is actually missing braces. > > (2) always use braces except for a one-line block. This means > for (blah) // BAD > if (yadayada) > do_a_thing; > for (blah) { // GOOD > if (yadayada) > do_a_thing; > } > > (3) always use braces except for a one-line statement, applied > recursively. This means > for (blah) // GOOD > for (whatever) > if (yada...
2020 Jun 23
3
Codifying our Brace rules-
...reviously for IDEs and > not confusing clang-format into "fixing incorrect indentation" when > the problem is actually missing braces. > > (2) always use braces except for a one-line block. This means > for (blah) // BAD > if (yadayada) > do_a_thing; > for (blah) { // GOOD > if (yadayada) > do_a_thing; > } > > (3) always use braces except for a one-line statement, applied > recursively. This means > for (blah) // GOOD > for (whatever) > if (yadayada) &...