@@ -4694,6 +4694,13 @@ struct FormatStyle {
46944694 // / <conditional-body> <conditional-body>
46954695 // / \endcode
46964696 bool AfterIfMacros;
4697+ // / If ``true``, put a space between alternative operator ``not`` and the
4698+ // / opening parenthesis.
4699+ // / \code
4700+ // / true: false:
4701+ // / return not (a || b); vs. return not(a || b);
4702+ // / \endcode
4703+ bool AfterNot;
46974704 // / If ``true``, put a space between operator overloading and opening
46984705 // / parentheses.
46994706 // / \code
@@ -4742,9 +4749,9 @@ struct FormatStyle {
47424749 : AfterControlStatements(false ), AfterForeachMacros(false ),
47434750 AfterFunctionDeclarationName (false ),
47444751 AfterFunctionDefinitionName(false ), AfterIfMacros(false ),
4745- AfterOverloadedOperator (false ), AfterPlacementOperator( true ),
4746- AfterRequiresInClause( false ), AfterRequiresInExpression (false ),
4747- BeforeNonEmptyParentheses(false ) {}
4752+ AfterNot (false ), AfterOverloadedOperator( false ),
4753+ AfterPlacementOperator( true ), AfterRequiresInClause (false ),
4754+ AfterRequiresInExpression( false ), BeforeNonEmptyParentheses(false ) {}
47484755
47494756 bool operator ==(const SpaceBeforeParensCustom &Other) const {
47504757 return AfterControlStatements == Other.AfterControlStatements &&
@@ -4753,6 +4760,7 @@ struct FormatStyle {
47534760 Other.AfterFunctionDeclarationName &&
47544761 AfterFunctionDefinitionName == Other.AfterFunctionDefinitionName &&
47554762 AfterIfMacros == Other.AfterIfMacros &&
4763+ AfterNot == Other.AfterNot &&
47564764 AfterOverloadedOperator == Other.AfterOverloadedOperator &&
47574765 AfterPlacementOperator == Other.AfterPlacementOperator &&
47584766 AfterRequiresInClause == Other.AfterRequiresInClause &&
0 commit comments