Skip to content

Commit 18b1df2

Browse files
committed
docs: add Windows-compatible alternatives for clang-tidy commands
Add Windows Command Prompt and PowerShell alternatives to the existing Unix/Linux find command for running clang-tidy on multiple files. The Python helper script already supports all platforms.
1 parent 4758095 commit 18b1df2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

TESTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,14 @@ cmake --preset win32 # or vc6, unix, etc.
6161
# Run clang-tidy on specific files
6262
clang-tidy -p build/win32 Core/Libraries/Source/RTS/File.cpp
6363

64-
# Run on multiple files with pattern
64+
# Run on multiple files with pattern (Unix/Linux/macOS)
6565
find Core/ -name "*.cpp" | xargs clang-tidy -p build/win32
66+
67+
# Windows Command Prompt alternative
68+
for /r Core\ %i in (*.cpp) do clang-tidy -p build/win32 "%i"
69+
70+
# Windows PowerShell alternative
71+
Get-ChildItem -Path Core\ -Recurse -Filter "*.cpp" | ForEach-Object { clang-tidy -p build/win32 $_.FullName }
6672
```
6773
6874
### Configuration

0 commit comments

Comments
 (0)