Doxygen silently crashes when function contains // (double-forward-slash) inside a string in C #
When using Doxygen to generate documentation for C # code, the following code causes the rest of the .cs file to be ignored and no error message is displayed to explain the reason:
/// <summary>
/// Gets the style sheet link.
/// </summary>
/// <value></value>
public string StyleSheetLink
{
get { return "<link rel=\"STYLESHEET\" href=\"http://" + this.Request.Url.Authority + this.ThemesPath + "theme.css\">"; }
}
I guess this is not the case, because the returned string contains some XML-style content that Doxygen incorrectly parses as an XML comment and then fails because XML-that-isn't-actually-XML - lo and behold - invalid XML.
Edit: What seems to be happening is that the problem //
in http://
the problem. I changed this to "http:/"+"/"
and now it goes through completely.
So my updated question is: How do I get doxygen to ignore //
in lines of code? How do I make Doxygen ignore a line that includes the XML content style? I've just stepped through this particular file, but with hundreds of possible classes to look at, it's very likely there are a few more places where this happens, so an automated approach (perhaps a flag in expert settings?) Is preferred.
source to share
No one has answered this question yet
Check out similar questions: