Add an option to SpaceBeforeParens,
ControlStatementsExceptObjC, which behaves as
ControlStatements in all cases except after '@synchronized'
(where it behaves as Never).
Depends on D10371.
Paths
| Differential D10760
clang-format: Allow space after 'if' but not '@synchronized'. AbandonedPublic Authored by strager on Jun 25 2015, 11:36 PM.
Details
Diff Detail Event TimelineComment Actions As said on http://reviews.llvm.org/D10371#195408 : Does anyone ever want a space after @synchronized? Do we need an option for this? As far as I understand strager, he doesn't want a space there either and the current behavior is to not add a space between ObjC @words. Comment Actions I don't know as I don't use ObjC and am not familiar with the style guides. However, if no one currently desires the space, I am strongly against introducing the option. Options have costs for a variety of reasons.
Revision Contents
Diff 28535 docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp
|