Menu

1 / 3

The Invisible Type: Three Escapes of size_t from Linux CI

DEV Community: cpp·Flude team·16 days ago
#SGHdt8ob
#devtocpp#devto#dev#include#size_t
Long article (700 words) — no AI summary yet.
Reading 0:00
15s threshold

Unlike int or float , in C++ the size_t type is not a built-in language keyword. It is a regular typedef that lives in system header files (for example, <cstddef> ). However, in real projects, developers often use size_t "naked," without an explicit #include , relying on transitive inclusion from other files.

The old Doxygen parser we were stuck on before didn't care about this—it worked like a regular expression and simply read text. But when we switched to a true AST parser (via libclang ), the compiler demanded strictness. And so began one of the most ridiculous quests in the history of our CI.

Escape One: Silent Annihilation

We wrote tests for the new parser, ran them locally on Windows—everything was green. Over 1200 tests passed successfully, the operator size_t() method parsed perfectly.…

Continue reading — create a free account

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