Alexander Wilms
|
f08c6d1ce9
|
Fix issues created by type replacement script
|
2024-01-17 14:33:02 +00:00 |
|
Alexander Wilms
|
73019c204d
|
Replace redundant types with auto for the lvalues of template factory functions for smart pointers
grep -r --include \*.h --include \*.cpp "= std::" * | grep -v auto | grep -Po ".*[^ ]+ [^ ]+ [^ ]*[ ]*=.*;" | grep -v "auto\|int\|char\|bool\|float|\double\|for\|if\|googletest\|fuzzylite\|size_t\|using\|return" | grep -v double | grep -v si64 | grep -v si32 | grep -v ui32 | grep \< | grep -v float | tr -d '\t' | grep -v assert > redundant_types.txt
import re
with open("redundant_types.txt") as f:
for line in f:
line = line.strip()
path = line.split(":", 1)[0]
original_code = ":".join(line.split(":")[1:]).strip()
print()
print(path)
print(original_code)
prefix = "auto "
if original_code.startswith("static"):
static = True
else:
static = False
cpp_type = " ".join(original_code.split("=")[0].strip().split(" ")[0:-1])
print(cpp_type)
if static:
new_code = "static auto "+ " ".join(original_code.split(" ")[2:])
else:
new_code = "auto "+ " ".join(original_code.split(" ")[1:])
print(new_code)
if True:
with open(path, "r") as f:
filedata = f.read()
filedata = filedata.replace(original_code, new_code)
with open(path, "w") as f:
f.write(filedata)
|
2024-01-17 12:50:00 +00:00 |
|
Ivan Savenko
|
e849e4170a
|
Merge pull request #3486 from Alexander-Wilms/replace-redundant-types-with-auto
Replace redundant types with `auto`
|
2024-01-17 13:31:05 +02:00 |
|
Alexander Wilms
|
24b5f3f552
|
Fix CQuest.h:101:2: error: 'auto' not allowed in non-static class member
|
2024-01-16 21:46:25 +00:00 |
|
Alexander Wilms
|
1b85abb508
|
Use auto instead of redundant type in initializations using new
grep -r --include \*.h --include \*.cpp "=" * | grep -v "auto\|int\|char\|bool\|float|\double\|for\|if\|googletest\|fuzzylite\|size_t\|using\|return\|{\|}\|= \"\|= tr(\|virtual\|void" | grep -Po ".*[^ ]+ [^ ]+ [^ ]*[ ]*=.*;" | grep -v "float\|nullptr" | grep "new" | grep -v "AI/FuzzyLite" | grep \( | grep "= new" > redundant_types.txt
import re
with open("redundant_types.txt") as f:
for line in f:
line = line.strip()
path = line.split(":", 1)[0]
original_code = line.split(":")[1].strip()
if "new " in original_code:
cpp_type = original_code.split(" ")[0]
if original_code.count(cpp_type) == 2:
print()
print(path)
print(original_code)
new_code = "auto "+" ".join(original_code.split(" ")[1:])
print(new_code)
with open(path, "r") as f:
filedata = f.read()
filedata = filedata.replace(original_code, new_code)
with open(path, "w") as f:
f.write(filedata)
|
2024-01-16 21:40:53 +00:00 |
|
Ivan Savenko
|
93b0838e45
|
Merge pull request #3509 from Alexander-Wilms/remove-duplicate-semicolons
Remove duplicate semicolons
|
2024-01-16 22:16:46 +02:00 |
|
Alexander Wilms
|
cca08e29da
|
Remove duplicate semicolons
|
2024-01-16 19:02:39 +00:00 |
|
Ivan Savenko
|
a5e95cce96
|
Merge pull request #3506 from vcmi/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
|
2024-01-16 11:42:43 +02:00 |
|
dependabot[bot]
|
6604dfb776
|
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2024-01-16 04:21:56 +00:00 |
|
Ivan Savenko
|
d1055bdf2c
|
Merge pull request #3501 from Alexander-Wilms/remove-unused-git-branch-name
CI config cleanup
|
2024-01-15 19:07:07 +02:00 |
|
Alexander Wilms
|
cb82fcd954
|
Try to work around macOS CPack error
|
2024-01-15 13:00:41 +00:00 |
|
Alexander Wilms
|
9dd09d0a7e
|
Make CI badge link to scheduled builds
|
2024-01-15 12:24:04 +00:00 |
|
Alexander Wilms
|
58f0dbc38b
|
CI: Remove act10ns/slack action, since Slack's own GitHub app is sufficient
|
2024-01-15 11:11:24 +00:00 |
|
Alexander Wilms
|
03b20b5d58
|
CI: Add empty lines between steps in workflow file
|
2024-01-15 11:11:18 +00:00 |
|
Alexander Wilms
|
7c836f1320
|
Removed the unused EthanSK/git-branch-name-action@v1 action from CI workflow
|
2024-01-15 10:37:06 +00:00 |
|
Ivan Savenko
|
f863665ede
|
Merge pull request #3496 from vcmi/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
|
2024-01-15 12:21:34 +02:00 |
|
Ivan Savenko
|
62abe9d1e3
|
Merge pull request #3497 from vcmi/dependabot/github_actions/actions/download-artifact-4
Bump actions/download-artifact from 3 to 4
|
2024-01-15 12:21:22 +02:00 |
|
Ivan Savenko
|
87b26acdf8
|
Merge pull request #3495 from vcmi/dependabot/github_actions/act10ns/slack-2
Bump act10ns/slack from 1 to 2
|
2024-01-15 12:03:39 +02:00 |
|
Ivan Savenko
|
656162dedf
|
Merge pull request #3494 from vcmi/dependabot/github_actions/actions/setup-python-5
Bump actions/setup-python from 4 to 5
|
2024-01-15 12:03:15 +02:00 |
|
Ivan Savenko
|
7b4a4319c1
|
Merge pull request #3493 from vcmi/dependabot/github_actions/octokit/request-action-2.1.9
Bump octokit/request-action from 2.1.0 to 2.1.9
|
2024-01-15 12:02:46 +02:00 |
|
Ivan Savenko
|
cb79a45748
|
Merge pull request #3483 from Alexander-Wilms/semicolons-after-macros
Remove trailing semicolons from macro definitions
|
2024-01-15 11:58:33 +02:00 |
|
Alexander Wilms
|
bc781c28e0
|
Remove trailing semicolon from NET_EVENT_HANDLER macro
|
2024-01-14 14:49:25 +00:00 |
|
Alexander Wilms
|
d2b105f216
|
CLoggerBase: Use IvanSavenko's single-statement macro so that ct100 is not immediately destroyed
|
2024-01-14 14:48:48 +00:00 |
|
dependabot[bot]
|
8144165bdb
|
Bump actions/download-artifact from 3 to 4
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2024-01-14 13:11:18 +00:00 |
|
dependabot[bot]
|
fba3716aa1
|
Bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2024-01-14 13:11:15 +00:00 |
|
dependabot[bot]
|
cbc0190429
|
Bump act10ns/slack from 1 to 2
Bumps [act10ns/slack](https://github.com/act10ns/slack) from 1 to 2.
- [Release notes](https://github.com/act10ns/slack/releases)
- [Changelog](https://github.com/act10ns/slack/blob/master/RELEASE.md)
- [Commits](https://github.com/act10ns/slack/compare/v1...v2)
---
updated-dependencies:
- dependency-name: act10ns/slack
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2024-01-14 13:11:11 +00:00 |
|
dependabot[bot]
|
85d5e360af
|
Bump actions/setup-python from 4 to 5
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2024-01-14 13:11:08 +00:00 |
|
dependabot[bot]
|
bb0816dd14
|
Bump octokit/request-action from 2.1.0 to 2.1.9
Bumps [octokit/request-action](https://github.com/octokit/request-action) from 2.1.0 to 2.1.9.
- [Release notes](https://github.com/octokit/request-action/releases)
- [Commits](https://github.com/octokit/request-action/compare/v2.1.0...v2.1.9)
---
updated-dependencies:
- dependency-name: octokit/request-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2024-01-14 13:11:04 +00:00 |
|
Ivan Savenko
|
2be41fa916
|
Merge pull request #3492 from IvanSavenko/fix_dependabot_name
corrected dependabot file name
|
2024-01-14 15:10:42 +02:00 |
|
Ivan Savenko
|
5d21f103c8
|
corrected dependabot file name
|
2024-01-14 14:38:48 +02:00 |
|
Ivan Savenko
|
d4509bd03b
|
Merge pull request #3487 from Alexander-Wilms/ci-badge
CI badge: Only report status of vcmi/vcmi, ignore statuses of PRs
|
2024-01-14 14:22:01 +02:00 |
|
Ivan Savenko
|
ab1cdb0cab
|
Merge pull request #3488 from Alexander-Wilms/dependabot-config
Add Dependabot configuration to update GitHub Actions
|
2024-01-14 14:18:21 +02:00 |
|
Ivan Savenko
|
43ad7882e0
|
Merge pull request #3478 from kdmcser/develop
Update Chinese translation for launcher
|
2024-01-14 13:46:22 +02:00 |
|
Alexander Wilms
|
a0565e522b
|
Add Dependabot configuration to update GitHub Actions
|
2024-01-14 00:59:51 +00:00 |
|
Alexander Wilms
|
09ce8cef96
|
CI badge: Only report status of vcmi/vcmi, ignore statuses of PRs
Show status of latest scheduled CI run on the develop branch.
Until now, the status of the latest CI run was shown, even if that was triggered by a PR
|
2024-01-13 23:05:14 +00:00 |
|
Alexander Wilms
|
f81a0cb4b6
|
CLoggerBase: Remove semicolon from RAII_TRACE definition
Fixes the following SonarCloud issue:
Modify the macro definition so that it needs to be followed by a semicolon, or remove this empty statement.
Empty statements should be removed cpp:S1116
https://sonarcloud.io/organizations/vcmi/rules?open=cpp%3AS1116&rule_key=cpp%3AS1116
|
2024-01-13 18:13:56 +00:00 |
|
Andrii Danylchenko
|
4b8f8d90f6
|
Merge pull request #3479 from vcmi/enable-unit-tests
Enable unit tests
|
2024-01-13 18:22:33 +02:00 |
|
Andrii Danylchenko
|
50b45367dc
|
Disable tests if no secret exists
|
2024-01-13 13:50:47 +02:00 |
|
Andrii Danylchenko
|
b9a988a48d
|
Update github.yml
|
2024-01-13 13:02:12 +02:00 |
|
Andrii Danylchenko
|
d6213482ed
|
Update github.yml to enable unit tests from vcmi-test-data repo
|
2024-01-13 12:54:39 +02:00 |
|
Andrii Danylchenko
|
e46f442a20
|
Merge pull request #2838 from Alexander-Wilms/ci-using-encrypted-data
Enable unit tests for Linux CI builds
|
2024-01-13 12:26:28 +02:00 |
|
kdmcser
|
f9252f2e90
|
Update Chinese translation for mapeditor
|
2024-01-13 17:57:36 +08:00 |
|
kdmcser
|
a2cda7f736
|
add Chinese mapeditor translation into its CMakeFiles.txt
|
2024-01-13 17:27:28 +08:00 |
|
kdmcser
|
f3c89d0019
|
Update Chinese translation for launcher
|
2024-01-13 13:17:03 +08:00 |
|
Ivan Savenko
|
29eab0fdbe
|
Merge pull request #3476 from kdmcser/develop
Add Chinese translate for mapeditor
|
2024-01-12 21:54:22 +02:00 |
|
Ivan Savenko
|
019a4151b9
|
Merge pull request #3258 from SoundSSGood/trade-panels
Market rework
|
2024-01-12 21:53:13 +02:00 |
|
kdmcser
|
1d4862fc83
|
add Chinese translate for mapeditor
|
2024-01-12 23:12:54 +08:00 |
|
kdmcser
|
765425a785
|
fix wrong translate string in Chinese
|
2024-01-12 23:12:19 +08:00 |
|
SoundSSGood
|
4df7de36c1
|
fixed regression
|
2024-01-11 14:51:42 +02:00 |
|
SoundSSGood
|
b840cf3650
|
suggested changes
|
2024-01-11 12:46:32 +02:00 |
|