1# 2# Copyright (c) 2019-2020 Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6# Licensed under the Apache License, Version 2.0 (the License); you may 7# not use this file except in compliance with the License. 8# You may obtain a copy of the License at 9# 10# www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, software 13# distributed under the License is distributed on an AS IS BASIS, WITHOUT 14# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15# See the License for the specific language governing permissions and 16# limitations under the License. 17# 18 19--- 20Language: Cpp 21AccessModifierOffset: -2 22AlignAfterOpenBracket: Align 23AlignConsecutiveMacros: false 24AlignConsecutiveAssignments: true 25AlignConsecutiveDeclarations: false 26AlignEscapedNewlines: Right 27AlignOperands: true 28AlignTrailingComments: true 29AllowAllArgumentsOnNextLine: true 30AllowAllConstructorInitializersOnNextLine: true 31AllowAllParametersOfDeclarationOnNextLine: true 32AllowShortBlocksOnASingleLine: false 33AllowShortCaseLabelsOnASingleLine: false 34AllowShortFunctionsOnASingleLine: Empty 35AllowShortLambdasOnASingleLine: All 36AllowShortIfStatementsOnASingleLine: Never 37AllowShortLoopsOnASingleLine: false 38AlwaysBreakAfterDefinitionReturnType: None 39AlwaysBreakAfterReturnType: None 40AlwaysBreakBeforeMultilineStrings: false 41AlwaysBreakTemplateDeclarations: MultiLine 42BinPackArguments: false 43BinPackParameters: false 44BraceWrapping: 45 AfterCaseLabel: true 46 AfterClass: true 47 AfterControlStatement: true 48 AfterEnum: true 49 AfterFunction: true 50 AfterNamespace: true 51 AfterObjCDeclaration: true 52 AfterStruct: true 53 AfterUnion: true 54 AfterExternBlock: false 55 BeforeCatch: true 56 BeforeElse: true 57 IndentBraces: false 58 SplitEmptyFunction: true 59 SplitEmptyRecord: true 60 SplitEmptyNamespace: true 61BreakBeforeBinaryOperators: None 62BreakBeforeBraces: Custom 63BreakBeforeInheritanceComma: true 64BreakInheritanceList: AfterColon 65BreakBeforeTernaryOperators: false 66BreakConstructorInitializersBeforeComma: true 67BreakConstructorInitializers: AfterColon 68BreakAfterJavaFieldAnnotations: false 69BreakStringLiterals: true 70ColumnLimit: 120 71CommentPragmas: '^ IWYU pragma:' 72CompactNamespaces: false 73ConstructorInitializerAllOnOneLineOrOnePerLine: false 74ConstructorInitializerIndentWidth: 4 75ContinuationIndentWidth: 4 76Cpp11BracedListStyle: true 77DerivePointerAlignment: false 78DisableFormat: false 79ExperimentalAutoDetectBinPacking: false 80FixNamespaceComments: true 81ForEachMacros: 82 - foreach 83 - Q_FOREACH 84 - BOOST_FOREACH 85IncludeBlocks: Preserve 86IncludeCategories: 87 - Regex: '^"(llvm|llvm-c|clang|clang-c)/' 88 Priority: 2 89 - Regex: '^(<|"(gtest|gmock|isl|json)/)' 90 Priority: 3 91 - Regex: '.*' 92 Priority: 1 93IncludeIsMainRegex: '(Test)?$' 94IndentCaseLabels: false 95IndentPPDirectives: None 96IndentWidth: 4 97IndentWrappedFunctionNames: false 98JavaScriptQuotes: Leave 99JavaScriptWrapImports: true 100KeepEmptyLinesAtTheStartOfBlocks: true 101MacroBlockBegin: '' 102MacroBlockEnd: '' 103MaxEmptyLinesToKeep: 1 104NamespaceIndentation: None 105ObjCBinPackProtocolList: Auto 106ObjCBlockIndentWidth: 2 107ObjCSpaceAfterProperty: false 108ObjCSpaceBeforeProtocolList: true 109PenaltyBreakAssignment: 2 110PenaltyBreakBeforeFirstCallParameter: 19 111PenaltyBreakComment: 300 112PenaltyBreakFirstLessLess: 120 113PenaltyBreakString: 1000 114PenaltyBreakTemplateDeclaration: 10 115PenaltyExcessCharacter: 1000000 116PenaltyReturnTypeOnItsOwnLine: 1000000 117PointerAlignment: Right 118ReflowComments: true 119SortIncludes: true 120SortUsingDeclarations: true 121SpaceAfterCStyleCast: false 122SpaceAfterLogicalNot: false 123SpaceAfterTemplateKeyword: true 124SpaceBeforeAssignmentOperators: true 125SpaceBeforeCpp11BracedList: false 126SpaceBeforeCtorInitializerColon: true 127SpaceBeforeInheritanceColon: true 128SpaceBeforeParens: ControlStatements 129SpaceBeforeRangeBasedForLoopColon: true 130SpaceInEmptyParentheses: false 131SpacesBeforeTrailingComments: 1 132SpacesInAngles: false 133SpacesInContainerLiterals: false 134SpacesInCStyleCastParentheses: false 135SpacesInParentheses: false 136SpacesInSquareBrackets: false 137Standard: Cpp11 138StatementMacros: 139 - Q_UNUSED 140 - QT_REQUIRE_VERSION 141TabWidth: 8 142UseTab: Never 143... 144 145