[clang] [clang-format] Add SpacesInParensOption for filtering repeated parens (PR #77522)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 3 23:26:36 PDT 2024
================
@@ -4650,10 +4650,23 @@ struct FormatStyle {
/// # Should be declared this way:
/// SpacesInParens: Custom
/// SpacesInParensOptions:
+ /// ExceptDoubleParentheses: false
/// InConditionalStatements: true
/// Other: true
/// \endcode
struct SpacesInParensCustom {
+ /// Override any of the following options to prevent addition of space
+ /// between the first two parentheses in situations where a pair of
+ /// parentheses have been used.
----------------
owenca wrote:
This seems unclear or imprecise.
https://github.com/llvm/llvm-project/pull/77522
More information about the cfe-commits
mailing list