Unified mixture of unnamed namespace and static. #28259

pull Brotcrunsher wants to merge 1 commits into bitcoin:master from Brotcrunsher:NoEmptyNamespace changing 1 files +1 −4
  1. Brotcrunsher commented at 4:55 PM on August 11, 2023: contributor

    Previously we had an unnamed namespace with two functions, one static the other not static. When briefly reading the code this might be slightly misleading and could make the reader think that not both functions are translation unit local, even though they are.

  2. DrahtBot commented at 4:55 PM on August 11, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

  3. DrahtBot added the label CI failed on Aug 11, 2023
  4. Unified mixture of unnamed namespace and static.
    Previously we had an unnamed namespace with two functions, one static the other not static. When briefly reading the code this might be slightly misleading and could make the reader think that not both functions are translation unit local, even though they are!
    664a100743
  5. Brotcrunsher force-pushed on Aug 12, 2023
  6. DrahtBot removed the label CI failed on Aug 12, 2023
  7. maflcko commented at 11:40 AM on August 14, 2023: member

    Thank you for your contribution. While this stylistic change makes sense on its own, it comes at a cost and risk for the project as a whole. The weak motivation for the change does not justify the burden that it places on the project. A burden could be any of the following:

    • Time spent on review
    • Accidental introduction of bugs
    • (Silent) merge conflicts, either in the branch or a backport branch. Those conflicts demand further developer and reviewer time or introduce bugs.

    For more information about refactoring changes and stylistic cleanup, see

    Generally, if the style is not mentioned nor enforced by the developer notes, we leave it up to the original author to pick whatever fits them best personally and then leave it that way until the line is touched for other reasons.

    Let us know if you have any questions.

  8. maflcko closed this on Aug 14, 2023

  9. maflcko commented at 11:40 AM on August 14, 2023: member

    (Also the refactor: in the title was missing, according to the dev notes)

  10. bitcoin locked this on Aug 14, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me