Skip to content

Comments

Disable clang-format around this macro#29350

Closed
bob-beck wants to merge 1 commit intoopenssl:masterfrom
bob-beck:cpp-as-a-text-subsititution-is-fun
Closed

Disable clang-format around this macro#29350
bob-beck wants to merge 1 commit intoopenssl:masterfrom
bob-beck:cpp-as-a-text-subsititution-is-fun

Conversation

@bob-beck
Copy link
Contributor

@bob-beck bob-beck commented Dec 9, 2025

clang-format sensibly thinks this is an arithmatic operation, and formats the math. Sadly it does not know we eventually stringify this behind several other layers of nested macros and so putting spaces in here is bad.

Checklist
  • documentation is added or updated
  • tests are added or updated

clang-format sensibly thinks this is an arithmatic operation,
and formats the math. Sadly it does not know we eventually
stringify this behind several other layers of nested macros
and so putting spaces in here is bad.
@bob-beck bob-beck requested review from Sashan and nhorman December 9, 2025 14:03
@bob-beck bob-beck marked this pull request as ready for review December 9, 2025 14:03
@nhorman nhorman added branch: master Applies to master branch branch: 3.5 Applies to openssl-3.5 branch: 3.6 Applies to openssl-3.6 labels Dec 9, 2025
Copy link
Contributor

@Sashan Sashan left a comment

Choose a reason for hiding this comment

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

yes, please.

@jogme jogme added the approval: ready to merge The 24 hour grace period has passed, ready to merge label Dec 9, 2025
@Sashan Sashan added the approval: done This pull request has the required number of approvals label Dec 9, 2025
@github-actions github-actions bot added the severity: fips change The pull request changes FIPS provider sources label Dec 9, 2025
openssl-machine pushed a commit that referenced this pull request Dec 9, 2025
clang-format sensibly thinks this is an arithmatic operation,
and formats the math. Sadly it does not know we eventually
stringify this behind several other layers of nested macros
and so putting spaces in here is bad.

Reviewed-by: Saša Nedvědický <[email protected]>
Reviewed-by: Norbert Pocs <[email protected]>
Reviewed-by: Neil Horman <[email protected]>
(Merged from #29350)
@nhorman
Copy link
Contributor

nhorman commented Dec 9, 2025

merged to master, 3.6, 3.5. Thank you!

@nhorman nhorman closed this Dec 9, 2025
openssl-machine pushed a commit that referenced this pull request Dec 9, 2025
clang-format sensibly thinks this is an arithmatic operation,
and formats the math. Sadly it does not know we eventually
stringify this behind several other layers of nested macros
and so putting spaces in here is bad.

Reviewed-by: Saša Nedvědický <[email protected]>
Reviewed-by: Norbert Pocs <[email protected]>
Reviewed-by: Neil Horman <[email protected]>
(Merged from #29350)

(cherry picked from commit 5b0dffa)
openssl-machine pushed a commit that referenced this pull request Dec 9, 2025
clang-format sensibly thinks this is an arithmatic operation,
and formats the math. Sadly it does not know we eventually
stringify this behind several other layers of nested macros
and so putting spaces in here is bad.

Reviewed-by: Saša Nedvědický <[email protected]>
Reviewed-by: Norbert Pocs <[email protected]>
Reviewed-by: Neil Horman <[email protected]>
(Merged from #29350)

(cherry picked from commit 5b0dffa)
cxx194832 pushed a commit to cxx194832/openssl that referenced this pull request Dec 12, 2025
clang-format sensibly thinks this is an arithmatic operation,
and formats the math. Sadly it does not know we eventually
stringify this behind several other layers of nested macros
and so putting spaces in here is bad.

Reviewed-by: Saša Nedvědický <[email protected]>
Reviewed-by: Norbert Pocs <[email protected]>
Reviewed-by: Neil Horman <[email protected]>
(Merged from openssl#29350)
@xnox
Copy link
Contributor

xnox commented Dec 15, 2025

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Applies to master branch branch: 3.5 Applies to openssl-3.5 branch: 3.6 Applies to openssl-3.6 severity: fips change The pull request changes FIPS provider sources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants