Skip to content

Backslash + quote mark causes Doxygen not to generate documentation #10586

@nilsbrynedal

Description

@nilsbrynedal

In C#, the presence of \" (a backslash followed by a quote mark) causes Doxygen to not generate documentation for a class:

namespace TestNameSpace
{
    public static class ExampleClass
    {
        public static string ExampleProperty => "Test\"; // remove the backslash and the bug will not appear
    }
}

This will cause Doxygen to only create a page for the ExampleClass.cs file, but no information of the class itself.
If one removes the \ and re-runs Doxygen, then the generated documentation for ExampleClass will contain much more information.

I suspect that the backslash is seen as an escape character, which then causes the rest of the text to be incorrect (wrong number of quotes?). But this is in the code itself, not in the comments, so Doxygen should not care about this.

Is there any quick way of getting around this bug? Can I add something that prevents this backslash from being handled as an escape character?
I cannot change the source code to prevent this bug.

doxygen -v gives this output:
1.10.0 (ebc57c6)

All files needed to replicate this error is found in:
Doxygen error.zip

If anything is unclear or if more info would be needed, let me know and I'll try to answer as good as I can.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions