Skip to content

Instantly share code, notes, and snippets.

@stritti
Created January 24, 2019 10:13
Show Gist options
  • Save stritti/66ceb10933f9acc142870c36284d94d0 to your computer and use it in GitHub Desktop.
Save stritti/66ceb10933f9acc142870c36284d94d0 to your computer and use it in GitHub Desktop.
clang-format for programming ESP
# C/C++ Coding Style for generic Projects
# UseTab: (VS Code current setting)
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 2
ColumnLimit: 130
BreakBeforeBraces: Attach
PointerAlignment: Left
AccessModifierOffset: -2
#IndentPPDirectives: AfterHash
Cpp11BracedListStyle: true
AlignConsecutiveDeclarations: true
AlignConsecutiveAssignments: true
AlignEscapedNewlines: Left
AlignTrailingComments: true
IndentWrappedFunctionNames: false
AllowShortFunctionsOnASingleLine: Inline
SpacesBeforeTrailingComments: 2
FixNamespaceComments: true
ReflowComments: false
SortIncludes: false
SortUsingDeclarations: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment