1# Commented out parameters are those with the same value as base LLVM style 2# We can uncomment them if we want to change their value, or enforce the 3# chosen value in case the base style changes (last sync: Clang 6.0.1). 4--- 5### General config, applies to all languages ### 6BasedOnStyle: LLVM 7AccessModifierOffset: -4 8AlignAfterOpenBracket: DontAlign 9# AlignConsecutiveAssignments: false 10# AlignConsecutiveDeclarations: false 11# AlignEscapedNewlines: Right 12# AlignOperands: true 13AlignTrailingComments: false 14AllowAllParametersOfDeclarationOnNextLine: false 15# AllowShortBlocksOnASingleLine: false 16AllowShortCaseLabelsOnASingleLine: true 17AllowShortFunctionsOnASingleLine: Inline 18AllowShortIfStatementsOnASingleLine: true 19# AllowShortLoopsOnASingleLine: false 20# AlwaysBreakAfterDefinitionReturnType: None 21# AlwaysBreakAfterReturnType: None 22# AlwaysBreakBeforeMultilineStrings: false 23# AlwaysBreakTemplateDeclarations: false 24# BinPackArguments: true 25# BinPackParameters: true 26# BraceWrapping: 27# AfterClass: false 28# AfterControlStatement: false 29# AfterEnum: false 30# AfterFunction: false 31# AfterNamespace: false 32# AfterObjCDeclaration: false 33# AfterStruct: false 34# AfterUnion: false 35# AfterExternBlock: false 36# BeforeCatch: false 37# BeforeElse: false 38# IndentBraces: false 39# SplitEmptyFunction: true 40# SplitEmptyRecord: true 41# SplitEmptyNamespace: true 42# BreakBeforeBinaryOperators: None 43# BreakBeforeBraces: Attach 44# BreakBeforeInheritanceComma: false 45BreakBeforeTernaryOperators: false 46# BreakConstructorInitializersBeforeComma: false 47BreakConstructorInitializers: AfterColon 48# BreakStringLiterals: true 49ColumnLimit: 0 50# CommentPragmas: '^ IWYU pragma:' 51# CompactNamespaces: false 52ConstructorInitializerAllOnOneLineOrOnePerLine: true 53ConstructorInitializerIndentWidth: 8 54ContinuationIndentWidth: 8 55Cpp11BracedListStyle: false 56# DerivePointerAlignment: false 57# DisableFormat: false 58# ExperimentalAutoDetectBinPacking: false 59# FixNamespaceComments: true 60# ForEachMacros: 61# - foreach 62# - Q_FOREACH 63# - BOOST_FOREACH 64# IncludeBlocks: Preserve 65IncludeCategories: 66 - Regex: '".*"' 67 Priority: 1 68 - Regex: '^<.*\.h>' 69 Priority: 2 70 - Regex: '^<.*' 71 Priority: 3 72# IncludeIsMainRegex: '(Test)?$' 73IndentCaseLabels: false 74#IndentPPDirectives: AfterHash 75IndentWidth: 4 76# IndentWrappedFunctionNames: false 77# JavaScriptQuotes: Leave 78# JavaScriptWrapImports: true 79# KeepEmptyLinesAtTheStartOfBlocks: true 80# MacroBlockBegin: '' 81# MacroBlockEnd: '' 82# MaxEmptyLinesToKeep: 1 83# NamespaceIndentation: None 84# PenaltyBreakAssignment: 2 85# PenaltyBreakBeforeFirstCallParameter: 19 86# PenaltyBreakComment: 300 87# PenaltyBreakFirstLessLess: 120 88# PenaltyBreakString: 1000 89# PenaltyExcessCharacter: 1000000 90# PenaltyReturnTypeOnItsOwnLine: 60 91# PointerAlignment: Right 92# RawStringFormats: 93# - Delimiter: pb 94# Language: TextProto 95# BasedOnStyle: google 96# ReflowComments: true 97# SortIncludes: true 98# SortUsingDeclarations: true 99# SpaceAfterCStyleCast: false 100# SpaceAfterTemplateKeyword: true 101# SpaceBeforeAssignmentOperators: true 102# SpaceBeforeParens: ControlStatements 103# SpaceInEmptyParentheses: false 104# SpacesBeforeTrailingComments: 1 105# SpacesInAngles: false 106# SpacesInContainerLiterals: true 107# SpacesInCStyleCastParentheses: false 108# SpacesInParentheses: false 109# SpacesInSquareBrackets: false 110TabWidth: 4 111UseTab: Never 112--- 113### C++ specific config ### 114Language: Cpp 115Standard: Cpp11 116--- 117### ObjC specific config ### 118Language: ObjC 119Standard: Cpp11 120ObjCBlockIndentWidth: 4 121# ObjCSpaceAfterProperty: false 122# ObjCSpaceBeforeProtocolList: true 123--- 124### Java specific config ### 125Language: Java 126# BreakAfterJavaFieldAnnotations: false 127... 128