[PATCH] D25171: clang-format: Add two new formatting options

Robin Sommer via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 2 18:31:46 PDT 2016


rsmmr created this revision.
rsmmr added reviewers: djasper, lodato.
rsmmr added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

This patch adds two new options, feedback welcome.

SpacesAroundConditions (bool)

  If true, spaces will be inserted around if/for/while conditions.

SpacesAfterNot (bool)

  If true, spaces will be inserted after '!'.


https://reviews.llvm.org/D25171

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25171.73229.patch
Type: text/x-patch
Size: 6005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161003/4b93a770/attachment.bin>


More information about the cfe-commits mailing list