Last active
December 15, 2020 06:38
-
-
Save evaneliasyoung/0865b1a3f9f5b827dbecd06b1b9a060b to your computer and use it in GitHub Desktop.
C++ Clang Format File
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
### | |
# @file .clang-format | |
# @brief My personal c-lang format specifications. | |
# | |
# @author Evan Elias Young | |
# @date 2020-03-02 | |
# @date 2020-12-15 | |
# @copyright Copyright 2020 Evan Elias Young. All rights reserved. | |
### | |
BasedOnStyle: LLVM | |
AccessModifierOffset: 0 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignConsecutiveMacros: true | |
AlignEscapedNewlines: Left | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllArgumentsOnNextLine: true | |
AllowAllConstructorInitializersOnNextLine: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: Empty | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: None | |
AllowShortIfStatementsOnASingleLine: Never | |
AllowShortLambdasOnASingleLine: None | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: No | |
BinPackArguments: true | |
# InsertTrailingCommas: None | |
BinPackParameters: true | |
BreakAfterJavaFieldAnnotations: true | |
BreakBeforeBinaryOperators: NonAssignment | |
BreakBeforeBraces: Allman | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializers: AfterColon | |
BreakInheritanceList: AfterColon | |
BreakStringLiterals: true | |
ColumnLimit: 120 | |
CompactNamespaces: false | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ContinuationIndentWidth: 2 | |
Cpp11BracedListStyle: true | |
FixNamespaceComments: true | |
IncludeBlocks: Regroup | |
IndentCaseLabels: true | |
IndentWidth: 2 | |
IndentWrappedFunctionNames: false | |
NamespaceIndentation: All | |
PointerAlignment: Right | |
SortIncludes: true | |
SortUsingDeclarations: true | |
SpaceAfterCStyleCast: false | |
SpaceAfterLogicalNot: false | |
SpaceAfterTemplateKeyword: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeCpp11BracedList: false | |
SpaceBeforeCtorInitializerColon: false | |
SpaceBeforeInheritanceColon: false | |
SpaceBeforeParens: ControlStatements | |
SpaceBeforeRangeBasedForLoopColon: false | |
SpaceBeforeSquareBrackets: false | |
SpaceInEmptyBlock: false | |
SpaceInEmptyParentheses: false | |
SpacesInAngles: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInConditionalStatement: false | |
SpacesInContainerLiterals: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: c++14 | |
UseTab: Never |
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
### | |
# @file .clang-format | |
# @brief The c-lang format specifications for S&T. | |
# | |
# @author Evan Elias Young | |
# @date 2020-03-02 | |
# @date 2020-12-15 | |
# @copyright Copyright 2020 Evan Elias Young. All rights reserved. | |
### | |
BasedOnStyle: LLVM | |
AccessModifierOffset: 0 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignConsecutiveMacros: true | |
AlignEscapedNewlines: Left | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllArgumentsOnNextLine: true | |
AllowAllConstructorInitializersOnNextLine: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: Empty | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: None | |
AllowShortIfStatementsOnASingleLine: Never | |
AllowShortLambdasOnASingleLine: None | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: No | |
BinPackArguments: true | |
# InsertTrailingCommas: None | |
BinPackParameters: true | |
BreakAfterJavaFieldAnnotations: true | |
BreakBeforeBinaryOperators: NonAssignment | |
BreakBeforeBraces: Allman | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializers: AfterColon | |
BreakInheritanceList: AfterColon | |
BreakStringLiterals: true | |
ColumnLimit: 80 | |
CompactNamespaces: false | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ContinuationIndentWidth: 2 | |
Cpp11BracedListStyle: true | |
FixNamespaceComments: true | |
IncludeBlocks: Regroup | |
IndentCaseLabels: true | |
IndentWidth: 2 | |
IndentWrappedFunctionNames: false | |
NamespaceIndentation: All | |
PointerAlignment: Right | |
SortIncludes: true | |
SortUsingDeclarations: true | |
SpaceAfterCStyleCast: false | |
SpaceAfterLogicalNot: false | |
SpaceAfterTemplateKeyword: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeCpp11BracedList: false | |
SpaceBeforeCtorInitializerColon: false | |
SpaceBeforeInheritanceColon: false | |
SpaceBeforeParens: ControlStatements | |
SpaceBeforeRangeBasedForLoopColon: false | |
SpaceBeforeSquareBrackets: false | |
SpaceInEmptyBlock: false | |
SpaceInEmptyParentheses: false | |
SpacesInAngles: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInConditionalStatement: false | |
SpacesInContainerLiterals: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: c++11 | |
UseTab: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment