Closed
Description
Describe the bug
Using the following code:
#include <concepts>
#include <string>
/// my class
class Foo
{
public:
/// Ctor for string argument
template <typename StrType>
requires std::constructible_from<std::string, StrType>
Foo(StrType pathAsStr) : member(pathAsStr) { }
/// myfunc
template <typename StrType>
requires std::constructible_from<std::string, StrType> void myfunc(StrType pathAsStr);
};
I get the following warning:
def/foo.hpp:15: warning: Member myfunc(StrType pathAsStr) (function) of class Foo is not documented.
Expected behavior
myfunc
is documented and the comment should be recognized.
Version
1.9.2
Additional context
The problem disappears in various circumstances, e.g. when adding another declaration with comment between constructor and operator=
, or when removing the constructor.