After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 742095 - Missing documentation after nested C++11 unified initializer
Missing documentation after nested C++11 unified initializer
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.8
Other All
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-12-29 17:17 UTC by Freddie Chopin
Modified: 2015-06-27 19:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case - nested initializers (103.80 KB, application/x-xz)
2014-12-29 17:17 UTC, Freddie Chopin
Details

Description Freddie Chopin 2014-12-29 17:17:07 UTC
Created attachment 293449 [details]
test case - nested initializers

This is related to bug #688647 - I first reported it there ( https://bugzilla.gnome.org/show_bug.cgi?id=688647#c5 ), but it's best to open a new one...

I'm using doxygen 1.8.8 on Arch Linux, so bug #688647 is supposed to be fixed, but I'm experiencing the same thing as the one reported by first post. I'll attach a test-case (one header from a project and Doxyfile) that demonstrates this.

Shorter version:

--->8--->8--->8--->8--->8--->8---

template<typename T>
class FifoQueue
{
public:

    ...

    /**
     * \brief FifoQueue's constructor
     */

    FifoQueue(Storage* const storage, const size_t maxElements) :
            fifoQueueBase_{storage, maxElements,
scheduler::FifoQueueBase::TypeTag<T>{}}
    {

    }

    /**
     * \brief Pops the oldest (first) element from the queue.
     */

    int pop(T& value)
    {
        return fifoQueueBase_.pop(value);
    }

    ...

--->8--->8--->8--->8--->8--->8---

No documentation is generated after the constructor. If I replace this:

fifoQueueBase_{storage, maxElements, scheduler::FifoQueueBase::TypeTag<T>{}}

with this:

fifoQueueBase_(storage, maxElements, scheduler::FifoQueueBase::TypeTag<T>{})

then everything is fine.

If I replace the same line with this:

fifoQueueBase_{storage, maxElements}

or this:

fifoQueueBase_{storage, maxElements, scheduler::FifoQueueBase::TypeTag<T>}

it also works.

This is not related to bug #721462 - if I put anything in the TypeTag
initializer, it still doesn't work.

So it seems that doxygen handles the new initializer syntax of C++11 only when
there is no nesting, but doesn't like the idea of one initializer embedded in
another initializer.
Comment 1 Dimitri van Heesch 2015-02-23 19:58:57 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Dimitri van Heesch 2015-06-27 19:01:54 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.10. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).