Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ch32v003fun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Horn
ch32v003fun
Commits
bbe0e833
Commit
bbe0e833
authored
1 year ago
by
cnlohr
Browse files
Options
Downloads
Patches
Plain Diff
Add clang-format and move platformio add_include.
parent
08beec97
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.clang-format
+48
-0
48 additions, 0 deletions
.clang-format
.github/add_include.py
+0
-0
0 additions, 0 deletions
.github/add_include.py
platformio.ini
+1
-1
1 addition, 1 deletion
platformio.ini
with
49 additions
and
1 deletion
.clang-format
0 → 100644
+
48
−
0
View file @
bbe0e833
# 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
This diff is collapsed.
Click to expand it.
add_include.py
→
.github/
add_include.py
+
0
−
0
View file @
bbe0e833
File moved
This diff is collapsed.
Click to expand it.
platformio.ini
+
1
−
1
View file @
bbe0e833
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment