I have a huge library and couple classes planned to be decommissioned.
E.g.:
class [[deprecated]] OldApi {
// details
};
The idea is that everything what uses this class is deprecated. E.g.: a hidden dependency looks like this in header:
// on API we have no old API dependency
void hiddenDependency();
and in compiling unit:
void hiddenDependency()
{
OldApi inst;
// work on it/do something
}
I have really deep dependency graph so manual solution would be a pain. Is there any way/tool to inherit these deprecate attributes?
So after using this tool, the hidden dependencies also would be deprecated:
[[deprecated]]
void hiddenDependency();
Many thanks for help!