[PATCH] [clang-tidy] Add check misc-braces-around-statements.
Marek Kurdej
curdeius at gmail.com
Tue Sep 30 04:36:20 PDT 2014
Alex, I have applied a heuristics as you suggested.
I have done a minor change, for cases 2. (multi-line comments or non-comment token) and 3. (trailing comment), I put "\n}" before found end of line. I do not separate the two cases by adding or not a space after '}'. I think that in any case, a run of clang-format is needed here. Tell me if I'm wrong.
http://reviews.llvm.org/D5395
More information about the cfe-commits
mailing list