Last active
December 8, 2017 06:19
-
-
Save sergey-shambir/e605fd2b898d0bdae36aeff01f903dc4 to your computer and use it in GitHub Desktop.
C++ coding style for Volgatech courses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Language: Cpp | |
# BasedOnStyle: WebKit | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: DontAlign | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: false | |
AlignTrailingComments: false | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: false | |
BinPackArguments: true | |
BinPackParameters: true | |
BraceWrapping: | |
AfterClass: true | |
AfterControlStatement: true | |
AfterEnum: true | |
AfterFunction: true | |
AfterNamespace: true | |
AfterObjCDeclaration: false | |
AfterStruct: true | |
AfterUnion: true | |
BeforeCatch: true | |
BeforeElse: true | |
IndentBraces: false | |
BreakBeforeBinaryOperators: All | |
BreakBeforeBraces: Custom | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: true | |
BreakAfterJavaFieldAnnotations: false | |
BreakStringLiterals: true | |
ColumnLimit: 0 | |
CommentPragmas: '^ IWYU pragma:' | |
# BreakBeforeInheritanceComma: true | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: false | |
DerivePointerAlignment: false | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
# FixNamespaceComments: false | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
IncludeCategories: | |
- Regex: '^"(stdafx|PrecompiledHeader)' | |
Priority: -2 | |
- Regex: '^"(llvm|llvm-c|clang|clang-c)/' | |
Priority: 4 | |
- Regex: '^(<|"(gtest|isl|json)/)' | |
Priority: 3 | |
- Regex: '.*' | |
Priority: 2 | |
IncludeIsMainRegex: '$' | |
IndentCaseLabels: false | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: false | |
JavaScriptQuotes: Leave | |
JavaScriptWrapImports: true | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
MacroBlockBegin: 'BEGIN_MSG_MAP' | |
MacroBlockEnd: 'END_MSG_MAP' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
ObjCBlockIndentWidth: 4 | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakString: 1000 | |
PenaltyExcessCharacter: 100 | |
PenaltyReturnTypeOnItsOwnLine: 10000000 | |
PointerAlignment: Left | |
ReflowComments: true | |
SortIncludes: true | |
SpaceAfterCStyleCast: false | |
SpaceAfterTemplateKeyword: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: false | |
SpacesInContainerLiterals: true | |
SpacesInCStyleCastParentheses: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: Cpp11 | |
TabWidth: 4 | |
UseTab: Never | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment