ddnet/src/engine/server
bors[bot] ccf0622984
Merge #5252
5252: Use std::vector instead of array, remove base/tl/array.h, algorithm.h, allocator.h, range.h r=def- a=Robyt3

Replaces all usages of `array` with `std::vector`.

I adjusted variable names of variables I changed to use the `v` prefix. Not so in the editor however, as there are already many changes due to clang-tidy enforcing the use of for-each loops.

This allows us to remove all remaining `base/tl` headers except `threading.h`.

Clang-tidy now finds `clang-analyzer-cplusplus.NewDelete` (Use of memory after it is freed), which is also fixed here, though it appears to be a false-positive.

This last remaining usages of `goto` are also removed.

## Checklist

- [X] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
2022-05-28 10:56:21 +00:00
..
databases Add override in mysql code too (fixes #5139) 2022-05-19 10:35:24 +02:00
antibot.cpp Remove some useless conditions around free 2022-03-01 23:19:49 +01:00
antibot.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
authmanager.cpp Use std::vector<CKey> instead of array 2022-05-27 16:31:18 +02:00
authmanager.h Use std::vector<CKey> instead of array 2022-05-27 16:31:18 +02:00
name_ban.cpp Use std::vector<CNameBan> instead of array 2022-05-27 16:31:18 +02:00
name_ban.h Use std::vector<CNameBan> instead of array 2022-05-27 16:31:18 +02:00
register.cpp Add HTTP masterserver registering and HTTP masterserver 2022-05-20 08:58:32 +02:00
register.h Add HTTP masterserver registering and HTTP masterserver 2022-05-20 08:58:32 +02:00
server.cpp Merge #5252 2022-05-28 10:56:21 +00:00
server.h Merge #5252 2022-05-28 10:56:21 +00:00
sql_string_helpers.cpp Don't make score test depend on specific timestamp 2021-12-25 01:33:08 +01:00
sql_string_helpers.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
upnp.cpp Minor clang-tidy fix with -DWEBSOCKETS=ON -DUPNP=ON 2022-05-19 18:57:49 +02:00
upnp.h Run clang-format 2020-09-26 21:50:15 +02:00