Added an option to clang-format 'SpaceAfterCStyleCast' that permits to force a space after closing parenthesis of a C-style cast. Defaults to false to preserve old behaviour.
Fixes LLVM bug 19982.
Before:
(int)i;
After:
(int) i;
Paths
| Differential D5150
[clang-format] Add option SpaceAfterCStyleCast ClosedPublic Authored by curdeius on Sep 2 2014, 4:40 AM.
Details
Diff Detail Event Timelinecurdeius updated this object. This revision is now accepted and ready to land.Sep 2 2014, 6:59 AM
Revision Contents
Diff 13160 docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp
|