Skip to content

Commit b6b8720

Browse files
committed
Jsonifier Release v0.9.94
* Implemented a prettify function that utilizes simd instructions. * Implemented a minify function that utilizes simd instructions. * Implemented a validate function that utilizes simd instructions. * Implemented a function for parsing into std::variant types. * Implementing a fix to a buffer-overflow.
1 parent 46f4237 commit b6b8720

Some content is hidden

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

95 files changed

+47272
-12383
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,15 @@ target_include_directories(
7171
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Include/>"
7272
)
7373

74+
target_compile_options (
75+
"${PROJECT_NAME}" INTERFACE
76+
"$<$<CXX_COMPILER_ID:MSVC>:$<$<STREQUAL:${ASAN_ENABLED},TRUE>:/fsanitize=address>>"
77+
)
78+
7479
target_compile_definitions(
7580
"${PROJECT_NAME}" INTERFACE
7681
"JSONIFIER_CPU_INSTRUCTIONS=${JSONIFIER_CPU_INSTRUCTIONS}"
82+
"$<$<STREQUAL:${ASAN_ENABLED},TRUE>:ASAN>"
7783
"$<$<STREQUAL:${DEV},TRUE>:DEV>"
7884
)
7985

CMakePresets.json

Lines changed: 164 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,170 +1,172 @@
11
{
22
"version": 3,
3-
"configurePresets": [
4-
{
5-
"binaryDir": "${sourceDir}/Build/${presetName}",
6-
"condition": {
7-
"lhs": "${hostSystemName}",
8-
"rhs": "Windows",
9-
"type": "equals"
10-
},
11-
"generator": "Visual Studio 17 2022",
12-
"hidden": true,
13-
"installDir": "${sourceDir}/Install/${presetName}",
14-
"name": "Windows-Base"
15-
},
16-
{
17-
"architecture": {
18-
"value": "x64",
19-
"strategy": "external"
20-
},
21-
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" },
22-
"inherits": "Windows-Base",
23-
"name": "Windows-Release"
24-
},
25-
{
26-
"architecture": {
27-
"strategy": "external",
28-
"value": "x64"
29-
},
30-
"cacheVariables": {
31-
"CMAKE_BUILD_TYPE": "Release",
32-
"JSONIFIER_TEST": true,
33-
"DEV": true
34-
},
35-
"inherits": "Windows-Base",
36-
"name": "Windows-Release-Dev"
37-
},
38-
{
39-
"architecture": {
40-
"strategy": "external",
41-
"value": "x64"
42-
},
43-
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" },
44-
"inherits": "Windows-Base",
45-
"name": "Windows-Debug"
46-
},
47-
{
48-
"architecture": {
49-
"strategy": "external",
50-
"value": "x64"
51-
},
52-
"cacheVariables": {
53-
"CMAKE_BUILD_TYPE": "Debug",
54-
"JSONIFIER_TEST": true,
55-
"DEV": true
3+
"configurePresets": [
4+
{
5+
"installDir": "${sourceDir}/Install/${presetName}",
6+
"binaryDir": "${sourceDir}/Install/${presetName}",
7+
"condition": {
8+
"lhs": "${hostSystemName}",
9+
"rhs": "Windows",
10+
"type": "equals"
11+
},
12+
"generator": "Visual Studio 17 2022",
13+
"hidden": true,
14+
"name": "Windows-Base"
5615
},
57-
"inherits": "Windows-Base",
58-
"name": "Windows-Debug-Dev"
59-
},
60-
{
61-
"architecture": {
62-
"strategy": "external",
63-
"value": "x64"
64-
},
65-
"cacheVariables": {
66-
"ASAN_ENABLED": true,
67-
"CMAKE_BUILD_TYPE": "Release",
68-
"JSONIFIER_TEST": true
69-
},
70-
"inherits": "Windows-Base",
71-
"name": "Windows-Release-Asan"
72-
},
73-
{
74-
"architecture": {
75-
"value": "x64",
76-
"strategy": "external"
77-
},
78-
"cacheVariables": {
79-
"ASAN_ENABLED": true,
80-
"CMAKE_BUILD_TYPE": "Debug",
81-
"JSONIFIER_TEST": true
82-
},
83-
"inherits": "Windows-Base",
84-
"name": "Windows-Debug-Asan"
85-
},
86-
{
87-
"binaryDir": "${sourceDir}/Build/${presetName}",
88-
"condition": {
89-
"lhs": "${hostSystemName}",
90-
"rhs": "Linux",
91-
"type": "equals"
92-
},
93-
"generator": "Unix Makefiles",
94-
"hidden": true,
95-
"name": "Linux-Base"
96-
},
97-
{
98-
"architecture": {
99-
"value": "x64",
100-
"strategy": "external"
101-
},
102-
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" },
103-
"inherits": "Linux-Base",
104-
"name": "Linux-Release"
105-
},
106-
{
107-
"architecture": {
108-
"strategy": "external",
109-
"value": "x64"
110-
},
111-
"cacheVariables": {
112-
"CMAKE_BUILD_TYPE": "Release",
113-
"JSONIFIER_TEST": true,
114-
"DEV": true
16+
{
17+
"architecture": {
18+
"value": "x64",
19+
"strategy": "external"
20+
},
21+
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" },
22+
"inherits": "Windows-Base",
23+
"name": "Windows-Release"
11524
},
116-
"inherits": "Linux-Base",
117-
"name": "Linux-Release-Dev"
118-
},
119-
{
120-
"architecture": {
121-
"strategy": "external",
122-
"value": "x64"
123-
},
124-
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" },
125-
"inherits": "Linux-Base",
126-
"name": "Linux-Debug"
127-
},
128-
{
129-
"architecture": {
130-
"strategy": "external",
131-
"value": "x64"
132-
},
133-
"cacheVariables": {
134-
"CMAKE_BUILD_TYPE": "Debug",
135-
"JSONIFIER_TEST": true,
136-
"DEV": true
25+
{
26+
"architecture": {
27+
"strategy": "external",
28+
"value": "x64"
29+
},
30+
"cacheVariables": {
31+
"CMAKE_BUILD_TYPE": "Release",
32+
"JSONIFIER_TEST": true,
33+
"DEV": true
34+
},
35+
"inherits": "Windows-Base",
36+
"name": "Windows-Release-Dev"
13737
},
138-
"inherits": "Linux-Base",
139-
"name": "Linux-Debug-Dev"
140-
},
141-
{
142-
"architecture": {
143-
"strategy": "external",
144-
"value": "x64"
145-
},
146-
"cacheVariables": {
147-
"ASAN_ENABLED": true,
148-
"CMAKE_BUILD_TYPE": "Release",
149-
"JSONIFIER_TEST": true
150-
},
151-
"inherits": "Linux-Base",
152-
"name": "Linux-Release-Asan"
153-
},
154-
{
155-
"architecture": {
156-
"value": "x64",
157-
"strategy": "external"
158-
},
159-
"cacheVariables": {
160-
"ASAN_ENABLED": true,
161-
"CMAKE_BUILD_TYPE": "Debug",
162-
"JSONIFIER_TEST": true
163-
},
164-
"inherits": "Linux-Base",
165-
"name": "Linux-Debug-Asan"
166-
}
167-
],
38+
{
39+
"architecture": {
40+
"strategy": "external",
41+
"value": "x64"
42+
},
43+
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" },
44+
"inherits": "Windows-Base",
45+
"name": "Windows-Debug"
46+
},
47+
{
48+
"architecture": {
49+
"strategy": "external",
50+
"value": "x64"
51+
},
52+
"cacheVariables": {
53+
"CMAKE_BUILD_TYPE": "Debug",
54+
"JSONIFIER_TEST": true,
55+
"DEV": true
56+
},
57+
"inherits": "Windows-Base",
58+
"name": "Windows-Debug-Dev"
59+
},
60+
{
61+
"architecture": {
62+
"strategy": "external",
63+
"value": "x64"
64+
},
65+
"cacheVariables": {
66+
"ASAN_ENABLED": "TRUE",
67+
"CMAKE_BUILD_TYPE": "Release",
68+
"JSONIFIER_TEST": true
69+
},
70+
"inherits": "Windows-Base",
71+
"name": "Windows-Release-Asan"
72+
},
73+
{
74+
"architecture": {
75+
"value": "x64",
76+
"strategy": "external"
77+
},
78+
"cacheVariables": {
79+
"ASAN_ENABLED": "TRUE",
80+
"CMAKE_BUILD_TYPE": "Debug",
81+
"JSONIFIER_TEST": true
82+
},
83+
"inherits": "Windows-Base",
84+
"name": "Windows-Debug-Asan"
85+
},
86+
{
87+
"installDir": "${sourceDir}${presetName}",
88+
"binaryDir": "${sourceDir}${presetName}",
89+
"cacheVariables": {"CMAKE_CXX_COMPILER": "/usr/bin/clang++-18", "CMAKE_C_COMPILER": "/usr/bin/clang-18"},
90+
"condition": {
91+
"lhs": "${hostSystemName}",
92+
"rhs": "Linux",
93+
"type": "equals"
94+
},
95+
"generator": "Unix Makefiles",
96+
"hidden": true,
97+
"name": "Linux-Base"
98+
},
99+
{
100+
"architecture": {
101+
"value": "x64",
102+
"strategy": "external"
103+
},
104+
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" },
105+
"inherits": "Linux-Base",
106+
"name": "Linux-Release"
107+
},
108+
{
109+
"architecture": {
110+
"strategy": "external",
111+
"value": "x64"
112+
},
113+
"cacheVariables": {
114+
"CMAKE_BUILD_TYPE": "Release",
115+
"JSONIFIER_TEST": true,
116+
"DEV": true
117+
},
118+
"inherits": "Linux-Base",
119+
"name": "Linux-Release-Dev"
120+
},
121+
{
122+
"architecture": {
123+
"strategy": "external",
124+
"value": "x64"
125+
},
126+
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" },
127+
"inherits": "Linux-Base",
128+
"name": "Linux-Debug"
129+
},
130+
{
131+
"architecture": {
132+
"strategy": "external",
133+
"value": "x64"
134+
},
135+
"cacheVariables": {
136+
"CMAKE_BUILD_TYPE": "Debug",
137+
"JSONIFIER_TEST": true,
138+
"DEV": true
139+
},
140+
"inherits": "Linux-Base",
141+
"name": "Linux-Debug-Dev"
142+
},
143+
{
144+
"architecture": {
145+
"strategy": "external",
146+
"value": "x64"
147+
},
148+
"cacheVariables": {
149+
"ASAN_ENABLED": true,
150+
"CMAKE_BUILD_TYPE": "Release",
151+
"JSONIFIER_TEST": true
152+
},
153+
"inherits": "Linux-Base",
154+
"name": "Linux-Release-Asan"
155+
},
156+
{
157+
"architecture": {
158+
"value": "x64",
159+
"strategy": "external"
160+
},
161+
"cacheVariables": {
162+
"ASAN_ENABLED": true,
163+
"CMAKE_BUILD_TYPE": "Debug",
164+
"JSONIFIER_TEST": true
165+
},
166+
"inherits": "Linux-Base",
167+
"name": "Linux-Debug-Asan"
168+
}
169+
],
168170
"buildPresets": [
169171
{
170172
"configurePreset": "Windows-Release",

0 commit comments

Comments
 (0)