@@ -4704,6 +4704,13 @@ struct FormatStyle {
47044704 // / <conditional-body> <conditional-body>
47054705 // / \endcode
47064706 bool AfterIfMacros;
4707+ // / If ``true``, put a space between alternative operator ``not`` and the
4708+ // / opening parenthesis.
4709+ // / \code
4710+ // / true: false:
4711+ // / return not (a || b); vs. return not(a || b);
4712+ // / \endcode
4713+ bool AfterNot;
47074714 // / If ``true``, put a space between operator overloading and opening
47084715 // / parentheses.
47094716 // / \code
@@ -4752,9 +4759,9 @@ struct FormatStyle {
47524759 : AfterControlStatements(false ), AfterForeachMacros(false ),
47534760 AfterFunctionDeclarationName (false ),
47544761 AfterFunctionDefinitionName(false ), AfterIfMacros(false ),
4755- AfterOverloadedOperator (false ), AfterPlacementOperator( true ),
4756- AfterRequiresInClause( false ), AfterRequiresInExpression (false ),
4757- BeforeNonEmptyParentheses(false ) {}
4762+ AfterNot (false ), AfterOverloadedOperator( false ),
4763+ AfterPlacementOperator( true ), AfterRequiresInClause (false ),
4764+ AfterRequiresInExpression( false ), BeforeNonEmptyParentheses(false ) {}
47584765
47594766 bool operator ==(const SpaceBeforeParensCustom &Other) const {
47604767 return AfterControlStatements == Other.AfterControlStatements &&
@@ -4763,6 +4770,7 @@ struct FormatStyle {
47634770 Other.AfterFunctionDeclarationName &&
47644771 AfterFunctionDefinitionName == Other.AfterFunctionDefinitionName &&
47654772 AfterIfMacros == Other.AfterIfMacros &&
4773+ AfterNot == Other.AfterNot &&
47664774 AfterOverloadedOperator == Other.AfterOverloadedOperator &&
47674775 AfterPlacementOperator == Other.AfterPlacementOperator &&
47684776 AfterRequiresInClause == Other.AfterRequiresInClause &&
0 commit comments