From: Alexander Kornienko Date: Fri, 13 Sep 2013 12:54:40 +0000 (+0000) Subject: Added missing field comparisons to the FormatStyle::operator== X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb2dfc7247a66e672548ad645a0ba2c369635384;p=clang Added missing field comparisons to the FormatStyle::operator== git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190688 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 6c6575f0b7..e5785b8779 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -232,12 +232,16 @@ struct FormatStyle { R.AllowAllParametersOfDeclarationOnNextLine && AllowShortIfStatementsOnASingleLine == R.AllowShortIfStatementsOnASingleLine && + AllowShortLoopsOnASingleLine == R.AllowShortLoopsOnASingleLine && AlwaysBreakTemplateDeclarations == R.AlwaysBreakTemplateDeclarations && AlwaysBreakBeforeMultilineStrings == R.AlwaysBreakBeforeMultilineStrings && BinPackParameters == R.BinPackParameters && + BreakBeforeBinaryOperators == R.BreakBeforeBinaryOperators && BreakBeforeBraces == R.BreakBeforeBraces && + BreakConstructorInitializersBeforeComma == + R.BreakConstructorInitializersBeforeComma && ColumnLimit == R.ColumnLimit && ConstructorInitializerAllOnOneLineOrOnePerLine == R.ConstructorInitializerAllOnOneLineOrOnePerLine && @@ -245,6 +249,8 @@ struct FormatStyle { ExperimentalAutoDetectBinPacking == R.ExperimentalAutoDetectBinPacking && IndentCaseLabels == R.IndentCaseLabels && + IndentFunctionDeclarationAfterType == + R.IndentFunctionDeclarationAfterType && IndentWidth == R.IndentWidth && MaxEmptyLinesToKeep == R.MaxEmptyLinesToKeep && NamespaceIndentation == R.NamespaceIndentation && @@ -257,13 +263,10 @@ struct FormatStyle { PointerBindsToType == R.PointerBindsToType && SpacesBeforeTrailingComments == R.SpacesBeforeTrailingComments && Cpp11BracedListStyle == R.Cpp11BracedListStyle && - Standard == R.Standard && UseTab == R.UseTab && - IndentFunctionDeclarationAfterType == - R.IndentFunctionDeclarationAfterType && - SpacesInParentheses == R.SpacesInParentheses && + Standard == R.Standard && TabWidth == R.TabWidth && + UseTab == R.UseTab && SpacesInParentheses == R.SpacesInParentheses && SpaceInEmptyParentheses == R.SpaceInEmptyParentheses && - SpacesInCStyleCastParentheses == - R.SpacesInCStyleCastParentheses && + SpacesInCStyleCastParentheses == R.SpacesInCStyleCastParentheses && SpaceAfterControlStatementKeyword == R.SpaceAfterControlStatementKeyword; }