If you use GCC or clang to compile the code, you can manually annotate the functions.
__attribute__((__deprecated__)) void dep_fun() { }
Then calling dep_fun anywhere in your code will produce a diagnostic message.
If you placed the doxygen \deprecated annotation sequentially, you should be able to automatically update the code using tools such as sed.
source share