Skip to content

Commit de6b1f2

Browse files
committed
feat: init repo
0 parents  commit de6b1f2

File tree

439 files changed

+48112
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

439 files changed

+48112
-0
lines changed

.clang-format

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
BasedOnStyle: Google
2+
DerivePointerAlignment: false
3+
IncludeBlocks: Regroup
4+
SortIncludes: true

.clang-tidy

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
Checks: 'clang-diagnostic-*,clang-analyzer-*,google*, modernize*, -google-readability-avoid-underscore-in-googletest-name, -google-readability-casting, -modernize-avoid-c-arrays, -modernize-make-unique, -modernize-use-equals-default, -modernize-use-equals-delete, -modernize-use-trailing-return-type'
2+
WarningsAsErrors: ''
3+
AnalyzeTemporaryDtors: false
4+
FormatStyle: '{BasedOnStyle: Google, DerivePointerAlignment: false, IncludeBlocks: Merge, SortIncludes: true}'
5+
CheckOptions:
6+
- key: cert-dcl16-c.NewSuffixes
7+
value: 'L;LL;LU;LLU'
8+
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
9+
value: '1'
10+
- key: google-build-namespaces.HeaderFileExtensions
11+
value: ',h,hh,hpp,hxx'
12+
- key: google-global-names-in-headers.HeaderFileExtensions
13+
value: ',h,hh,hpp,hxx'
14+
- key: google-readability-braces-around-statements.ShortStatementLines
15+
value: '1'
16+
- key: google-readability-function-size.BranchThreshold
17+
value: '4294967295'
18+
- key: google-readability-function-size.LineThreshold
19+
value: '4294967295'
20+
- key: google-readability-function-size.NestingThreshold
21+
value: '4294967295'
22+
- key: google-readability-function-size.ParameterThreshold
23+
value: '4294967295'
24+
- key: google-readability-function-size.StatementThreshold
25+
value: '800'
26+
- key: google-readability-function-size.VariableThreshold
27+
value: '4294967295'
28+
- key: google-readability-namespace-comments.ShortNamespaceLines
29+
value: '10'
30+
- key: google-readability-namespace-comments.SpacesBeforeComments
31+
value: '2'
32+
- key: google-runtime-int.SignedTypePrefix
33+
value: int
34+
- key: google-runtime-int.TypeSuffix
35+
value: ''
36+
- key: google-runtime-int.UnsignedTypePrefix
37+
value: uint
38+
- key: google-runtime-references.WhiteListTypes
39+
value: ''
40+
- key: modernize-loop-convert.MaxCopySize
41+
value: '16'
42+
- key: modernize-loop-convert.MinConfidence
43+
value: reasonable
44+
- key: modernize-loop-convert.NamingStyle
45+
value: CamelCase
46+
- key: modernize-make-shared.IgnoreMacros
47+
value: '1'
48+
- key: modernize-make-shared.IncludeStyle
49+
value: 'google'
50+
- key: modernize-make-shared.MakeSmartPtrFunction
51+
value: 'std::make_shared'
52+
- key: modernize-make-shared.MakeSmartPtrFunctionHeader
53+
value: memory
54+
- key: modernize-pass-by-value.IncludeStyle
55+
value: llvm
56+
- key: modernize-pass-by-value.ValuesOnly
57+
value: '0'
58+
- key: modernize-raw-string-literal.ReplaceShorterLiterals
59+
value: '0'
60+
- key: modernize-replace-auto-ptr.IncludeStyle
61+
value: llvm
62+
- key: modernize-replace-random-shuffle.IncludeStyle
63+
value: llvm
64+
- key: modernize-use-auto.MinTypeNameLength
65+
value: '5'
66+
- key: modernize-use-auto.RemoveStars
67+
value: '0'
68+
- key: modernize-use-default-member-init.IgnoreMacros
69+
value: '1'
70+
- key: modernize-use-default-member-init.UseAssignment
71+
value: '0'
72+
- key: modernize-use-emplace.ContainersWithPushBack
73+
value: '::std::vector;::std::list;::std::deque'
74+
- key: modernize-use-emplace.SmartPointers
75+
value: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
76+
- key: modernize-use-emplace.TupleMakeFunctions
77+
value: '::std::make_pair;::std::make_tuple'
78+
- key: modernize-use-emplace.TupleTypes
79+
value: '::std::pair;::std::tuple'
80+
- key: modernize-use-nodiscard.ReplacementString
81+
value: '[[nodiscard]]'
82+
- key: modernize-use-noexcept.ReplacementString
83+
value: ''
84+
- key: modernize-use-noexcept.UseNoexceptFalse
85+
value: '1'
86+
- key: modernize-use-nullptr.NullMacros
87+
value: 'NULL'
88+
- key: modernize-use-transparent-functors.SafeMode
89+
value: '0'
90+
- key: modernize-use-using.IgnoreMacros
91+
value: '1'

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build_*

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "deepx_core"]
2+
path = deepx_core
3+
url = https://github.com/Tencent/deepx_core.git

CONTRIBUTING.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Contributing
2+
3+
[TOC]
4+
5+
我们提倡通过提 issue 和 pull request 方式来促进 embedx 的发展。
6+
7+
## Issue 提交
8+
9+
请描述清楚使用过程中遇到的问题,提交 issue。
10+
11+
## Pull request
12+
13+
pull request 需要满足 代码要求 和 commit message 要求。
14+
15+
### 代码要求
16+
17+
- 规范
18+
19+
- `C++` 基本使用 [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html)
20+
21+
- 格式化
22+
23+
- `C++` 使用 `clang-format 8.0.0` 格式化代码,配置文件是[".clang-format"](.clang-format)
24+
25+
- 检查
26+
27+
- `C++` 使用 `clang-tidy 8.0.0` 检查代码,配置文件是[".clang-tidy"](.clang-tidy)
28+
- `C++` 使用 `cpplint` 检查代码,配置文件是["CPPLINT.cfg"](CPPLINT.cfg)
29+
30+
- 提交
31+
32+
- `C++`,在 commit 提交前运行以下命令进行代码检查
33+
34+
```shell
35+
make -j8 lint
36+
```
37+
38+
### commit message 要求
39+
40+
commit message 只使用 ASCII 字符且不超过 50 个 ASCII 字符,结尾不加标点符号。
41+
42+
commit message 的格式是。
43+
44+
```shell
45+
type: subject
46+
type(scope): subject
47+
```
48+
49+
- type(commit 类型)
50+
51+
- feat: 功能
52+
- fix: 修复 bug
53+
- doc: 文档
54+
- style: 风格/格式
55+
- refactor: 重构
56+
- perf: 优化
57+
- test: 测试
58+
- build: 构建
59+
- tool: 工具
60+
- revert: 回滚
61+
- misc: 杂项
62+
63+
- scope
64+
65+
- commit 范围
66+
67+
- subject
68+
69+
- commit 主题
70+
71+
## 更多问题请联系以下开发者
72+
73+
74+
75+
76+
77+
78+

CPPLINT.cfg

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set noparent
2+
filter=-build/header_guard
3+
filter=-build/include_order
4+
filter=-build/include_subdir
5+
filter=-readability/casting
6+
filter=-runtime/references
7+
filter=-runtime/string
8+
filter=-runtime/threadsafe_fn

0 commit comments

Comments
 (0)