reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Format/Format.cpp
  335     IO.mapOptional("Language", Style.Language);
  344         if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) &&
  345             Style == PredefinedStyle) {
  354         FormatStyle::LanguageKind OldLanguage = Style.Language;
  357         if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) {
  361         Style.Language = OldLanguage;
  367       IO.mapOptional("AlignEscapedNewlinesLeft", Style.AlignEscapedNewlines);
  368       IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment);
  370                      Style.IndentWrappedFunctionNames);
  371       IO.mapOptional("PointerBindsToType", Style.PointerAlignment);
  373                      Style.SpaceBeforeParens);
  376     IO.mapOptional("AccessModifierOffset", Style.AccessModifierOffset);
  377     IO.mapOptional("AlignAfterOpenBracket", Style.AlignAfterOpenBracket);
  378     IO.mapOptional("AlignConsecutiveMacros", Style.AlignConsecutiveMacros);
  380                    Style.AlignConsecutiveAssignments);
  382                    Style.AlignConsecutiveDeclarations);
  383     IO.mapOptional("AlignEscapedNewlines", Style.AlignEscapedNewlines);
  384     IO.mapOptional("AlignOperands", Style.AlignOperands);
  385     IO.mapOptional("AlignTrailingComments", Style.AlignTrailingComments);
  387                    Style.AllowAllArgumentsOnNextLine);
  389                    Style.AllowAllConstructorInitializersOnNextLine);
  391                    Style.AllowAllParametersOfDeclarationOnNextLine);
  393                    Style.AllowShortBlocksOnASingleLine);
  395                    Style.AllowShortCaseLabelsOnASingleLine);
  397                    Style.AllowShortFunctionsOnASingleLine);
  399                    Style.AllowShortLambdasOnASingleLine);
  401                    Style.AllowShortIfStatementsOnASingleLine);
  403                    Style.AllowShortLoopsOnASingleLine);
  405                    Style.AlwaysBreakAfterDefinitionReturnType);
  407                    Style.AlwaysBreakAfterReturnType);
  412     if (Style.AlwaysBreakAfterDefinitionReturnType != FormatStyle::DRTBS_None &&
  413         Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None) {
  414       if (Style.AlwaysBreakAfterDefinitionReturnType == FormatStyle::DRTBS_All)
  415         Style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_AllDefinitions;
  416       else if (Style.AlwaysBreakAfterDefinitionReturnType ==
  418         Style.AlwaysBreakAfterReturnType =
  423                    Style.AlwaysBreakBeforeMultilineStrings);
  425                    Style.AlwaysBreakTemplateDeclarations);
  426     IO.mapOptional("BinPackArguments", Style.BinPackArguments);
  427     IO.mapOptional("BinPackParameters", Style.BinPackParameters);
  428     IO.mapOptional("BraceWrapping", Style.BraceWrapping);
  430                    Style.BreakBeforeBinaryOperators);
  431     IO.mapOptional("BreakBeforeBraces", Style.BreakBeforeBraces);
  435     IO.mapOptional("BreakInheritanceList", Style.BreakInheritanceList);
  440         Style.BreakInheritanceList == FormatStyle::BILS_BeforeColon)
  441       Style.BreakInheritanceList = FormatStyle::BILS_BeforeComma;
  444                    Style.BreakBeforeTernaryOperators);
  450                    Style.BreakConstructorInitializers);
  455         Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeColon)
  456       Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeComma;
  459                    Style.BreakAfterJavaFieldAnnotations);
  460     IO.mapOptional("BreakStringLiterals", Style.BreakStringLiterals);
  461     IO.mapOptional("ColumnLimit", Style.ColumnLimit);
  462     IO.mapOptional("CommentPragmas", Style.CommentPragmas);
  463     IO.mapOptional("CompactNamespaces", Style.CompactNamespaces);
  465                    Style.ConstructorInitializerAllOnOneLineOrOnePerLine);
  467                    Style.ConstructorInitializerIndentWidth);
  468     IO.mapOptional("ContinuationIndentWidth", Style.ContinuationIndentWidth);
  469     IO.mapOptional("Cpp11BracedListStyle", Style.Cpp11BracedListStyle);
  470     IO.mapOptional("DerivePointerAlignment", Style.DerivePointerAlignment);
  471     IO.mapOptional("DisableFormat", Style.DisableFormat);
  473                    Style.ExperimentalAutoDetectBinPacking);
  474     IO.mapOptional("FixNamespaceComments", Style.FixNamespaceComments);
  475     IO.mapOptional("ForEachMacros", Style.ForEachMacros);
  476     IO.mapOptional("IncludeBlocks", Style.IncludeStyle.IncludeBlocks);
  477     IO.mapOptional("IncludeCategories", Style.IncludeStyle.IncludeCategories);
  478     IO.mapOptional("IncludeIsMainRegex", Style.IncludeStyle.IncludeIsMainRegex);
  479     IO.mapOptional("IndentCaseLabels", Style.IndentCaseLabels);
  480     IO.mapOptional("IndentGotoLabels", Style.IndentGotoLabels);
  481     IO.mapOptional("IndentPPDirectives", Style.IndentPPDirectives);
  482     IO.mapOptional("IndentWidth", Style.IndentWidth);
  484                    Style.IndentWrappedFunctionNames);
  485     IO.mapOptional("JavaImportGroups", Style.JavaImportGroups);
  486     IO.mapOptional("JavaScriptQuotes", Style.JavaScriptQuotes);
  487     IO.mapOptional("JavaScriptWrapImports", Style.JavaScriptWrapImports);
  489                    Style.KeepEmptyLinesAtTheStartOfBlocks);
  490     IO.mapOptional("MacroBlockBegin", Style.MacroBlockBegin);
  491     IO.mapOptional("MacroBlockEnd", Style.MacroBlockEnd);
  492     IO.mapOptional("MaxEmptyLinesToKeep", Style.MaxEmptyLinesToKeep);
  493     IO.mapOptional("NamespaceIndentation", Style.NamespaceIndentation);
  494     IO.mapOptional("NamespaceMacros", Style.NamespaceMacros);
  495     IO.mapOptional("ObjCBinPackProtocolList", Style.ObjCBinPackProtocolList);
  496     IO.mapOptional("ObjCBlockIndentWidth", Style.ObjCBlockIndentWidth);
  497     IO.mapOptional("ObjCSpaceAfterProperty", Style.ObjCSpaceAfterProperty);
  499                    Style.ObjCSpaceBeforeProtocolList);
  500     IO.mapOptional("PenaltyBreakAssignment", Style.PenaltyBreakAssignment);
  502                    Style.PenaltyBreakBeforeFirstCallParameter);
  503     IO.mapOptional("PenaltyBreakComment", Style.PenaltyBreakComment);
  505                    Style.PenaltyBreakFirstLessLess);
  506     IO.mapOptional("PenaltyBreakString", Style.PenaltyBreakString);
  508                    Style.PenaltyBreakTemplateDeclaration);
  509     IO.mapOptional("PenaltyExcessCharacter", Style.PenaltyExcessCharacter);
  511                    Style.PenaltyReturnTypeOnItsOwnLine);
  512     IO.mapOptional("PointerAlignment", Style.PointerAlignment);
  513     IO.mapOptional("RawStringFormats", Style.RawStringFormats);
  514     IO.mapOptional("ReflowComments", Style.ReflowComments);
  515     IO.mapOptional("SortIncludes", Style.SortIncludes);
  516     IO.mapOptional("SortUsingDeclarations", Style.SortUsingDeclarations);
  517     IO.mapOptional("SpaceAfterCStyleCast", Style.SpaceAfterCStyleCast);
  518     IO.mapOptional("SpaceAfterLogicalNot", Style.SpaceAfterLogicalNot);
  520                    Style.SpaceAfterTemplateKeyword);
  522                    Style.SpaceBeforeAssignmentOperators);
  524                    Style.SpaceBeforeCpp11BracedList);
  526                    Style.SpaceBeforeCtorInitializerColon);
  528                    Style.SpaceBeforeInheritanceColon);
  529     IO.mapOptional("SpaceBeforeParens", Style.SpaceBeforeParens);
  531                    Style.SpaceBeforeRangeBasedForLoopColon);
  532     IO.mapOptional("SpaceInEmptyBlock", Style.SpaceInEmptyBlock);
  533     IO.mapOptional("SpaceInEmptyParentheses", Style.SpaceInEmptyParentheses);
  535                    Style.SpacesBeforeTrailingComments);
  536     IO.mapOptional("SpacesInAngles", Style.SpacesInAngles);
  538                    Style.SpacesInContainerLiterals);
  540                    Style.SpacesInCStyleCastParentheses);
  541     IO.mapOptional("SpacesInParentheses", Style.SpacesInParentheses);
  542     IO.mapOptional("SpacesInSquareBrackets", Style.SpacesInSquareBrackets);
  543     IO.mapOptional("Standard", Style.Standard);
  544     IO.mapOptional("StatementMacros", Style.StatementMacros);
  545     IO.mapOptional("TabWidth", Style.TabWidth);
  546     IO.mapOptional("TypenameMacros", Style.TypenameMacros);
  547     IO.mapOptional("UseTab", Style.UseTab);