Skip to content
Snippets Groups Projects
Commit bbe0e833 authored by cnlohr's avatar cnlohr
Browse files

Add clang-format and move platformio add_include.

parent 08beec97
No related branches found
No related tags found
No related merge requests found
# Basic style rules by Charles Lohr
# Additions and modifications by Sam Ellicott
#
# For information about the definitions of rules
# See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Microsoft
AccessModifierOffset: -4
# Basic general rules
ColumnLimit: '120'
TabWidth: 4
UseTab: AlignWithSpaces
BreakBeforeBraces: Allman
PointerAlignment: Right
MaxEmptyLinesToKeep: 2
IndentCaseLabels: true
# Allignment rules
AlignAfterOpenBracket: DontAlign
AlignTrailingComments: false
AlignConsecutiveAssignments: false
AlignConsecutiveMacros: false
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
# Rules for brackets/parentheses
SpaceInEmptyParentheses: false
SpacesInAngles: true
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: true
SpacesInParentheses: true
SpacesInSquareBrackets: false
# Short statement rules
AllowShortBlocksOnASingleLine: Never
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortCaseLabelsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
# Other Rules
FixNamespaceComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AlwaysBreakTemplateDeclarations: 'Yes'
BreakBeforeBinaryOperators: None
BreakConstructorInitializers: BeforeComma
ExperimentalAutoDetectBinPacking: false
NamespaceIndentation: None
File moved
......@@ -17,7 +17,7 @@ extends = fun_base
board_build.ldscript = ch32v003fun/ch32v003fun.ld
build_flags = -flto -Ich32v003fun -I/usr/include/newlib -lgcc -Iextralibs
; dynamically add "examples/$PIOENV" to the include path
extra_scripts = add_include.py
extra_scripts = .github/add_include.py
build_src_filter = +<ch32v003fun>
extra_libs_srcs = +<extralibs>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment