File: ddnet.code-workspace

package info (click to toggle)
ddnet 19.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 68,960 kB
  • sloc: cpp: 195,050; ansic: 58,572; python: 5,568; asm: 946; sh: 941; java: 366; xml: 206; makefile: 31
file content (260 lines) | stat: -rw-r--r-- 7,104 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
{
	"folders": [
		{
			"path": "../.."
		}
	],
	"settings": {
		"files.associations": {
			"*.tcc": "cpp",
			"array": "cpp",
			"atomic": "cpp",
			"cctype": "cpp",
			"chrono": "cpp",
			"clocale": "cpp",
			"cmath": "cpp",
			"condition_variable": "cpp",
			"cstdarg": "cpp",
			"cstddef": "cpp",
			"cstdint": "cpp",
			"cstdio": "cpp",
			"cstdlib": "cpp",
			"cstring": "cpp",
			"ctime": "cpp",
			"cwchar": "cpp",
			"cwctype": "cpp",
			"deque": "cpp",
			"list": "cpp",
			"unordered_map": "cpp",
			"vector": "cpp",
			"exception": "cpp",
			"algorithm": "cpp",
			"functional": "cpp",
			"iterator": "cpp",
			"map": "cpp",
			"memory": "cpp",
			"memory_resource": "cpp",
			"numeric": "cpp",
			"optional": "cpp",
			"random": "cpp",
			"ratio": "cpp",
			"string": "cpp",
			"string_view": "cpp",
			"system_error": "cpp",
			"tuple": "cpp",
			"type_traits": "cpp",
			"utility": "cpp",
			"fstream": "cpp",
			"initializer_list": "cpp",
			"iosfwd": "cpp",
			"istream": "cpp",
			"limits": "cpp",
			"mutex": "cpp",
			"new": "cpp",
			"ostream": "cpp",
			"sstream": "cpp",
			"stdexcept": "cpp",
			"streambuf": "cpp",
			"thread": "cpp",
			"cinttypes": "cpp",
			"typeinfo": "cpp",
			"valarray": "cpp",
			"bit": "cpp",
			"compare": "cpp",
			"concepts": "cpp",
			"ranges": "cpp",
			"stop_token": "cpp",
			"hash_map": "cpp",
			"hash_set": "cpp",
			"forward_list": "cpp",
			"set": "cpp",
			"iomanip": "cpp",
			"iostream": "cpp",
			"any": "cpp",
			"unordered_set": "cpp",
			"variant": "cpp"
		},
		// clang-format-10 has to be in your PATH
		// for linux simply grep a static built clang-format-10 from here:
		// https://aur.archlinux.org/packages/clang-format-static-bin
		"clang-format.executable": "clang-format-10",
		"lldb.launch.expressions": "native",
		"lldb.launch.initCommands": ["target stop-hook add --one-liner \"command script import ${workspaceFolder}/other/vscode/lldbinit.py\""],
		"editor.defaultFormatter": "xaver.clang-format",
		"[rust]": {
			"editor.defaultFormatter": "rust-lang.rust-analyzer",
		},
		"editor.formatOnSave": true,
		"cmake.additionalKits": [
			"${workspaceFolder}/other/vscode/ddnet-cmake-tools-kits.json"
		],
		"cmake.defaultVariants": {
			"buildType": {
				"default": "debug",
				"description": "build types",
				"choices": {
					"debug": {
						"short": "Debug",
						"long": "Disable optimizations",
						"buildType": "Debug",
						"settings": {
							"CMAKE_CXX_FLAGS": "",
							"CMAKE_C_FLAGS": "",
						}
					},
					"release": {
						"short": "Release",
						"long": "Enable optimizations",
						"buildType": "Release",
						"settings": {
							"CMAKE_CXX_FLAGS": "",
							"CMAKE_C_FLAGS": "",
						}
					},
					"minsize": {
						"short": "MinSizeRel",
						"long": "Enable optimizations, optimized for size",
						"buildType": "MinSizeRel",
						"settings": {
							"CMAKE_CXX_FLAGS": "",
							"CMAKE_C_FLAGS": "",
						}
					},
					"reldeb": {
						"short": "RelWithDebInfo",
						"long": "Enable optimizations, provide debug symbols",
						"buildType": "RelWithDebInfo",
						"settings": {
							"CMAKE_CXX_FLAGS": "",
							"CMAKE_C_FLAGS": "",
						}
					},
					"debAndASAN": {
						"short": "Debug + ASAN (only for clang)",
						"long": "Disable optimizations, enable ASAN & UBSAN",
						"buildType": "Debug",
						"settings": {
							"CMAKE_CXX_FLAGS": "-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer",
							"CMAKE_C_FLAGS": "-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer",
						}
					},
					"relAndASAN": {
						"short": "RelWithDebInfo + ASAN (only for clang)",
						"long": "Enable optimizations, enable ASAN & UBSAN",
						"buildType": "RelWithDebInfo",
						"settings": {
							"CMAKE_CXX_FLAGS": "-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer",
							"CMAKE_C_FLAGS": "-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer",
						}
					},
					"debAndTSAN": {
						"short": "Debug + TSAN (only for clang)",
						"long": "Disable optimizations, enable TSAN & UBSAN",
						"buildType": "Debug",
						"settings": {
							"CMAKE_CXX_FLAGS": "-fsanitize=thread,undefined -fsanitize-recover=thread,undefined -fno-omit-frame-pointer",
							"CMAKE_C_FLAGS": "-fsanitize=thread,undefined -fsanitize-recover=thread,undefined -fno-omit-frame-pointer",
						}
					},
					"relAndTSAN": {
						"short": "RelWithDebInfo + TSAN (only for clang)",
						"long": "Enable optimizations, enable TSAN & UBSAN",
						"buildType": "RelWithDebInfo",
						"settings": {
							"CMAKE_CXX_FLAGS": "-fsanitize=thread,undefined -fsanitize-recover=thread,undefined -fno-omit-frame-pointer",
							"CMAKE_C_FLAGS": "-fsanitize=thread,undefined -fsanitize-recover=thread,undefined -fno-omit-frame-pointer",
						}
					}
				}
			}
		},
	},
	"extensions": {
		"recommendations": [
			"xaver.clang-format",
			"llvm-vs-code-extensions.vscode-clangd",
			"twxs.cmake",
			"ms-vscode.cmake-tools",
			"vadimcn.vscode-lldb",
			"rust-lang.rust-analyzer"
		]
	},
	"tasks": {
		"version": "2.0.0",
		"tasks": [
			{
				"type": "cmake",
				"label": "CMake: build client",
				"command": "build",
				"targets": [
					"DDNet"
				],
				"group": {
					"kind": "build",
					"isDefault": true
				},
				"problemMatcher": [],
				"detail": "Build client targets"
			},
			{
				"type": "cmake",
				"label": "CMake: build server",
				"command": "build",
				"targets": [
					"DDNet-Server"
				],
				"group": {
					"kind": "build",
					"isDefault": true
				},
				"problemMatcher": [],
				"detail": "Build server targets"
			}
		]
	},
	"launch": {
		"version": "0.2.0",
		"configurations": [
			{
				"type": "lldb",
				"request": "launch",
				"name": "Launch client",
				"program": "${workspaceFolder}/build/DDNet",
				"preLaunchTask": "CMake: build client",
				// use dbg configs like this
				// "args": [ "dbg_gfx 0" ],
				// enable this to start the debugger with TSAN
				// "environment": [ { "name":"TSAN_OPTIONS","value":"ignore_noninstrumented_modules=1" }],
				"cwd": "${workspaceFolder}/build",
			},
			{
				"type": "lldb",
				"request": "launch",
				"name": "Launch server",
				"program": "${workspaceFolder}/build/DDNet-Server",
				"preLaunchTask": "CMake: build server",
				"cwd": "${workspaceFolder}/build"
			},
			// useful for cross debugging the windows (wine) client
			// for these you need the microsoft cpp extension
			// start the wine executable like this:
			// winedbg --gdb --no-start --port 55555 DDNet.exe
			{
				"type": "cppdbg",
				"request": "launch",
				"name": "Attach to wine gdbserver",
				"program": "${workspaceFolder}/build_win/DDNet.exe",
				"miDebuggerServerAddress": "localhost:55555",
				"cwd": "${workspaceFolder}/build_win/",
				"MIMode": "gdb",
				"setupCommands": [
					{
						"description": "Auto styling for \"gdb\"",
						"text": "-enable-pretty-printing",
						"ignoreFailures": true
					}
				]
			}
		]
	}
}