[Trivial] Improve end-of-namespace comment consistency #10702

pull meshcollider wants to merge 1 commits into bitcoin:master from meshcollider:improve-end-of-namespace-comment-consistence changing 49 files +122 −69
  1. meshcollider commented at 12:25 PM on June 29, 2017: contributor

    Continuing on from #9544 this just makes the end-of-namespace comments consistent across all files

    While purely style changes are not normally acceptable, this one should cause very few merge conflicts just because namespaces aren't usually touched often, and because of the nature of namespace indentation, I believe its quite a readability improvement to keep track of what the closing braces belong to.

  2. laanwj commented at 12:36 PM on June 29, 2017: member

    Meh, why all the end-of-namespace pulls lately? We don't have a clear rule for these, no need to have a PR every three days that updates them. Also src/leveldb changes should go into the appropriate upstream repository.

  3. meshcollider commented at 12:40 PM on June 29, 2017: contributor

    Just saw #9544 hadn't finished the job, because that was merged then this just makes it all consistent. Developer notes do use this convention. Good point on the leveldb though

  4. meshcollider commented at 10:32 PM on June 29, 2017: contributor

    Removed changes to src/leveldb/

  5. sipa commented at 10:43 PM on June 29, 2017: member

    The style guide says that braces must be on the next line for namespaces, classes, methods, and functions.

  6. meshcollider commented at 1:48 AM on June 30, 2017: contributor

    Almost all the existing namespaces have the brace on the same line, would you prefer if they were all changed in this PR too?

  7. sipa commented at 1:57 AM on June 30, 2017: member

    I don't think there is a need for a massive change one way or another, but certainly not for a change in the wrong direction.

  8. fanquake added the label Docs and Output on Jun 30, 2017
  9. meshcollider commented at 3:30 AM on July 1, 2017: contributor

    Refactored as per style guide, no extra effort to get it fixed really :)

  10. promag changes_requested
  11. promag commented at 9:28 AM on July 3, 2017: member
  12. in src/memusage.h:20 in bd923f3cdf outdated
      16 | @@ -17,8 +17,7 @@
      17 |  
      18 |  #include <boost/foreach.hpp>
      19 |  
      20 | -namespace memusage
      21 | -{
      22 | +namespace memusage {
    


    promag commented at 9:00 AM on July 4, 2017:

    Remove change?

  13. promag changes_requested
  14. promag commented at 9:02 AM on July 4, 2017: member

    At the end I would keep two commits like:

    • Fix namespace brace style (includes documentation fix)
    • Improve end-of-namespace comment consistency

    Other than these, ACK.

  15. meshcollider commented at 9:29 AM on July 4, 2017: contributor

    Decided to squash them all into one commit because its all refactoring, and the previous commits were already squashed. Thanks for pointing out that missed brace @promag

  16. Improve end-of-namespace comment and brace consistency a402d334cc
  17. fanquake commented at 3:13 PM on November 17, 2017: member

    Going to close this for now. You could rebase, extend the changes and reopen just after the next major branch off, as that is usually the best time to merge commits that touch a lot of files.

  18. fanquake closed this on Nov 17, 2017

  19. DrahtBot locked this on Sep 8, 2021

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-13 15:15 UTC

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