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

References

tools/clang/lib/Format/Format.cpp
  719   LLVMStyle.Language = Language;
  720   LLVMStyle.AccessModifierOffset = -2;
  721   LLVMStyle.AlignEscapedNewlines = FormatStyle::ENAS_Right;
  722   LLVMStyle.AlignAfterOpenBracket = FormatStyle::BAS_Align;
  723   LLVMStyle.AlignOperands = true;
  724   LLVMStyle.AlignTrailingComments = true;
  725   LLVMStyle.AlignConsecutiveAssignments = false;
  726   LLVMStyle.AlignConsecutiveDeclarations = false;
  727   LLVMStyle.AlignConsecutiveMacros = false;
  728   LLVMStyle.AllowAllArgumentsOnNextLine = true;
  729   LLVMStyle.AllowAllConstructorInitializersOnNextLine = true;
  730   LLVMStyle.AllowAllParametersOfDeclarationOnNextLine = true;
  731   LLVMStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All;
  732   LLVMStyle.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never;
  733   LLVMStyle.AllowShortCaseLabelsOnASingleLine = false;
  734   LLVMStyle.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_Never;
  735   LLVMStyle.AllowShortLambdasOnASingleLine = FormatStyle::SLS_All;
  736   LLVMStyle.AllowShortLoopsOnASingleLine = false;
  737   LLVMStyle.AlwaysBreakAfterReturnType = FormatStyle::RTBS_None;
  738   LLVMStyle.AlwaysBreakAfterDefinitionReturnType = FormatStyle::DRTBS_None;
  739   LLVMStyle.AlwaysBreakBeforeMultilineStrings = false;
  740   LLVMStyle.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_MultiLine;
  741   LLVMStyle.BinPackArguments = true;
  742   LLVMStyle.BinPackParameters = true;
  743   LLVMStyle.BreakBeforeBinaryOperators = FormatStyle::BOS_None;
  744   LLVMStyle.BreakBeforeTernaryOperators = true;
  745   LLVMStyle.BreakBeforeBraces = FormatStyle::BS_Attach;
  746   LLVMStyle.BraceWrapping = {false, false, FormatStyle::BWACS_Never,
  752   LLVMStyle.BreakAfterJavaFieldAnnotations = false;
  753   LLVMStyle.BreakConstructorInitializers = FormatStyle::BCIS_BeforeColon;
  754   LLVMStyle.BreakInheritanceList = FormatStyle::BILS_BeforeColon;
  755   LLVMStyle.BreakStringLiterals = true;
  756   LLVMStyle.ColumnLimit = 80;
  757   LLVMStyle.CommentPragmas = "^ IWYU pragma:";
  758   LLVMStyle.CompactNamespaces = false;
  759   LLVMStyle.ConstructorInitializerAllOnOneLineOrOnePerLine = false;
  760   LLVMStyle.ConstructorInitializerIndentWidth = 4;
  761   LLVMStyle.ContinuationIndentWidth = 4;
  762   LLVMStyle.Cpp11BracedListStyle = true;
  763   LLVMStyle.DerivePointerAlignment = false;
  764   LLVMStyle.ExperimentalAutoDetectBinPacking = false;
  765   LLVMStyle.FixNamespaceComments = true;
  766   LLVMStyle.ForEachMacros.push_back("foreach");
  767   LLVMStyle.ForEachMacros.push_back("Q_FOREACH");
  768   LLVMStyle.ForEachMacros.push_back("BOOST_FOREACH");
  769   LLVMStyle.IncludeStyle.IncludeCategories = {
  773   LLVMStyle.IncludeStyle.IncludeIsMainRegex = "(Test)?$";
  774   LLVMStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Preserve;
  775   LLVMStyle.IndentCaseLabels = false;
  776   LLVMStyle.IndentGotoLabels = true;
  777   LLVMStyle.IndentPPDirectives = FormatStyle::PPDIS_None;
  778   LLVMStyle.IndentWrappedFunctionNames = false;
  779   LLVMStyle.IndentWidth = 2;
  780   LLVMStyle.JavaScriptQuotes = FormatStyle::JSQS_Leave;
  781   LLVMStyle.JavaScriptWrapImports = true;
  782   LLVMStyle.TabWidth = 8;
  783   LLVMStyle.MaxEmptyLinesToKeep = 1;
  784   LLVMStyle.KeepEmptyLinesAtTheStartOfBlocks = true;
  785   LLVMStyle.NamespaceIndentation = FormatStyle::NI_None;
  786   LLVMStyle.ObjCBinPackProtocolList = FormatStyle::BPS_Auto;
  787   LLVMStyle.ObjCBlockIndentWidth = 2;
  788   LLVMStyle.ObjCSpaceAfterProperty = false;
  789   LLVMStyle.ObjCSpaceBeforeProtocolList = true;
  790   LLVMStyle.PointerAlignment = FormatStyle::PAS_Right;
  791   LLVMStyle.SpacesBeforeTrailingComments = 1;
  792   LLVMStyle.Standard = FormatStyle::LS_Latest;
  793   LLVMStyle.UseTab = FormatStyle::UT_Never;
  794   LLVMStyle.ReflowComments = true;
  795   LLVMStyle.SpacesInParentheses = false;
  796   LLVMStyle.SpacesInSquareBrackets = false;
  797   LLVMStyle.SpaceInEmptyBlock = false;
  798   LLVMStyle.SpaceInEmptyParentheses = false;
  799   LLVMStyle.SpacesInContainerLiterals = true;
  800   LLVMStyle.SpacesInCStyleCastParentheses = false;
  801   LLVMStyle.SpaceAfterCStyleCast = false;
  802   LLVMStyle.SpaceAfterLogicalNot = false;
  803   LLVMStyle.SpaceAfterTemplateKeyword = true;
  804   LLVMStyle.SpaceBeforeCtorInitializerColon = true;
  805   LLVMStyle.SpaceBeforeInheritanceColon = true;
  806   LLVMStyle.SpaceBeforeParens = FormatStyle::SBPO_ControlStatements;
  807   LLVMStyle.SpaceBeforeRangeBasedForLoopColon = true;
  808   LLVMStyle.SpaceBeforeAssignmentOperators = true;
  809   LLVMStyle.SpaceBeforeCpp11BracedList = false;
  810   LLVMStyle.SpacesInAngles = false;
  812   LLVMStyle.PenaltyBreakAssignment = prec::Assignment;
  813   LLVMStyle.PenaltyBreakComment = 300;
  814   LLVMStyle.PenaltyBreakFirstLessLess = 120;
  815   LLVMStyle.PenaltyBreakString = 1000;
  816   LLVMStyle.PenaltyExcessCharacter = 1000000;
  817   LLVMStyle.PenaltyReturnTypeOnItsOwnLine = 60;
  818   LLVMStyle.PenaltyBreakBeforeFirstCallParameter = 19;
  819   LLVMStyle.PenaltyBreakTemplateDeclaration = prec::Relational;
  821   LLVMStyle.DisableFormat = false;
  822   LLVMStyle.SortIncludes = true;
  823   LLVMStyle.SortUsingDeclarations = true;
  824   LLVMStyle.StatementMacros.push_back("Q_UNUSED");
  825   LLVMStyle.StatementMacros.push_back("QT_REQUIRE_VERSION");
  829     LLVMStyle.SpacesInContainerLiterals = false;
  832   return LLVMStyle;