diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 3b30ee9b44e75..7ebde3c174d26 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -4050,35 +4050,35 @@ struct FormatStyle { /// true: false: /// if (...) {} vs. if(...) {} /// \endcode - bool AfterControlStatements = false; + bool AfterControlStatements; /// If ``true``, put space between foreach macros and opening parentheses. /// \code /// true: false: /// FOREACH (...) vs. FOREACH(...) /// /// \endcode - bool AfterForeachMacros = false; + bool AfterForeachMacros; /// If ``true``, put a space between function declaration name and opening /// parentheses. /// \code /// true: false: /// void f (); vs. void f(); /// \endcode - bool AfterFunctionDeclarationName = false; + bool AfterFunctionDeclarationName; /// If ``true``, put a space between function definition name and opening /// parentheses. /// \code /// true: false: /// void f () {} vs. void f() {} /// \endcode - bool AfterFunctionDefinitionName = false; + bool AfterFunctionDefinitionName; /// If ``true``, put space between if macros and opening parentheses. /// \code /// true: false: /// IF (...) vs. IF(...) /// /// \endcode - bool AfterIfMacros = false; + bool AfterIfMacros; /// If ``true``, put a space between operator overloading and opening /// parentheses. /// \code @@ -4086,7 +4086,7 @@ struct FormatStyle { /// void operator++ (int a); vs. void operator++(int a); /// object.operator++ (10); object.operator++(10); /// \endcode - bool AfterOverloadedOperator = false; + bool AfterOverloadedOperator; /// If ``true``, put space between requires keyword in a requires clause and /// opening parentheses, if there is one. /// \code @@ -4095,7 +4095,7 @@ struct FormatStyle { /// requires (A && B) requires(A && B) /// ... ... /// \endcode - bool AfterRequiresInClause = false; + bool AfterRequiresInClause; /// If ``true``, put space between requires keyword in a requires expression /// and opening parentheses. /// \code @@ -4105,7 +4105,7 @@ struct FormatStyle { /// ... ... /// } } /// \endcode - bool AfterRequiresInExpression = false; + bool AfterRequiresInExpression; /// If ``true``, put a space before opening parentheses only if the /// parentheses are not empty. /// \code @@ -4113,9 +4113,14 @@ struct FormatStyle { /// void f (int a); vs. void f(); /// f (a); f(); /// \endcode - bool BeforeNonEmptyParentheses = false; + bool BeforeNonEmptyParentheses; - SpaceBeforeParensCustom() = default; + SpaceBeforeParensCustom() + : AfterControlStatements(false), AfterForeachMacros(false), + AfterFunctionDeclarationName(false), + AfterFunctionDefinitionName(false), AfterIfMacros(false), + AfterOverloadedOperator(false), AfterRequiresInClause(false), + AfterRequiresInExpression(false), BeforeNonEmptyParentheses(false) {} bool operator==(const SpaceBeforeParensCustom &Other) const { return AfterControlStatements == Other.AfterControlStatements &&