Skip to content

Commit 737daf9

Browse files
committed
Initial code commit
1 parent 75f8785 commit 737daf9

File tree

2,229 files changed

+444507
-2
lines changed

Some content is hidden

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

2,229 files changed

+444507
-2
lines changed

.clang-format

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: Microsoft
4+
ColumnLimit: 140
5+
AlignConsecutiveAssignments: true
6+
AlignConsecutiveDeclarations: true
7+
AllowShortBlocksOnASingleLine: Empty
8+
AllowShortIfStatementsOnASingleLine: false
9+
AllowShortLoopsOnASingleLine: false
10+
AllowShortFunctionsOnASingleLine: Inline
11+
AlignEscapedNewlines: Left
12+
AlignOperands: true
13+
AlignTrailingComments: true
14+
AllowShortBlocksOnASingleLine: false
15+
BreakConstructorInitializers: BeforeColon
16+
ReflowComments: false
17+
AllowShortCaseLabelsOnASingleLine: false
18+
BinPackParameters: false
19+
BinPackArguments: false
20+
PointerAlignment: Left
21+
IndentCaseLabels: true
22+
BreakBeforeBraces: Allman
23+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
24+
SpaceInEmptyBlock: true
25+
AlwaysBreakTemplateDeclarations: Yes

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build_*
2+
bin/*
3+
.vscode/settings.json

.vscode/launch.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "gdb",
9+
"request": "launch",
10+
"name": "x86 debug",
11+
"target": "${workspaceRoot}/bin/gcc_native/quick_start_chargepoint",
12+
"cwd": "${workspaceRoot}/bin/gcc_native/",
13+
"arguments": "",
14+
"valuesFormatting": "parseText"
15+
},
16+
{
17+
"type": "gdb",
18+
"request": "launch",
19+
"name": "x86 test debug",
20+
"target": "${workspaceRoot}/build_gcc_native/tests/tools/test_logs",
21+
"cwd": "${workspaceRoot}",
22+
"valuesFormatting": "parseText"
23+
}
24+
]
25+
}

.vscode/tasks.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build GCC native",
8+
"type": "shell",
9+
"command": "make",
10+
"args": [
11+
"gcc-native"
12+
],
13+
"problemMatcher": "$gcc",
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
},
19+
{
20+
"label": "tests GCC native",
21+
"type": "shell",
22+
"command": "make",
23+
"args": [
24+
"tests-gcc-native"
25+
],
26+
"group": "build"
27+
},
28+
{
29+
"label": "clean GCC native",
30+
"type": "shell",
31+
"command": "make",
32+
"args": [
33+
"clean-gcc-native"
34+
],
35+
"group": "build"
36+
}
37+
]
38+
}

3rdparty/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Rapidjson is an header only library
3+
add_library(rapidjson INTERFACE)
4+
target_include_directories(rapidjson INTERFACE rapidjson/include)
5+
6+
# Doctest is an header only on library
7+
add_library(doctest INTERFACE)
8+
target_include_directories(doctest INTERFACE doctest/doctest)
9+
10+
# Use default flags for the libwebsockets library
11+
set(CMAKE_C_FLAGS "-g -ggdb")
12+
set(CMAKE_CXX_FLAGS "-g -ggdb")
13+
14+
add_subdirectory(libwebsockets)

3rdparty/doctest/.clang-format

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
2+
3+
DisableFormat: false
4+
Language: Cpp
5+
Standard: Cpp11
6+
IndentWidth: 4
7+
TabWidth: 4
8+
UseTab: Never
9+
ColumnLimit: 100
10+
ReflowComments: false
11+
SortIncludes: false
12+
13+
AlignConsecutiveAssignments: true
14+
AlignConsecutiveDeclarations: true
15+
AlignEscapedNewlinesLeft: false
16+
AlignOperands: true
17+
AlignTrailingComments: true
18+
AlignAfterOpenBracket: true
19+
DerivePointerAlignment: false
20+
PointerAlignment: Left
21+
IndentCaseLabels: true
22+
ContinuationIndentWidth: 8
23+
NamespaceIndentation: Inner
24+
CompactNamespaces: true
25+
FixNamespaceComments: true
26+
AccessModifierOffset: -4
27+
28+
SpaceAfterControlStatementKeyword: false
29+
SpaceAfterCStyleCast: false
30+
SpaceBeforeAssignmentOperators: true
31+
SpaceBeforeParens: Never
32+
SpaceInEmptyParentheses: false
33+
SpacesBeforeTrailingComments: 1
34+
SpacesInAngles: false
35+
SpacesInCStyleCastParentheses: false
36+
SpacesInContainerLiterals: false
37+
SpacesInParentheses: false
38+
SpacesInSquareBrackets: false
39+
Cpp11BracedListStyle: true
40+
41+
KeepEmptyLinesAtTheStartOfBlocks: false
42+
MaxEmptyLinesToKeep: 1
43+
BinPackArguments: true
44+
BinPackParameters: true
45+
AlwaysBreakAfterReturnType: None
46+
AlwaysBreakAfterDefinitionReturnType: None
47+
AlwaysBreakTemplateDeclarations: true
48+
BreakConstructorInitializersBeforeComma: true
49+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
50+
ConstructorInitializerIndentWidth: 8
51+
52+
AllowShortIfStatementsOnASingleLine: false
53+
AllowShortLoopsOnASingleLine: false
54+
AllowShortBlocksOnASingleLine: true
55+
AllowShortCaseLabelsOnASingleLine: true
56+
AllowAllParametersOfDeclarationOnNextLine: true
57+
AllowShortFunctionsOnASingleLine: All
58+
59+
BreakBeforeBinaryOperators: false
60+
BreakBeforeTernaryOperators: false
61+
BreakStringLiterals: true
62+
BreakBeforeBraces: Custom
63+
BraceWrapping:
64+
AfterClass: true
65+
AfterEnum: true
66+
AfterNamespace: false
67+
AfterStruct: true
68+
AfterUnion: true
69+
70+
BeforeCatch: false
71+
BeforeElse: false
72+
IndentBraces: false
73+
AfterFunction: false
74+
AfterControlStatement: false
75+
76+
# penalties not thought of yet
77+
PenaltyBreakBeforeFirstCallParameter: 19
78+
PenaltyBreakComment: 60
79+
PenaltyBreakString: 1000
80+
PenaltyBreakFirstLessLess: 120
81+
PenaltyExcessCharacter: 1000000
82+
PenaltyReturnTypeOnItsOwnLine: 1000

3rdparty/doctest/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
trim_trailing_whitespace = true
6+
end_of_line = lf
7+
indent_style = space
8+
indent_size = 4
9+
insert_final_newline = true
10+
11+
[*.yml]
12+
indent_size = 2

3rdparty/doctest/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github: onqtam
2+
patreon: onqtam
3+
custom: https://www.paypal.me/onqtam/10
4+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## Description
2+
<!--
3+
If your issue is a bugreport, this means describing what you did,
4+
what did you want to happen and what actually did happen.
5+
6+
If your issue is a feature request, describe the feature and why do you
7+
want it.
8+
-->
9+
10+
11+
### Steps to reproduce
12+
<!--
13+
This is only relevant for bug reports, but if you do have one,
14+
please provide a minimal set of steps to reproduce the problem.
15+
16+
Usually this means providing a small and self-contained code using doctest
17+
and specifying compiler flags/tools used if relevant.
18+
-->
19+
20+
21+
### Extra information
22+
<!--
23+
Fill in any extra information that might be important for your issue.
24+
25+
If your issue is a bugreport, definitely fill out at least the following.
26+
-->
27+
* doctest version: **v42.42.42**
28+
* Operating System: **Joe's discount operating system**
29+
* Compiler+version: **Hidden Dragon v1.2.3**

0 commit comments

Comments
 (0)