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

Provide doxygen specific macro for non-existent symbols #5037

Closed
2 tasks done
korydraughn opened this issue Aug 6, 2020 · 0 comments
Closed
2 tasks done

Provide doxygen specific macro for non-existent symbols #5037

korydraughn opened this issue Aug 6, 2020 · 0 comments
Assignees
Milestone

Comments

@korydraughn
Copy link
Collaborator

korydraughn commented Aug 6, 2020

  • master
  • 4-2-stable

Enhancement

There are cases where documentation exists, but is not included in the doxygen output. This is due to how doxygen determines what should be included by default.

Doxygen will not include the documentation because the symbol has not been declared. To get around this, the doxygen config file needs to define a special iRODS macro. This macro would cause the missing symbols to appear, but only for documentation purposes.

Proposed Macro: IRODS_FOR_DOXYGEN

Example

#ifdef IRODS_FOR_DOXYGEN
/// \brief An important function that fixes all of your data management needs!
///
/// \param[in] _arg Some JSON data describing the problem.
///
/// \return A solution
auto a_symbol_that_is_only_needed_for_documentation(std::string_view _arg) -> solution;
#endif // IRODS_FOR_DOXYGEN
@korydraughn korydraughn self-assigned this Aug 6, 2020
@korydraughn korydraughn added this to the 4.2.9 milestone Aug 6, 2020
korydraughn added a commit to korydraughn/irods that referenced this issue Aug 6, 2020
…entation.

- The IRODS_FOR_DOXYGEN macro allows developers to declare symbols that
  need to exist only for documentation generation. See
  libmsi_atomic_apply_metadata_operations.cpp for example of this.
- Fixed with_durability's documentation.
- Added documentation for msi_atomic_apply_metadata_operations.
- Removed the "\user" doxygen directive.
trel pushed a commit that referenced this issue Aug 6, 2020
…ion.

- The IRODS_FOR_DOXYGEN macro allows developers to declare symbols that
  need to exist only for documentation generation. See
  libmsi_atomic_apply_metadata_operations.cpp for example of this.
- Fixed with_durability's documentation.
- Added documentation for msi_atomic_apply_metadata_operations.
- Removed the "\user" doxygen directive.
korydraughn added a commit to korydraughn/irods that referenced this issue Aug 8, 2020
…entation.

- The IRODS_FOR_DOXYGEN macro allows developers to declare symbols that
  need to exist only for documentation generation. See
  libmsi_atomic_apply_metadata_operations.cpp for example of this.
- Fixed with_durability's documentation.
- Added documentation for msi_atomic_apply_metadata_operations.
- Removed the "\user" doxygen directive.
trel pushed a commit that referenced this issue Aug 8, 2020
…ion.

- The IRODS_FOR_DOXYGEN macro allows developers to declare symbols that
  need to exist only for documentation generation. See
  libmsi_atomic_apply_metadata_operations.cpp for example of this.
- Fixed with_durability's documentation.
- Added documentation for msi_atomic_apply_metadata_operations.
- Removed the "\user" doxygen directive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant