lundi 22 mai 2017

How can I suppress the code of an lambda function from doxygen documentation

When I use an anonymous lambda function in a C++ class instantiation, doxygen lists the entirety of the lambda function's code in the declaration of the function.

Here is an example to illustrate:

NameMatcher MyNameMatch(
[](std::string &name) 
{
  return (name == "John Doe");
});

In the "variables" section of the HTML output, doxygen shows the the entirety of the code of the lambda function as the constructor argument.

Is there any way to alter that behavior and show something like "lambda function" or "anonymous function" as the argument instead?

Aucun commentaire:

Enregistrer un commentaire