In a C++ project documented with Doxygen, I have marked some functions as \deprecated in the Doxygen comments. Is there any way to use these comments (with Doxygen or another tool) in order to detect that another non-deprecated function is calling a deprecated one ? (The project is pretty big and going through all the classes would take a lot of time).
Thanks
If you are using GCC or clang to compile your code you could manually annotate functions.
Then calling
dep_funanywhere in your code will emit a diagnostic message.If you placed doxygen’s
\deprecatedannotation consistently you should be able to update the code automatically with tools like sed.