[cfe-dev] Can clang-format require braces for if, else, while, for, and do?

Hal Canary halcanary at google.com
Fri May 16 08:50:52 PDT 2014


Is there a way for clang-format to convert code in the form:

    if (a)
        return 0;
    if (b) return 0;

into this:

    if (a) {
        return 0;
    }
    if (b) { return 0; }

If not, how should I request this feature?



More information about the cfe-dev mailing list