Skip to content

Commit 0025296

Browse files
committed
docs: add troubleshooting entries for PCH, Windows, and path issues
1 parent a4b954f commit 0025296

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

TESTING.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,20 @@ The clang-tidy configuration is designed to work with the MinGW-w64 cross-compil
110110

111111
### Troubleshooting
112112

113-
**Issue**: `compile_commands.json not found`
113+
**Issue**: `compile_commands.json not found`
114114
**Solution**: Run cmake configuration first: `cmake --preset <preset-name>`
115115

116-
**Issue**: clang-tidy reports errors in system headers
116+
**Issue**: PCH file not found errors (e.g., `cmake_pch.cxx.pch' not found`)
117+
**Solution**: The script now automatically strips precompiled header flags that are incompatible with clang-tidy. If you still encounter issues, ensure you're using the Python helper script which handles this automatically.
118+
119+
**Issue**: Command line too long on Windows
120+
**Solution**: The script now processes files in batches of 50 to avoid Windows command line length limits. This happens automatically.
121+
122+
**Issue**: clang-tidy reports errors in system headers
117123
**Solution**: The configuration should filter these out, but you can also use `--system-headers=false`
118124
119-
**Issue**: Too many warnings for legacy code
120-
**Solution**: Use the `--include` flag to focus on specific directories or files you're working on
125+
**Issue**: Too many warnings for legacy code
126+
**Solution**: Use the `--include` flag to focus on specific directories or files you're working on
127+
128+
**Issue**: Script fails with relative paths
129+
**Solution**: This has been fixed - the script now properly resolves relative paths. Make sure you're using the latest version.

0 commit comments

Comments
 (0)