Skip to content

Found ';' while parsing initializer list! for member function pointer  #10369

@swiesheier

Description

@swiesheier

I use doxygen 1.9.5 and get

warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)

for the docu of a member function pointer in c++

    name::ClassB<2, 3, NumberType>(
              ClassA<dim, NumberType>::*myPtr)(const name::ClassB<2,3,NumberType> &foo) const;

If I remove the template brackets for the return type,

    name::ClassB(
                  ClassA<dim, NumberType>::*myPtr)(const name::ClassB<2,3,NumberType> &foo) const;

doxygen treats it as a function and reports


    warning: parameters of member myPtr are not documented
    warning: return type of member myPtr is not documented

Is there a preprocessor trick to work around this issue?

UPDATE:

I attached a minimal example demonstrating the problem!

mwe.cc.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions