]> granicus.if.org Git - clang/commit
clang-format: Add option to allow short blocks on a single line.
authorDaniel Jasper <djasper@google.com>
Wed, 14 May 2014 09:33:35 +0000 (09:33 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 14 May 2014 09:33:35 +0000 (09:33 +0000)
commit65e68675f101657b69a404432c2116bc9cc23b22
treed195a811e39bdf8b7d16872e7b9a6358df471406
parent0c715604f457545f279c4602d895520e082c3f0a
clang-format: Add option to allow short blocks on a single line.

With AllowShortBlocksOnASingleLine, clang-format allows:
  if (a) { return; }

Based on patch by Gonzalo BG, thank you!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208765 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
unittests/Format/FormatTest.cpp