|
| 1 | +# # # # sol2 |
| 2 | +# The MIT License (MIT) |
| 3 | +# |
| 4 | +# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors |
| 5 | +# |
| 6 | +# Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 7 | +# this software and associated documentation files (the "Software"), to deal in |
| 8 | +# the Software without restriction, including without limitation the rights to |
| 9 | +# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
| 10 | +# the Software, and to permit persons to whom the Software is furnished to do so, |
| 11 | +# subject to the following conditions: |
| 12 | +# |
| 13 | +# The above copyright notice and this permission notice shall be included in all |
| 14 | +# copies or substantial portions of the Software. |
| 15 | +# |
| 16 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
| 18 | +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
| 19 | +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
| 20 | +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 21 | +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 22 | + |
| 23 | +--- |
| 24 | +BasedOnStyle: WebKit |
| 25 | +IndentWidth: 5 |
| 26 | +TabWidth: 5 |
| 27 | +ContinuationIndentWidth: 5 |
| 28 | +UseTab: Always |
| 29 | + |
| 30 | +# Namespaces |
| 31 | +NamespaceIndentation: All |
| 32 | +CompactNamespaces: true |
| 33 | +FixNamespaceComments: true |
| 34 | + |
| 35 | +# Overall Alignment |
| 36 | +ColumnLimit: 0 |
| 37 | +AlignAfterOpenBracket: DontAlign # uses ContinuationIndentWidth for this instead |
| 38 | +AccessModifierOffset: -5 # do not push public: or private: around |
| 39 | +#AlignConsecutiveAssignments: true # affects more than what's expected: do not use |
| 40 | +#AlignConsecutiveDeclarations: true # affects more than what's expected: do not use |
| 41 | + |
| 42 | +# Type Alignment |
| 43 | +DerivePointerAlignment: false |
| 44 | +PointerAlignment: Left |
| 45 | +AlwaysBreakTemplateDeclarations: true |
| 46 | +AlwaysBreakBeforeMultilineStrings: true |
| 47 | + |
| 48 | +# Comments |
| 49 | +AlignTrailingComments: true |
| 50 | +ReflowComments: true |
| 51 | + |
| 52 | +# Macros |
| 53 | +AlignEscapedNewlines: Left |
| 54 | +#IndentPPDirectives: None |
| 55 | + |
| 56 | +# Functions |
| 57 | +AllowShortFunctionsOnASingleLine: None |
| 58 | +AlwaysBreakAfterReturnType: None |
| 59 | +BreakConstructorInitializers: BeforeComma |
| 60 | +ConstructorInitializerIndentWidth: 0 |
| 61 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 62 | +BinPackArguments: true |
| 63 | +BinPackParameters: true |
| 64 | + |
| 65 | +# Classes |
| 66 | +BreakBeforeInheritanceComma: false |
| 67 | + |
| 68 | +# Braces |
| 69 | +Cpp11BracedListStyle: false |
| 70 | +BreakBeforeBraces: Custom |
| 71 | +BraceWrapping: |
| 72 | + AfterEnum: false |
| 73 | + AfterStruct: false |
| 74 | + AfterControlStatement: false |
| 75 | + AfterClass: false |
| 76 | + AfterNamespace: false |
| 77 | + AfterStruct: false |
| 78 | + AfterUnion: false |
| 79 | + BeforeElse: true |
| 80 | + BeforeCatch: true |
| 81 | + IndentBraces: false |
| 82 | + SplitEmptyFunction: false |
| 83 | + SplitEmptyRecord: false |
| 84 | + SplitEmptyNamespace: true |
| 85 | + |
| 86 | +# Control Statements |
| 87 | +AllowShortIfStatementsOnASingleLine: false |
| 88 | +AllowShortLoopsOnASingleLine: false |
| 89 | +AllowShortCaseLabelsOnASingleLine: false |
| 90 | +IndentCaseLabels: false |
| 91 | + |
| 92 | +# Spaces |
| 93 | +SpaceAfterCStyleCast: false |
| 94 | +SpacesInCStyleCastParentheses: false |
| 95 | +SpaceAfterTemplateKeyword: true |
| 96 | +SpaceBeforeAssignmentOperators: true |
| 97 | +SpaceBeforeParens: ControlStatements |
| 98 | +SpaceInEmptyParentheses: false |
| 99 | +SpacesInAngles: false |
| 100 | +SpacesInParentheses: false |
| 101 | +SpacesInSquareBrackets: false |
| 102 | +MaxEmptyLinesToKeep: 3 |
| 103 | + |
| 104 | +# OCD |
| 105 | +SortUsingDeclarations: true |
| 106 | +SortIncludes: false |
| 107 | + |
| 108 | +--- |
| 109 | +Language: Cpp |
| 110 | +Standard: Cpp11 |
0 commit comments