HomePhabricator

[clang-format] Refactor SpaceBeforeParens to add options

Authored by crayroud on Nov 7 2021, 11:56 AM.

Description

[clang-format] Refactor SpaceBeforeParens to add options

The coding style of some projects requires to have more control on space
before opening parentheses.
The goal is to add the support of clang-format to more projects.
For example adding a space only for function definitions or
declarations.
This revision adds SpaceBeforeParensOptions to configure each option
independently from one another.

Differentiel Revision: https://reviews.llvm.org/D110833

Details

Committed
HazardyKnusperkeksNov 9 2021, 12:51 PM
Differential Revision
D110833: [clang-format] Refactor SpaceBeforeParens to add options
Parents
rG66336056911e: [clang-format] Address fixme
Branches
Unknown
Tags
Unknown