1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/test
Alexander Wilms 522cb571b3 Remove redundant virtual specifiers
`grep -nr virtual | grep -v googletest | grep override > ../redundant_virtual.txt`

```python
import os

with open("../redundant_virtual.txt") as f:
    for line in f:
        print()
        line: str = line.strip()
        print(line)
        tmp = line.split(":")
        file = tmp[0].strip()
        code = tmp[-1].strip()
        print(file)
        print(code)
        new_code = code.replace("virtual ", "", 1)
        # https://superuser.com/a/802490/578501
        command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
        os.system(command)
```
2024-02-10 20:46:13 +01:00
..
battle Use auto instead of redundant type in initializations using new 2024-01-16 21:40:53 +00:00
entity Replace redundant types with auto for the lvalues of template factory functions for smart pointers 2024-01-17 12:50:00 +00:00
erm Replace redundant types with auto for the lvalues of template factory functions for smart pointers 2024-01-17 12:50:00 +00:00
events Replace redundant types with auto for the lvalues of template factory functions for smart pointers 2024-01-17 12:50:00 +00:00
game Fix build 2024-01-19 13:56:05 +02:00
googletest@b796f7d446 vcmi: use std::optional 2023-04-17 00:43:13 +03:00
map Fix build 2024-01-19 13:56:05 +02:00
mock Fix build 2024-01-19 13:56:05 +02:00
netpacks Fix Lua and test building 2023-10-23 16:05:38 +03:00
rmg Replace redundant types with auto for the lvalues of template factory functions for smart pointers 2024-01-17 12:50:00 +00:00
scripting Fix build 2024-01-19 13:56:05 +02:00
serializer vcmi: use std::optional 2023-04-17 00:43:13 +03:00
spells Fix build 2024-01-19 13:56:05 +02:00
testdata Fix JSON files 2023-09-17 12:36:57 +00:00
vcai Remove duplicate semicolons 2024-01-16 19:02:39 +00:00
CMakeLists.txt Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
CMemoryBufferTest.cpp
CVcmiTestConfig.cpp tests: disable settings.init() 2023-04-27 20:59:55 +03:00
CVcmiTestConfig.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
JsonComparer.cpp Use API identical to std classes where possible 2023-08-23 16:32:29 +03:00
JsonComparer.h
main.cpp
StdInc.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
StdInc.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
Test.cbp
Test.vcxproj
Test.vcxproj.filters