Using uv:
uvx git+https://github.com/buntec/watch-my-cpp --help
Prerequisites:
- Clang/GCC based C++ project with a
compile_commands.json - ccache
- clang-tidy (optional)
- cppcheck (optional)
- include-what-you-use (optional)
All sources and include directories are continuously watched for changes.
(Use --ignore-patterns to filter out parts of a project you don't want to watch/recompile.)
A change in a source file triggers a recompilation of that source.
A change in a header file triggers the recompilation of all sources whose include path contains that header (regardless of whether they actually #include it).
We use ccache to cache compilations.
See the ccache docs for configuration options.
Works with on macOS and Linux. Tested on Firefox and Chrome.
Prerequisites:
Optional but recommended:
