[PATCH] clang-format: Allow space after 'if' but not '@synchronized'.

strager strager.nds at gmail.com
Thu Jun 25 23:36:31 PDT 2015


Hi djasper,

Add an option to SpaceBeforeParens,
ControlStatementsExceptObjC, which behaves as
ControlStatements in all cases except after '@synchronized'
(where it behaves as Never).

Depends on D10371.

http://reviews.llvm.org/D10760

Files:
  docs/ClangFormatStyleOptions.rst
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  lib/Format/TokenAnnotator.cpp
  unittests/Format/FormatTest.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10760.28535.patch
Type: text/x-patch
Size: 6596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150626/785c08fe/attachment.bin>


More information about the cfe-commits mailing list