clang 18.0.0git
|
Precise control over the spacing in parentheses. More...
#include "clang/Format/Format.h"
Public Member Functions | |
SpacesInParensCustom () | |
SpacesInParensCustom (bool InConditionalStatements, bool InCStyleCasts, bool InEmptyParentheses, bool Other) | |
bool | operator== (const SpacesInParensCustom &R) const |
bool | operator!= (const SpacesInParensCustom &R) const |
Public Attributes | |
bool | InConditionalStatements |
Put a space in parentheses only inside conditional statements (for/if/while/switch... ). | |
bool | InCStyleCasts |
Put a space in C style casts. | |
bool | InEmptyParentheses |
Put a space in parentheses only if the parentheses are empty i.e. | |
bool | Other |
Put a space in parentheses not covered by preceding options. | |
Precise control over the spacing in parentheses.
|
inline |
|
inline |
|
inline |
Definition at line 4560 of file Format.h.
References InConditionalStatements, InCStyleCasts, InEmptyParentheses, and Other.
bool clang::format::FormatStyle::SpacesInParensCustom::InConditionalStatements |
Put a space in parentheses only inside conditional statements (for/if/while/switch...
).
Definition at line 4525 of file Format.h.
Referenced by llvm::yaml::MappingTraits< FormatStyle >::mapping(), and operator==().
bool clang::format::FormatStyle::SpacesInParensCustom::InCStyleCasts |
Put a space in C style casts.
Definition at line 4531 of file Format.h.
Referenced by llvm::yaml::MappingTraits< FormatStyle >::mapping(), and operator==().
bool clang::format::FormatStyle::SpacesInParensCustom::InEmptyParentheses |
Put a space in parentheses only if the parentheses are empty i.e.
'()'
Definition at line 4542 of file Format.h.
Referenced by llvm::yaml::MappingTraits< FormatStyle >::mapping(), and operator==().
bool clang::format::FormatStyle::SpacesInParensCustom::Other |
Put a space in parentheses not covered by preceding options.
Definition at line 4548 of file Format.h.
Referenced by clang::format::BreakableStringLiteralUsingOperators::BreakableStringLiteralUsingOperators(), llvm::yaml::MappingTraits< FormatStyle >::mapping(), and operator==().