[help] Doxygen: Is it possible to reference methods and data members in other method's comment block?

Hello everyone, I've recently picked up doxygen and have been trying to document an old project, nevertheless, I have some class's method and I want to refer in the docs to another class's method and a data member of the same class

Here's the method:

void App::start() { for (unsigned i = 0; i < currentScene->gameObjects.size(); ++i) { currentScene->gameObjects[i]->start(); } timeSinceStart.restart(); }

I want to have a reference to GameObject::start and App::timeSinceStart in App::start doc block

(Sorry not in monospace, my Lemmy client doesn't seem to support it and I don't know the syntax here if one present)

10 points · 2 comments · view on lemmy.world

2 Comments

glad_cat@lemmy.sdf.org · 2 pts · 2y (1 reply)

If they are part of the same project, it’s pretty much a standard feature. You can link anything.

I’m on mobile but it seems to be this: https://www.doxygen.nl/manual/autolink.html

Red1C3@lemmy.world · 1 pts · 2y

This is exactly what I needed, thanks a lot