[PATCH] clang-format: Support @synchronized.
strager
strager.nds at gmail.com
Wed Jun 10 16:07:51 PDT 2015
Hi djasper,
Format @synchronized properly for the Attach brace style by
recognizing @synchronized similar to 'while'. Doing this
triggers the SpaceBeforeParens rule, so introduce
SpaceBeforeObjCSynchronizedParens to permit the old style.
(SpaceBeforeObjCSynchronizedParens: false, the default,
means use the old behaviour.)
http://reviews.llvm.org/D10371
Files:
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTest.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10371.27472.patch
Type: text/x-patch
Size: 5119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150610/259ed557/attachment.bin>
More information about the cfe-commits
mailing list