Last active
August 17, 2021 10:12
-
-
Save sritasngh/7c31db973914f8fc25243654e1de0cad to your computer and use it in GitHub Desktop.
clang13 documentation: https://clang.llvm.org/docs/ClangFormat.html
This file contains hidden or 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
--- | |
BasedOnStyle: Microsoft | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveMacros: 'true' | |
AlignEscapedNewlines: DontAlign | |
AlignTrailingComments: 'true' | |
AllowAllConstructorInitializersOnNextLine: 'true' | |
AllowShortFunctionsOnASingleLine: None | |
AllowShortIfStatementsOnASingleLine: Never | |
AlwaysBreakBeforeMultilineStrings: 'true' | |
BreakConstructorInitializers: AfterColon | |
ColumnLimit: '80' | |
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' | |
IncludeBlocks: Regroup | |
IndentWidth: '2' | |
Language: Cpp | |
NamespaceIndentation: All | |
PointerAlignment: Left | |
ReflowComments: 'true' | |
SortIncludes: 'true' | |
SortUsingDeclarations: 'true' | |
SpaceAfterLogicalNot: 'false' | |
SpaceAfterTemplateKeyword: 'false' | |
SpaceBeforeAssignmentOperators: 'true' | |
SpaceBeforeCpp11BracedList: 'true' | |
SpaceBeforeCtorInitializerColon: 'true' | |
SpaceBeforeInheritanceColon: 'true' | |
SpaceBeforeParens: ControlStatements | |
SpaceBeforeRangeBasedForLoopColon: 'true' | |
SpaceInEmptyParentheses: 'false' | |
SpacesBeforeTrailingComments: '1' | |
SpacesInAngles: 'false' | |
SpacesInParentheses: 'false' | |
SpacesInSquareBrackets: 'false' | |
Standard: Cpp11 | |
UseTab: Never | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can test this with vscode:
To use this file with terminal