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?
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?
clang-format doesn't do textual insertions/removals, only whitespace
formatting (except in some particular cases, like comment line
wrapping)
Features like this will go into the clang-tidy tool.