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
For some use cases it would be useful to be able to run clang-uml with a --watch option, that would generate diagrams, and then subscribe for filesystem events. In case any of the files matching any of the glob patterns in any diagram changes, it would automatically regenerate such diagram.
This could be done either by using non-portable OS specific mechanisms such as inotify, or by looping forever on the list of translation units from compile_commands.json and comparing timestamps (this would be portable through std::filesystem).
The main problem is that this will only detect changes in the main translation unit cpp file, not in any of its headers. For this we could extend diagram generation to return a list of all included headers, and cache it so on the next loop iteration we can watch those files too...
The text was updated successfully, but these errors were encountered:
For some use cases it would be useful to be able to run
clang-uml
with a--watch
option, that would generate diagrams, and then subscribe for filesystem events. In case any of the files matching any of the glob patterns in any diagram changes, it would automatically regenerate such diagram.This could be done either by using non-portable OS specific mechanisms such as inotify, or by looping forever on the list of translation units from
compile_commands.json
and comparing timestamps (this would be portable throughstd::filesystem
).The main problem is that this will only detect changes in the main translation unit cpp file, not in any of its headers. For this we could extend diagram generation to return a list of all included headers, and cache it so on the next loop iteration we can watch those files too...
The text was updated successfully, but these errors were encountered: