[PATCH] D110833: [clang-format] Add ControlStatementsAndFunctionDefinitionsExceptControlMacros option to SpaceBeforeParens

Christian Rayroud via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 30 07:29:32 PDT 2021


crayroud created this revision.
crayroud added reviewers: aaron.ballman, rsmith.
crayroud added projects: clang, clang-format.
crayroud requested review of this revision.

For some projects the coding style defined requires to have a space before opening parentheses for function definitions.

This revision adds the ControlStatementsAndFunctionDefinitionsExceptControlMacros option to SpaceBeforeParens which act as SBPO_ControlStatementsExceptControlMacros but also put a space before opening parentheses for function definitions.

The goal of this commit is too add the support of clang-format to these projects.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110833

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110833.376200.patch
Type: text/x-patch
Size: 7945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210930/30c73f19/attachment.bin>


More information about the cfe-commits mailing list