ddnet/src/game/editor
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
..
auto_map.cpp Fix clang-analyzer-cplusplus.NewDelete (Use of memory after it is freed) 2022-05-27 16:41:14 +02:00
auto_map.h Use std::vector instead of array in editor 2022-05-27 16:36:39 +02:00
editor.cpp Merge #5252 2022-05-28 10:56:21 +00:00
editor.h Use std::vector instead of array in editor 2022-05-27 16:36:39 +02:00
explanations.cpp Implement shields that remove specific weapon (fixes #4572) 2022-04-28 16:49:32 +02:00
io.cpp Use std::vector instead of array in editor 2022-05-27 16:36:39 +02:00
layer_game.cpp Fix clang-format 2022-02-15 00:32:04 +01:00
layer_quads.cpp Use std::vector instead of array in editor 2022-05-27 16:36:39 +02:00
layer_sounds.cpp Use std::vector instead of array in editor 2022-05-27 16:36:39 +02:00
layer_tiles.cpp Use std::vector instead of array in editor 2022-05-27 16:36:39 +02:00
popups.cpp Merge #5252 2022-05-28 10:56:21 +00:00