-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init: setup unity and code confg file for builtin library
- add unity setup in CAN lib, include makefiles take unity from local install path - code check files such like cpp checheck, clang-tidy and so on - format CAN lib with clang-format
- Loading branch information
1 parent
52e575c
commit e881454
Showing
28 changed files
with
6,790 additions
and
365 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
.vscode | ||
pkg_build | ||
build | ||
.clang-format | ||
**/__pycache__/ |
Empty file.
Empty file.
Empty file.
Empty 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name=CAN | ||
version=1.0.0 | ||
author=Infineon Technologies <www.infineon.com> | ||
maintainer=Infineon Technologies <www.infineon.com> | ||
sentence=C++ CAN library | ||
paragraph=C++ CAN library | ||
category=Library | ||
url=https://github.com/Infineon/<fill in url> | ||
architectures=* | ||
includes=CAN.hpp |
Empty 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
# We'll use defaults from the LLVM style, but with 4 columns indentation. | ||
#BasedOnStyle: GNU | ||
BasedOnStyle: LLVM | ||
#BasedOnStyle: Google | ||
#BasedOnStyle: Mozilla | ||
#BasedOnStyle: Chromium | ||
IndentWidth: 4 | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: Google | ||
AccessModifierOffset: -4 | ||
Standard: c++17 | ||
TabWidth: 2 | ||
UseTab: Never | ||
ColumnLimit: 100 | ||
AlignAfterOpenBracket: Align | ||
BinPackParameters: false | ||
AlignEscapedNewlines: Left | ||
AlwaysBreakTemplateDeclarations: Yes | ||
PackConstructorInitializers: Never | ||
BreakConstructorInitializersBeforeComma: false | ||
IndentPPDirectives: BeforeHash | ||
SortIncludes: Never | ||
SeparateDefinitionBlocks: Always | ||
... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Checks: 'cppcoreguidelines-*, | ||
performance-*, | ||
modernize-*, | ||
google-*, | ||
misc-* | ||
cert-*, | ||
readability-*, | ||
clang-analyzer-*, | ||
-performance-unnecessary-value-param, | ||
-modernize-use-trailing-return-type, | ||
-google-runtime-references, | ||
-misc-non-private-member-variables-in-classes, | ||
-readability-braces-around-statements, | ||
-google-readability-braces-around-statements, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-readability-magic-numbers, | ||
-readability-magic-numbers, | ||
-cppcoreguidelines-pro-type-vararg, | ||
-cppcoreguidelines-pro-bounds-pointer-arithmetic, | ||
-cppcoreguidelines-avoid-c-arrays, | ||
-modernize-avoid-c-arrays, | ||
-cppcoreguidelines-pro-bounds-array-to-pointer-decay, | ||
-readability-named-parameter, | ||
-cert-env33-c | ||
' | ||
|
||
|
||
WarningsAsErrors: '' | ||
HeaderFilterRegex: '.*' | ||
#HeaderFilterRegex: '*spdlog/[^f].*' | ||
AnalyzeTemporaryDtors: false | ||
FormatStyle: none | ||
|
||
CheckOptions: | ||
- key: google-readability-braces-around-statements.ShortStatementLines | ||
value: '1' | ||
- key: google-readability-function-size.StatementThreshold | ||
value: '800' | ||
- key: google-readability-namespace-comments.ShortNamespaceLines | ||
value: '10' | ||
- key: google-readability-namespace-comments.SpacesBeforeComments | ||
value: '2' | ||
- key: modernize-loop-convert.MaxCopySize | ||
value: '16' | ||
- key: modernize-loop-convert.MinConfidence | ||
value: reasonable | ||
- key: modernize-loop-convert.NamingStyle | ||
value: CamelCase | ||
- key: modernize-pass-by-value.IncludeStyle | ||
value: llvm | ||
- key: modernize-replace-auto-ptr.IncludeStyle | ||
value: llvm | ||
- key: modernize-use-nullptr.NullMacros | ||
value: 'NULL' |
Oops, something went wrong.