ASSERT: "0" in docparser.cpp (5747)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ASSERT: "0" in docparser.cpp (5747)

mkluwe
Hi!

After adding missing documentation in several files doxygen started to
complain, printing several assert messages:

    ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
    todo:7: warning: Unexpected tag <dd> found
    ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
    todo:9: warning: Unexpected tag <dd> found
    ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
    todo:11: warning: Unexpected tag <dd> found
    todo:13: warning: Unexpected tag <dd> found
    ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
    todo:15: warning: Unexpected tag <dd> found
    todo:16: warning: Unexpected tag <dd> found
    todo:17: warning: Unexpected tag <dd> found
    ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
    todo:18: warning: Unexpected tag <dd> found

Looking at the given line (I'm using version 1.8.11, but tried 1.8.12
with the same result) in

    https://github.com/doxygen/doxygen/blob/Release_1_8_11/src/docparser.cpp#L5747

I've obviously managed doxygen's command mapper to yield a command id
that's not covered in the switch.

Any idea of what could be the issue here?

For further analysis (apart from finding a way to debug doxygen here):
What's the most efficient way to identify the offending file in my
source base?

Additionally I've not found where these "todo"-lines come from...

Regards,
Matthias
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ASSERT: "0" in docparser.cpp (5747)

mkluwe
Hi!

> After adding missing documentation in several files doxygen started to
> complain, printing several assert messages:
>
>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>     todo:7: warning: Unexpected tag <dd> found
>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>     todo:9: warning: Unexpected tag <dd> found
>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>     todo:11: warning: Unexpected tag <dd> found
>     todo:13: warning: Unexpected tag <dd> found
>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>     todo:15: warning: Unexpected tag <dd> found
>     todo:16: warning: Unexpected tag <dd> found
>     todo:17: warning: Unexpected tag <dd> found
>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>     todo:18: warning: Unexpected tag <dd> found

I have found it:

One of my doxygen comment contained a smiley (unicode character WHITE SMILING
FACE, encoded as `0xE2 0x98 0xBA` in my UTF-8 encoded file). After removing
this, the burps above are gone.

Regards,
Matthias
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ASSERT: "0" in docparser.cpp (5747)

mkluwe
Hi!

>> After adding missing documentation in several files doxygen started to
>> complain, printing several assert messages:
>>
>>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>>     todo:7: warning: Unexpected tag <dd> found
>>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>>     todo:9: warning: Unexpected tag <dd> found
>>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>>     todo:11: warning: Unexpected tag <dd> found
>>     todo:13: warning: Unexpected tag <dd> found
>>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>>     todo:15: warning: Unexpected tag <dd> found
>>     todo:16: warning: Unexpected tag <dd> found
>>     todo:17: warning: Unexpected tag <dd> found
>>     ASSERT: "0" in e:\doxygen\src\docparser.cpp (5747)
>>     todo:18: warning: Unexpected tag <dd> found

> I have found it:
>
> One of my doxygen comment contained a smiley (unicode character WHITE SMILING
> FACE, encoded as `0xE2 0x98 0xBA` in my UTF-8 encoded file). After removing
> this, the burps above are gone.

Ah, that was a false positive, sorry for the noise. Now for the real reason:

The error is produced by a `\todo` in an XML C# code comment like this

    /// <summary>
    /// \todo tbd
    /// </summary>
    public double Foo { get; set; }

Regards,
Matthias
Loading...