[PATCH] [clang-tidy] Force braces around leaf 'else if' for consistency.

Alexander Kornienko alexfh at google.com
Thu Jun 4 09:21:16 PDT 2015


Thanks for the fix! LG

BTW, it seems wrong that we don't allow if-else chains without braces, when every body fits on one line.

  if (...) ...;
  else if (....) ...;
  ...

or

  if (...)
    ...;
  else if (....)
    ...;
  ...

depending on the style and ShortStatementLines setting.


http://reviews.llvm.org/D10245

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list