HomePhabricator

clang-format: Support labels in brace-less ifs.

Authored by djasper on Apr 6 2016, 8:02 AM.

Description

clang-format: Support labels in brace-less ifs.

While I am not personally convinced about the usefulness of this
construct, we should break it.

Before:

if (a) label:
f();

After:

if (a)
label:
  f();

llvm-svn: 265545

Details

Committed
djasperApr 6 2016, 8:02 AM
Parents
rG0dbd37543c5f: [clang-tidy] Assertion fix in misc-misplaced-widening-cast check.
Branches
Unknown
Tags
Unknown