ci: enable clang-tidy in macOS job, use nullptr #262

pull Sjors wants to merge 2 commits into bitcoin-core:master from Sjors:2026/03/null changing 4 files +5 −4
  1. Sjors commented at 2:49 PM on March 20, 2026: member

    The first commit reproduces #261:

    /Users/runner/work/libmultiprocess/libmultiprocess/src/mp/util.cpp:84:25: error: use nullptr [modernize-use-nullptr,-warnings-as-errors]
       84 |     pthread_threadid_np(NULL, &tid);
          |                         ^~~~
          |                         nullptr
    2 warnings generated.
    Suppressed 1 warnings (1 in non-user code).
    Use -header-filter=.* or leave it as default to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
    1 warning treated as error
    

    https://github.com/bitcoin-core/libmultiprocess/actions/runs/23348264051/job/67919536711?pr=262

    Using clang-tidy in the macOS job increases the runtime from ~1 minute to 2.5 minutes, which shouldn't be a problem.

    The second commit fixes it.

  2. ci: enable clang-tidy in macOS job f499e37850
  3. mp: use nullptr with pthread_threadid_np a9499fad75
  4. DrahtBot commented at 2:49 PM on March 20, 2026: none

    <!--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.

    Type Reviewers
    ACK pinheadmz, ryanofsky

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. Sjors renamed this:
    ci: enable clang-tidy in macOS job
    ci: enable clang-tidy in macOS job, use nullptr
    on Mar 20, 2026
  6. Sjors marked this as ready for review on Mar 20, 2026
  7. pinheadmz commented at 3:17 PM on March 20, 2026: none

    concept ACK, will test locally later today.

    TIL DMP_ENABLE_CLANG_TIDY is a cmake option. Does that work in bitcoin core as well?

  8. hebasto commented at 3:42 PM on March 20, 2026: member

    TIL DMP_ENABLE_CLANG_TIDY is a cmake option.

    To be pedantic, the variable name is MP_ENABLE_CLANG_TIDY, and -D is a CMake option to set a variable.

  9. pinheadmz commented at 11:53 AM on March 21, 2026: none

    ACK a9499fad755f01e7ceab0954045142cae4b6f9da

    Tested on macos by updating bitcoin core subtree to this commit. Ran unit, functional tests and clang tidy. Played with multiprocess binaries, all good. 👍

  10. ryanofsky approved
  11. ryanofsky commented at 7:07 PM on March 23, 2026: collaborator

    Code review ACK a9499fad755f01e7ceab0954045142cae4b6f9da. Nice change and coverage improvment

  12. ryanofsky commented at 7:14 PM on March 23, 2026: collaborator

    TIL DMP_ENABLE_CLANG_TIDY is a cmake option. Does that work in bitcoin core as well?

    I think specifying it with bitcoin core will only enable clang-tidy for libmultiprocess code, but you might be able to get similar behavior for bitcoin core by setting -DCMAKE_CXX_CLANG_TIDY=clang-tidy directly. Downside of using these options is they can noticeably slow down the build though.

  13. ryanofsky merged this on Mar 23, 2026
  14. ryanofsky closed this on Mar 23, 2026

  15. Sjors deleted the branch on Mar 24, 2026
  16. ryanofsky referenced this in commit c7cdd9dad6 on Mar 26, 2026
  17. ryanofsky referenced this in commit d45e185fe3 on Mar 27, 2026
  18. ryanofsky referenced this in commit db2dc76ee3 on Mar 27, 2026
  19. ryanofsky referenced this in commit 2478a15ef9 on Mar 30, 2026
  20. fanquake referenced this in commit b0f68f0a3a on Mar 30, 2026
  21. fanquake referenced this in commit 7375940eb2 on Apr 1, 2026
  22. Sjors referenced this in commit 65abfa3c1a on Apr 15, 2026
  23. morozow referenced this in commit 08e84496a9 on May 8, 2026
  24. Sjors referenced this in commit 0dd3f5c989 on May 12, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-31 17:30 UTC

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