Skip to content

clang: Add missing <thread> header - #9651

Merged
timosachsenberg merged 1 commit into
developfrom
pjones/thread
Jun 23, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
pjones/thread

Conversation

@pjones

@pjones pjones commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

LLVM/clang version 21+ seems to be a bit more strict than the default 17 found on the GitHub runner. Without the <thread> header it reports the following error:

ExternalProcess.cpp:257:29: error: no member named 'sleep_for' in namespace 'std::this_thread'

Summary by CodeRabbit

  • Bug Fixes
    • Fixed a missing dependency that improves internal process stability and reliability.

LLVM/clang version 21+ seems to be a bit more strict than the default
17 found on the GitHub runner.  Without the `<thread>` header it
reports the following error:

```
ExternalProcess.cpp:257:29: error: no member named 'sleep_for' in namespace 'std::this_thread'
```
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ab4cfecb-996d-4e57-825a-7b3874c89aa4

📥 Commits

Reviewing files that changed from the base of the PR and between f739175 and fc0ea26.

📒 Files selected for processing (1)
  • src/openms/source/SYSTEM/ExternalProcess.cpp

📝 Walkthrough

Walkthrough

A single #include <thread> directive is added to ExternalProcess.cpp to provide the missing header declaration for std::this_thread::sleep_for, which is already used in the file's process polling path.

Changes

Missing <thread> header include

Layer / File(s) Summary
Add <thread> header include
src/openms/source/SYSTEM/ExternalProcess.cpp
Inserts #include <thread> to supply the required declaration for std::this_thread::sleep_for used in the process polling path.

🐇 A header was missing, oh what a plight,
std::this_thread slept without sight!
One line added, the compiler appeased,
The build hops along, the bunny is pleased.
All is well in the warren tonight! 🌙

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a missing header to resolve clang compilation issues.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch pjones/thread

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@timosachsenberg
timosachsenberg merged commit 50ce1ba into develop Jun 23, 2026
44 checks passed
@timosachsenberg
timosachsenberg deleted the pjones/thread branch June 23, 2026 14:34
timosachsenberg added a commit that referenced this pull request Jun 24, 2026
…9650, #9651 (#9652)

- Add PR reference (#9650) to the error-message improvement entry (was issue #9636 only)
- Add PR reference (#9642) to ProSE end-of-search report entry
- Add PR reference (#9643) to PSMFeatureExtractor andes support entry
- Add PR reference (#9649) to UniPEFF new-tool entry
- Add Build System entry for #9648: Boost.Spirit → charconv, 30-40% faster build
- Add Build System entry for #9651: missing <thread> header fix for clang 21+


Claude-Session: https://claude.ai/code/session_01DdyZmN6J65umScGRherQ9W

Co-authored-by: Claude <[email protected]>
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.

2 participants