Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #9615 doxygen C# regression #9633

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albert-github
Copy link
Collaborator

@albert-github albert-github commented Oct 11, 2022

The problem is that in case none of the output generators HTML, LaTeX, RTF, docbook or Man are used not all the settings are done before the tests are started. We see this problem also when we just set GENERATE_XML, we get the warning like:

Main.cs(21): warning: parameters of member CSharpTutorials.Program.Main are not documented

by introducing a new output generator that will only be enabled in case non of the generators HTML, LaTeX, RTF, docbook or Man is enabled, the settings are done, so the tests can be executed properly.

The problem is that in case non of the output generators HTML, LaTeX, RTF, docbook or Man are used not all the settings are done before the tests are started.
We see this problem also when we just set `GENERATE_XML`, we get the warning like"
```
Main.cs(21): warning: parameters of member CSharpTutorials.Program.Main are not documented
```

by introducing a new output generator that will only be enabled in case non of the generators HTML, LaTeX, RTF, docbook or Man is enabled, the settings are done, so the tests can be executed properly.
g_outputList->add<ValidatingGenerator>();
ValidatingGenerator::init();
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be easier to do this instead?

  if (g_outputList->size()==0)
  {
    Doxygen::suppressDocWarnings=TRUE;
  } 

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I don't think so.
Doxygen consists, unfortunately, over 2 types of output generators (HTML / RTF / LaTeX / Docbook / Man / ... versus XML / SQLite / ...) and a number of tests / updates are only done in the first type of generators and hence when none of these generators we need a dummy generator that sees to it that the tests / updates are executed.

It might be that the test could be reduced to g_outputList->size()==0 (or even !g_outputList->size()) though as this would be safer for the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants