]> granicus.if.org Git - clang/commit
clang-format: Additional options for spaces around parentheses.
authorDaniel Jasper <djasper@google.com>
Tue, 20 Aug 2013 12:36:34 +0000 (12:36 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 20 Aug 2013 12:36:34 +0000 (12:36 +0000)
commit7df56bfcf7186f73c99564cd54216f07a8db7352
tree1e29b832e907901a1ce38d6a5b9de2d260e82664
parent73f3827bae29e06e58c446ea95b7e1d5859dd085
clang-format: Additional options for spaces around parentheses.

This patch adds four new options to control:
- Spaces after control keyworks (if(..) vs if (..))
- Spaces in empty parentheses (f( ) vs f())
- Spaces in c-style casts (( int )1.0 vs (int)1.0)
- Spaces in other parentheses (f(a) vs f( a ))

Patch by Joe Hermaszewski. Thank you for working on this!

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