Skip to content

CXX-3070 Address -Wdocumentation Clang warnings#1175

Merged
eramongodb merged 1 commit intomongodb:masterfrom
eramongodb:cxx-3070
Jul 24, 2024
Merged

CXX-3070 Address -Wdocumentation Clang warnings#1175
eramongodb merged 1 commit intomongodb:masterfrom
eramongodb:cxx-3070

Conversation

@eramongodb
Copy link
Copy Markdown
Contributor

Summary

Resolves CXX-3070.

-Wdocumentation

Notable fixes include:

  • Misplacement of type aliases between a function and its intended documentation.
  • Incorrect name in @param name.
  • Redundant commands without useful documentation.

-Wdocumentation-deprecated-sync

Some of these warnings were addressed by changing the @deprecated to a @warning, such as when the command is referring to an entity other than what is currently being documented.

However, these warnings are for the most part ignored and left unaddressed. Applying [[deprecated]] or *_DEPRECATED (from the export header) to relevant entities produces too many -Wdeprecated-declarations warnings. This currently applies to:

  • bsoncxx::v_noabi::types::b_undefined (type)
  • bsoncxx::v_noabi::types::b_dbpointer (type)
  • bsoncxx::v_noabi::types::b_symbol (type)
  • mongocxx::v_noabi::database::create_collection_deprecated (member function)
  • mongocxx::v_noabi::options::find::comment (member functions (2))

We may revisit these another time with a methodology that doesn't trigger so many -Wdeprecated-declarations warnings within our own code (or in users' code despite no direct usage).

@eramongodb eramongodb requested a review from kevinAlbs July 23, 2024 20:41
@eramongodb eramongodb self-assigned this Jul 23, 2024
@eramongodb eramongodb marked this pull request as ready for review July 23, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants