Skip to content

GH-50394: [Docs][C++] Reduce Sphinx warnings when building HTML#50396

Draft
tadeja wants to merge 2 commits into
apache:mainfrom
tadeja:docs-build-warn
Draft

GH-50394: [Docs][C++] Reduce Sphinx warnings when building HTML#50396
tadeja wants to merge 2 commits into
apache:mainfrom
tadeja:docs-build-warn

Conversation

@tadeja

@tadeja tadeja commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Rationale for this change

Fixes Sphinx warnings during the docs build. Doxygen/Breathe expose the multi-line lambda initializers on writer_pre_finish/writer_post_finish and the macros ARROW_SUPPRESS_DEPRECATION_WARNING / ARROW_UNSUPPRESS_DEPRECATION_WARNING to Sphinx C++ parses which can't parse them.

What changes are included in this PR?

Added \hideinitializer to dataset/file_base.h and dataset/scanner.h.
Added ARROW_SUPPRESS_DEPRECATION_WARNING and ARROW_UNSUPPRESS_DEPRECATION_WARNING to apidoc/Doxyfile PREDEFINED list so Doxygen strips them from declarations.

Are these changes tested?

Yes, locally and on fork CI - logs AMD64 Debian 12 Complete Documentation:
build succeeded, 15 warnings.
(down from 26 warnings on main)

Are there any user-facing changes?

No.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

⚠️ GitHub issue #50394 has been automatically assigned in GitHub to PR creator.

@tadeja tadeja changed the title GH-50394: [Docs][C++] Reduced Sphinx warnings when building HTML GH-50394: [Docs][C++] Reduce Sphinx warnings when building HTML Jul 7, 2026
@tadeja tadeja force-pushed the docs-build-warn branch from 1115980 to efadbf0 Compare July 7, 2026 14:29
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.

1 participant