You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will run the game in the background and check that each replay is compatible. You need to use a VC6 build with optimizations and RTS_BUILD_OPTION_DEBUG = OFF, otherwise the game won't be compatible.
16
+
It will run the game in the background and check that each replay is compatible. You need to use a VC6 build with optimizations and RTS_BUILD_OPTION_DEBUG = OFF, otherwise the game won't be compatible.
17
+
18
+
## Code Quality Analysis with clang-tidy
19
+
20
+
The project includes clang-tidy configuration for static code analysis to help maintain code quality and catch potential bugs.
21
+
22
+
### Prerequisites
23
+
24
+
1.**CMake with compile commands export**: The CMake presets already have `CMAKE_EXPORT_COMPILE_COMMANDS=ON` configured.
25
+
2.**clang-tidy**: Install clang-tidy for your platform:
26
+
-**Linux**: `apt install clang-tidy` or `yum install clang-tools-extra`
27
+
-**Windows**: Install LLVM or use the version that comes with Visual Studio
28
+
-**macOS**: `brew install llvm` or use Xcode command line tools
29
+
30
+
### Running clang-tidy
31
+
32
+
#### Method 1: Using the helper script (Recommended)
33
+
34
+
The project includes a Python script that simplifies running clang-tidy:
35
+
36
+
```bash
37
+
# Analyze all source files
38
+
python3 scripts/run-clang-tidy.py
39
+
40
+
# Analyze only Core directory
41
+
python3 scripts/run-clang-tidy.py --include Core/
42
+
43
+
# Analyze GeneralsMD but exclude certain patterns
44
+
python3 scripts/run-clang-tidy.py --include GeneralsMD/ --exclude test
0 commit comments