| # __ __ _ |
| # ___\ \/ /_ __ __ _| |_ |
| # / _ \\ /| '_ \ / _` | __| |
| # | __// \| |_) | (_| | |_ |
| # \___/_/\_\ .__/ \__,_|\__| |
| # |_| XML parser |
| # |
| # Copyright (c) 2019 Sebastian Pipping <sebastian@pipping.org> |
| # Licensed under the MIT license: |
| # |
| # Permission is hereby granted, free of charge, to any person obtaining |
| # a copy of this software and associated documentation files (the |
| # "Software"), to deal in the Software without restriction, including |
| # without limitation the rights to use, copy, modify, merge, publish, |
| # distribute, sublicense, and/or sell copies of the Software, and to permit |
| # persons to whom the Software is furnished to do so, subject to the |
| # following conditions: |
| # |
| # The above copyright notice and this permission notice shall be included |
| # in all copies or substantial portions of the Software. |
| # |
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN |
| # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
| # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
| # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |
| # USE OR OTHER DEALINGS IN THE SOFTWARE. |
| |
| --- |
| Language: Cpp |
| # BasedOnStyle: LLVM |
| AccessModifierOffset: -2 |
| AlignAfterOpenBracket: Align |
| # AlignConsecutiveMacros: false # TODO restore |
| AlignConsecutiveAssignments: false |
| AlignConsecutiveDeclarations: false |
| AlignEscapedNewlines: Right |
| AlignOperands: true |
| AlignTrailingComments: true |
| AllowAllArgumentsOnNextLine: true |
| AllowAllConstructorInitializersOnNextLine: true |
| AllowAllParametersOfDeclarationOnNextLine: true |
| AllowShortBlocksOnASingleLine: false |
| AllowShortCaseLabelsOnASingleLine: false |
| AllowShortFunctionsOnASingleLine: InlineOnly |
| AllowShortLambdasOnASingleLine: All |
| AllowShortIfStatementsOnASingleLine: Never |
| AllowShortLoopsOnASingleLine: false |
| AlwaysBreakAfterDefinitionReturnType: None |
| AlwaysBreakAfterReturnType: AllDefinitions |
| AlwaysBreakBeforeMultilineStrings: false |
| AlwaysBreakTemplateDeclarations: MultiLine |
| BinPackArguments: true |
| BinPackParameters: true |
| BraceWrapping: |
| AfterCaseLabel: false |
| AfterClass: false |
| AfterControlStatement: false |
| AfterEnum: false |
| AfterFunction: false |
| AfterNamespace: false |
| AfterObjCDeclaration: false |
| AfterStruct: false |
| AfterUnion: false |
| AfterExternBlock: false |
| BeforeCatch: false |
| BeforeElse: false |
| IndentBraces: false |
| SplitEmptyFunction: true |
| SplitEmptyRecord: true |
| SplitEmptyNamespace: true |
| BreakBeforeBinaryOperators: All |
| BreakBeforeBraces: Attach |
| BreakBeforeInheritanceComma: false |
| BreakInheritanceList: BeforeColon |
| BreakBeforeTernaryOperators: true |
| BreakConstructorInitializersBeforeComma: false |
| BreakConstructorInitializers: BeforeColon |
| BreakAfterJavaFieldAnnotations: false |
| BreakStringLiterals: false |
| ColumnLimit: 80 |
| CommentPragmas: '^ IWYU pragma:' |
| CompactNamespaces: false |
| ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| ConstructorInitializerIndentWidth: 4 |
| ContinuationIndentWidth: 4 |
| Cpp11BracedListStyle: true |
| DerivePointerAlignment: false |
| DisableFormat: false |
| ExperimentalAutoDetectBinPacking: false |
| FixNamespaceComments: true |
| ForEachMacros: |
| - foreach |
| - Q_FOREACH |
| - BOOST_FOREACH |
| IncludeBlocks: Preserve |
| IncludeCategories: |
| - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| Priority: 2 |
| - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
| Priority: 3 |
| - Regex: '.*' |
| Priority: 1 |
| IncludeIsMainRegex: '(Test)?$' |
| IndentCaseLabels: false |
| IndentPPDirectives: AfterHash |
| IndentWidth: 2 |
| IndentWrappedFunctionNames: false |
| JavaScriptQuotes: Leave |
| JavaScriptWrapImports: true |
| KeepEmptyLinesAtTheStartOfBlocks: false |
| MacroBlockBegin: '' |
| MacroBlockEnd: '' |
| MaxEmptyLinesToKeep: 1 |
| NamespaceIndentation: None |
| ObjCBinPackProtocolList: Auto |
| ObjCBlockIndentWidth: 2 |
| ObjCSpaceAfterProperty: false |
| ObjCSpaceBeforeProtocolList: true |
| PenaltyBreakAssignment: 2 |
| PenaltyBreakBeforeFirstCallParameter: 19 |
| PenaltyBreakComment: 300 |
| PenaltyBreakFirstLessLess: 120 |
| PenaltyBreakString: 1000 |
| PenaltyBreakTemplateDeclaration: 10 |
| PenaltyExcessCharacter: 1000000 |
| PenaltyReturnTypeOnItsOwnLine: 60 |
| PointerAlignment: Right |
| ReflowComments: true |
| SortIncludes: false |
| SortUsingDeclarations: false |
| SpaceAfterCStyleCast: false |
| SpaceAfterLogicalNot: true |
| SpaceAfterTemplateKeyword: true |
| SpaceBeforeAssignmentOperators: true |
| SpaceBeforeCpp11BracedList: false |
| SpaceBeforeCtorInitializerColon: true |
| SpaceBeforeInheritanceColon: true |
| SpaceBeforeParens: ControlStatements |
| SpaceBeforeRangeBasedForLoopColon: true |
| SpaceInEmptyParentheses: false |
| SpacesBeforeTrailingComments: 1 |
| SpacesInAngles: false |
| SpacesInContainerLiterals: false |
| SpacesInCStyleCastParentheses: false |
| SpacesInParentheses: false |
| SpacesInSquareBrackets: false |
| Standard: Cpp03 |
| StatementMacros: |
| - Q_UNUSED |
| - QT_REQUIRE_VERSION |
| TabWidth: 8 |
| UseTab: Never |
| ... |
| |