clang 22.0.0git
|
Precise control over the spacing in parentheses. More...
#include "clang/Format/Format.h"
Public Member Functions | |
SpacesInParensCustom () | |
SpacesInParensCustom (bool ExceptDoubleParentheses, bool InConditionalStatements, bool InCStyleCasts, bool InEmptyParentheses, bool Other) | |
bool | operator== (const SpacesInParensCustom &R) const |
bool | operator!= (const SpacesInParensCustom &R) const |
Public Attributes | |
bool | ExceptDoubleParentheses |
Override any of the following options to prevent addition of space when both opening and closing parentheses use multiple parentheses. | |
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 |
Insert a space in empty parentheses, i.e. (). | |
bool | Other |
Put a space in parentheses not covered by preceding options. |
Precise control over the spacing in parentheses.
|
inline |
Definition at line 5054 of file Format.h.
References ExceptDoubleParentheses, false, InConditionalStatements, InCStyleCasts, InEmptyParentheses, and Other.
Referenced by operator!=(), and operator==().
|
inline |
Definition at line 5058 of file Format.h.
References ExceptDoubleParentheses, InConditionalStatements, InCStyleCasts, InEmptyParentheses, and Other.
|
inline |
Definition at line 5072 of file Format.h.
References SpacesInParensCustom().
|
inline |
Definition at line 5066 of file Format.h.
References ExceptDoubleParentheses, InConditionalStatements, InCStyleCasts, InEmptyParentheses, Other, and SpacesInParensCustom().
bool clang::SpacesInParensCustom::ExceptDoubleParentheses |
Override any of the following options to prevent addition of space when both opening and closing parentheses use multiple parentheses.
false: Uses the applicable option.
Definition at line 5020 of file Format.h.
Referenced by operator==(), SpacesInParensCustom(), and SpacesInParensCustom().
bool clang::SpacesInParensCustom::InConditionalStatements |
Put a space in parentheses only inside conditional statements (for/if/while/switch...).
Definition at line 5028 of file Format.h.
Referenced by operator==(), SpacesInParensCustom(), and SpacesInParensCustom().
bool clang::SpacesInParensCustom::InCStyleCasts |
Put a space in C style casts.
Definition at line 5035 of file Format.h.
Referenced by operator==(), SpacesInParensCustom(), and SpacesInParensCustom().
bool clang::SpacesInParensCustom::InEmptyParentheses |
Insert a space in empty parentheses, i.e. ().
Definition at line 5046 of file Format.h.
Referenced by operator==(), SpacesInParensCustom(), and SpacesInParensCustom().
bool clang::SpacesInParensCustom::Other |
Put a space in parentheses not covered by preceding options.
Definition at line 5052 of file Format.h.
Referenced by operator==(), SpacesInParensCustom(), and SpacesInParensCustom().