Skip to content

Commit f68e7bc

Browse files
committed
Hide structure
1 parent 2d4cfdd commit f68e7bc

Some content is hidden

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

73 files changed

+16812
-15937
lines changed

.clang-format

+15-57
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,16 @@
1-
# Generated from CLion C/C++ Code Style settings
2-
---
3-
Language: Cpp
4-
BasedOnStyle: LLVM
5-
AccessModifierOffset: -4
6-
AlignConsecutiveAssignments: false
7-
AlignConsecutiveDeclarations: false
8-
AlignOperands: true
9-
AlignTrailingComments: false
10-
AlwaysBreakTemplateDeclarations: Yes
11-
BraceWrapping:
12-
AfterCaseLabel: true
13-
AfterClass: true
14-
AfterControlStatement: true
15-
AfterEnum: true
16-
AfterFunction: true
17-
AfterNamespace: true
18-
AfterStruct: true
19-
AfterUnion: true
20-
AfterExternBlock: true
21-
BeforeCatch: true
22-
BeforeElse: true
23-
BeforeLambdaBody: true
24-
BeforeWhile: true
25-
SplitEmptyFunction: true
26-
SplitEmptyRecord: true
27-
SplitEmptyNamespace: true
28-
BreakBeforeBraces: Custom
29-
BreakConstructorInitializers: AfterColon
30-
BreakConstructorInitializersBeforeComma: false
31-
ColumnLimit: 120
32-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
33-
ContinuationIndentWidth: 8
34-
IncludeCategories:
35-
- Regex: '^<.*'
36-
Priority: 1
37-
- Regex: '^".*'
38-
Priority: 2
39-
- Regex: '.*'
40-
Priority: 3
41-
IncludeIsMainRegex: '([-_](test|unittest))?$'
42-
IndentCaseLabels: true
43-
IndentWidth: 4
44-
InsertNewlineAtEOF: true
45-
MacroBlockBegin: ''
46-
MacroBlockEnd: ''
47-
MaxEmptyLinesToKeep: 2
48-
NamespaceIndentation: All
49-
SpaceAfterCStyleCast: true
50-
SpaceAfterTemplateKeyword: false
51-
SpaceBeforeRangeBasedForLoopColon: false
52-
SpaceInEmptyParentheses: false
53-
SpacesInAngles: false
54-
SpacesInConditionalStatement: false
55-
SpacesInCStyleCastParentheses: false
56-
SpacesInParentheses: false
57-
TabWidth: 4
1+
---
2+
BasedOnStyle: Microsoft
3+
AccessModifierOffset: '-4'
4+
SortIncludes: false
5+
AlignArrayOfStructures: Left
6+
Cpp11BracedListStyle: false
7+
IndentExternBlock: NoIndent
8+
AlignEscapedNewlines: Right
9+
AlwaysBreakTemplateDeclarations: true
10+
AlignConsecutiveDeclarations:
11+
Enabled: true
12+
AcrossEmptyLines: false
13+
BraceWrapping:
14+
AfterExternBlock: false
15+
ColumnLimit: 80
5816
...

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ dkms.conf
7171
/out
7272
*.tmp
7373
/CMakeSettings.json
74-
/cmake-build-debug
74+
/cmake-build-*
7575

7676
# Html document files
7777
/docs/html

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/third_party/cmake-modules")
88
option(EV_ENABLE_COVERAGE "Enable code coverage. GCC/Clang only" OFF)
99
option(EV_DEV "Enable develop mode." OFF)
1010
option(EV_LINENO "Enable line control when generate code" OFF)
11+
option(EV_ASAN "Enable address sanitizer" OFF)
1112

1213
###############################################################################
1314
# Support functions
@@ -100,6 +101,11 @@ if (EV_ENABLE_COVERAGE AND CMAKE_C_COMPILER_ID MATCHES "(GNU|Clang)")
100101
set(EV_HAVE_COVERAGE true)
101102
endif ()
102103

104+
if (EV_ASAN)
105+
target_compile_options(${PROJECT_NAME} PRIVATE -fsanitize=address)
106+
target_link_options(${PROJECT_NAME} PRIVATE -fsanitize=address)
107+
endif()
108+
103109
###############################################################################
104110
# Build examples
105111
###############################################################################

0 commit comments

Comments
 (0)