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

Fix warnings and errors generated when running doxygen. #527

Merged
merged 6 commits into from
Nov 16, 2018

Conversation

KineticTheory
Copy link
Collaborator

@KineticTheory KineticTheory commented Nov 12, 2018

Background

  • Recent work with Kent on new Capsaicin autodoc revealed that there were numerous issues with Draco's autodoc pages. This PR fixes the vast majority of those issues. It is an expansive change-set, but almost all changes are in documentation blocks or fully encapsulated in local code.

Purpose of Pull Request

Description of changes

  • Correctly set doxygen parameters PROJECT_LOGO and IMAGE_PATH.
  • Update image inclusion instructions so they work.
  • Remove some cruft from mainpage (all those links are still available via the "Related Pages" pull down.
  • Many, many fixes to comment blocks in source code to allow doxygen to correctly parse the text.
    • \param names should match C++ variables names.
    • Remove duplicate full documenation blocks to avoid conflicts.
    • Escape greater-than and less-than angle brackets so doxygen can parse them.
    • Document missing function variables.
    • Remove documentation for function parameters that have been removed.
    • Ensure declaration and definition of functions use const consistently.
  • Remove some dead code.
  • Fix indentation in a few places.

Status

+ Correctly set doxygen parameters `PROJECT_LOGO` and `IMAGE_PATH`.
+ Update image inclusion instructions so they work.
+ Remove some cruft from mainpage (all those links are still available via the
  "Related Pages" pull down.
+ Many, many fixes to comment blocks in source code to allow doxygen to
  correctly parse the text.
  - `\param` names should match C++ variables names.
  - Remove duplicate full documenation blocks to avoid conflicts.
  - Escape greater-than and less-than angle brackets so doxygen can parse
    them.
  - Document missing function variables.
  - Remove documentation for function parameters that have been removed.
  - Ensure declaration and definition of functions use `const` consistently.
+ Remove some dead code.
+ Fix indentation in a few places.
@codecov
Copy link

codecov bot commented Nov 14, 2018

Codecov Report

Merging #527 into develop will decrease coverage by <.1%.
The diff coverage is 77.6%.

@@            Coverage Diff            @@
##           develop    #527     +/-   ##
=========================================
- Coverage     93.3%   93.3%   -0.1%     
=========================================
  Files          376     376             
  Lines        17653   17686     +33     
=========================================
+ Hits         16484   16504     +20     
- Misses        1169    1182     +13

@KineticTheory KineticTheory changed the title Fix warnings and errors generated when running doxygen. WIP: Fix warnings and errors generated when running doxygen. Nov 14, 2018
@KineticTheory KineticTheory changed the title WIP: Fix warnings and errors generated when running doxygen. Fix warnings and errors generated when running doxygen. Nov 14, 2018
@KineticTheory
Copy link
Collaborator Author

@kgbudge This PR passes all tests (it is mostly just documentation changes). Can you review/approve/merge? Thx.

…cros.

Background

Jayenne and Capsaicin should be able to use a lot of the same cmake macros for
setting up a build system that creates html pages via doxygen.  Attempt to
package some of the build system code in a more reusable way.

Changes:

+ Update formatting for `Copyright` and include this text directly into
  `mainpage.dcc`.
+ Create new file `autodoc_macros.cmake` that defines cmake macros and functions
  that will be used by `autodoc/CMakeLists.txt`.
+ Update `draco_info` so it can create a list of authors suitable for including
  in `mainpage.dcc.`
+ Add `autodoc/html/doxygen.css` to the list of files that will be installed in
  `cmake/draco` and that can be used by other projects.
+ The generated `Draco.tag` file is causing a warning `warning: Duplicate
  anchor HOST_NAME_MAX found` when used by other code projects.  Attempt to
  silence this warning.
+ Increase the max number of dot graph nodes to 500 (was 200).
+ Update the `covdir.cfg` script so it is aware of Jayenne's new directory
  layout.
+ Rename structs A, B --> Apple, Banana in `cxx11example_move_semantics.cc` to
  prevent doxygen from linking the article 'A' to this struct.
@KineticTheory
Copy link
Collaborator Author

@kgbudge Do you have time to look at this and maybe merge it today (Friday)? I have Jayenne, Draco and Capsaicin branches that need to merged once this goes into develop.

If no, maybe @RyanWollaeger can look at it.

It is a big change set, but the majority of the changes are in comment blocks. A few have to do with the build system for the autodoc target.

@kgbudge
Copy link
Contributor

kgbudge commented Nov 16, 2018

Yeah, that's a large merge. I confess I skimmed a lot of it. Merging on the assumption that the coverage changers are an artefact that is acceptable.

@kgbudge kgbudge merged commit 8146918 into lanl:develop Nov 16, 2018
@KineticTheory KineticTheory deleted the autodoc-fixes branch November 17, 2018 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants