Menu

1 / 2

Missing in Action: Where @addtogroup Functions Hide

DEV Community: cpp·Flude team·12 days ago
#cgsQCka2
#devtocpp#devto#dev#doxygen#parser
Long article (438 words) — no AI summary yet.
Reading 0:00
15s threshold

During the migration of our documentation generator to a native C++ AST parser (via libclang ), we constantly pitted two models against each other: the old one, built from Doxygen XML dumps, and the new, native one. It was a long process of systematic parity checking across a massive real-world codebase.

On one such run, we noticed a strange anomaly. Hundreds of global functions—for example, cv::fastMalloc —looked as if the old Doxygen hadn't been able to parse them at all. They were in the native AST, but the Doxygen model was empty. We should have rejoiced (our new parser is cooler!), but we decided to get to the bottom of it.

It turned out the functions hadn't disappeared anywhere. They had been sitting in the Doxygen XML output the whole time; our XML parser simply refused to look at them.

The Blind Whitelist

In C++, code is physically grouped by files and namespaces. (We parsed classes and structs using a completely separate, independent mechanism).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.