clang 20.0.0git
|
Precise control over the spacing before parentheses. More...
#include "clang/Format/Format.h"
Public Member Functions | |
SpaceBeforeParensCustom () | |
bool | operator== (const SpaceBeforeParensCustom &Other) const |
Public Attributes | |
bool | AfterControlStatements |
If true , put space between control statement keywords (for/if/while...) and opening parentheses. | |
bool | AfterForeachMacros |
If true , put space between foreach macros and opening parentheses. | |
bool | AfterFunctionDeclarationName |
If true , put a space between function declaration name and opening parentheses. | |
bool | AfterFunctionDefinitionName |
If true , put a space between function definition name and opening parentheses. | |
bool | AfterIfMacros |
If true , put space between if macros and opening parentheses. | |
bool | AfterOverloadedOperator |
If true , put a space between operator overloading and opening parentheses. | |
bool | AfterPlacementOperator |
If true , put a space between operator new /delete and opening parenthesis. | |
bool | AfterRequiresInClause |
If true , put space between requires keyword in a requires clause and opening parentheses, if there is one. | |
bool | AfterRequiresInExpression |
If true , put space between requires keyword in a requires expression and opening parentheses. | |
bool | BeforeNonEmptyParentheses |
If true , put a space before opening parentheses only if the parentheses are not empty. | |
Precise control over the spacing before parentheses.
|
inline |
|
inline |
Definition at line 4534 of file Format.h.
References AfterControlStatements, AfterForeachMacros, AfterFunctionDeclarationName, AfterFunctionDefinitionName, AfterIfMacros, AfterOverloadedOperator, AfterPlacementOperator, AfterRequiresInClause, AfterRequiresInExpression, BeforeNonEmptyParentheses, and clang::format::Other.
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterControlStatements |
If true
, put space between control statement keywords (for/if/while...) and opening parentheses.
Definition at line 4453 of file Format.h.
Referenced by clang::format::expandPresetsSpaceBeforeParens(), clang::format::getLLVMStyle(), and operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterForeachMacros |
If true
, put space between foreach macros and opening parentheses.
Definition at line 4460 of file Format.h.
Referenced by clang::format::expandPresetsSpaceBeforeParens(), clang::format::getLLVMStyle(), and operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterFunctionDeclarationName |
If true
, put a space between function declaration name and opening parentheses.
Definition at line 4467 of file Format.h.
Referenced by operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterFunctionDefinitionName |
If true
, put a space between function definition name and opening parentheses.
Definition at line 4474 of file Format.h.
Referenced by operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterIfMacros |
If true
, put space between if macros and opening parentheses.
Definition at line 4481 of file Format.h.
Referenced by clang::format::expandPresetsSpaceBeforeParens(), clang::format::getLLVMStyle(), and operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterOverloadedOperator |
If true
, put a space between operator overloading and opening parentheses.
Definition at line 4489 of file Format.h.
Referenced by operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterPlacementOperator |
If true
, put a space between operator new
/delete
and opening parenthesis.
Definition at line 4497 of file Format.h.
Referenced by clang::format::expandPresetsSpaceBeforeParens(), and operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterRequiresInClause |
If true
, put space between requires keyword in a requires clause and opening parentheses, if there is one.
Definition at line 4506 of file Format.h.
Referenced by operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::AfterRequiresInExpression |
If true
, put space between requires keyword in a requires expression and opening parentheses.
Definition at line 4516 of file Format.h.
Referenced by operator==().
bool clang::format::FormatStyle::SpaceBeforeParensCustom::BeforeNonEmptyParentheses |
If true
, put a space before opening parentheses only if the parentheses are not empty.
Definition at line 4524 of file Format.h.
Referenced by clang::format::expandPresetsSpaceBeforeParens(), and operator==().