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