Skip to content

Fix ZVAL_STATIC_INIT macro formatting for clang-format compatibility#2009

Merged
GromNaN merged 1 commit intomongodb:v2.xfrom
GromNaN:fix/clang-format-zval-static-init
May 4, 2026
Merged

Fix ZVAL_STATIC_INIT macro formatting for clang-format compatibility#2009
GromNaN merged 1 commit intomongodb:v2.xfrom
GromNaN:fix/clang-format-zval-static-init

Conversation

@GromNaN
Copy link
Copy Markdown
Member

@GromNaN GromNaN commented Apr 30, 2026

Use a compact single-line form wrapped in clang-format off/on to avoid formatting differences between clang-format versions (v18 on CI vs v22 locally).

Copilot AI review requested due to automatic review settings April 30, 2026 20:54
@GromNaN GromNaN requested a review from a team as a code owner April 30, 2026 20:54
@GromNaN GromNaN requested review from paulinevos and removed request for a team April 30, 2026 20:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the ZVAL_STATIC_INIT macro definition in phongo_compat.h to be clang-format-stable across differing clang-format versions (CI vs local), without changing the macro’s semantics.

Changes:

  • Replaces the multi-line ZVAL_STATIC_INIT macro definition with an equivalent single-line initializer.
  • Wraps the macro definition with /* clang-format off/on */ to prevent reformatting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

👏 👏 👏

@GromNaN GromNaN merged commit db2f669 into mongodb:v2.x May 4, 2026
48 checks passed
@GromNaN GromNaN deleted the fix/clang-format-zval-static-init branch May 4, 2026 07:24
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.

3 participants