On the attached source code (from https://github.com/LegalizeAdulthood/iterated-dynamics), run google-readability-braces-around-statements on hc/helpcom.cpp. You get double braces everywhere: diff --git a/hc/helpcom.cpp b/hc/helpcom.cpp index db60814..960819a 100644 --- a/hc/helpcom.cpp +++ b/hc/helpcom.cpp @@ -36,8 +36,10 @@ void setint(char *ptr, int n) bool is_hyphen(char const *ptr) /* true if ptr points to a real hyphen */ { /* checkes for "--" and " -" */ - if (*ptr != '-') + if (*ptr != '-') { { return false; /* that was easy! */ +} +} --ptr; @@ -51,10 +53,10 @@ int _find_token_length(char const *curr, unsigned len, int *size, int *width) int _width = 0; int tok; - if (len == 0) + if (len == 0) { { tok = TOK_DONE; - else + } } else { switch (*curr) { etc.
*** This bug has been marked as a duplicate of bug 26181 ***