clang-format: Add an option 'SpaceAfterCStyleCast'.
authorDaniel Jasper <djasper@google.com>
Wed, 3 Sep 2014 07:37:29 +0000 (07:37 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 3 Sep 2014 07:37:29 +0000 (07:37 +0000)
commit58906676e5075e2f416ca69cc38afdc88c7d0bd6
treef0a4f015e72af6f1c2b3c9554be46619c02e6535
parent8291bead636f3f3f032bd5dcee2d7f9dfd546232
clang-format: Add an option 'SpaceAfterCStyleCast'.

This permits to add a space after closing parenthesis of a C-style cast.
Defaults to false to preserve old behavior.

Fixes llvm.org/PR19982.

Before:
  (int)i;

After:
  (int) i;

Patch by Marek Kurdej.

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