Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doxygen support for C++11 template aliases (the 'using' syntax)?

Tags:

c++

c++11

doxygen

I'm using doxygen 1.7.1 to generate documentation for some C++ 11 code and it seems to be ignoring my template aliases.

For clarity, here's an example of a template alias:

template<class T>
using ResultOf = std::result_of<T>::type;

It also fail to pick up more tradition typedefs written with the cleaner new using syntax:

using PredicateOne = std::function<bool(string)>; // Doxygen doesn't catch this

typedef std::function<bool(string)> PredicateTwo; // but does catch this.

Is there a setting or later release that will properly document these aliases?

like image 826
Aaron Hays Avatar asked Feb 19 '23 02:02

Aaron Hays


2 Answers

version 1.8.2 supports new usage of using keyword

like image 60
ForEveR Avatar answered May 01 '23 21:05

ForEveR


FWIW, I'm pretty sure that doxygen hasn't added support for that yet, but it's probably on the todo list and the more people ask the developers nicely, the sooner it will appear.

The version you have, 1.7.1, is quite old and has no chance at all, no matter what settings you use.

like image 38
Ben Voigt Avatar answered May 01 '23 23:05

Ben Voigt