Repository navigation
docs(changelog): add entry for OpenMS::String -> std::string removal (#9450) - #9724
Conversation
…penMS#9450) PR OpenMS#9450 removed the OpenMS::String class (and StringView) in favor of std::string / std::string_view but never added a CHANGELOG entry. Record it as a BREAKING change in the 3.6.0 General section next to the related Qt string-interop removal (OpenMS#8940), noting the StringUtils free-function migration path and the follow-up shim-header removal (OpenMS#9468). Co-Authored-By: Claude Fable 5 <[email protected]>
📝 WalkthroughWalkthroughThe changelog adds a breaking notice documenting removal of ChangesString API migration
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CHANGELOG`:
- Line 54: Clarify the CHANGELOG entry to state that OpenMS::String remains a
source-compatible alias of std::string. Remove the claim that OpenMS::String
declarations or String& parameters must migrate, and instead specify that code
must migrate only when it relies on removed String member functions or
conversion behavior; retain the note that StringView was replaced by
std::string_view.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| - BREAKING: QDir/QFile/QFileInfo replaced with std::filesystem in the core library; copyDirRecursively/removeDir signatures changed from QString& to String&; ToolHandler returns StringList instead of QStringList; new PathUtils.h added with UTF-8-safe to_path() helper (#8938) | ||
| - BREAKING: QProcess/QObject replaced with boost::process in ExternalProcess, PythonInfo, JavaInfo, and RWrapper; ExternalProcess no longer inherits from QObject; ExternalProcess::run(), TOPPBase::runExternalProcess_(), RWrapper::findR()/runScript(), and ExternalProcessMBox::run() now use String/vector<String> instead of QString/QStringList (#8939) | ||
| - BREAKING: Qt string interop removed from core String and DataValue API; String(const QString&), String::toQString(), DataValue(const QString&), DataValue::toQString(), and StringListUtils::fromQStringList() removed; Qt5Port.h deleted (#8940) | ||
| - BREAKING: the OpenMS::String class has been removed; OpenMS now uses std::string throughout its public API and internals (StringList is now std::vector<std::string>). String's member conversions/helpers are no longer available as methods — use the free functions in OpenMS::StringUtils (toStr for value-to-string, split, trim/trimmed, substitute/substituted, toInt/toDouble/toFloat, number, ...) or plain std::string members instead. OpenMS::StringView was likewise removed in favor of std::string_view. Downstream code that declared OpenMS::String, passed String& parameters, or relied on implicit String<->std::string conversion must migrate to std::string. The obsolete String/StringConversions/StringUtilsSimple shim headers were subsequently removed (#9450, #9468) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Clarify that OpenMS::String remains an alias.
The in-repo migration test documents that OpenMS::String is now a std::string alias and that only its former member functions were removed (src/tests/class_tests/openms/source/String_test.cpp:11-13). Saying that declarations and String& parameters must migrate is misleading; callers relying on removed members or conversions must migrate, while alias-only usage remains source-compatible.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@CHANGELOG` at line 54, Clarify the CHANGELOG entry to state that
OpenMS::String remains a source-compatible alias of std::string. Remove the
claim that OpenMS::String declarations or String& parameters must migrate, and
instead specify that code must migrate only when it relies on removed String
member functions or conversion behavior; retain the note that StringView was
replaced by std::string_view.
Description
PR #9450 ("replace String with std::string") removed the
OpenMS::Stringclass (andOpenMS::StringView) in favor ofstd::string/std::string_view, but no CHANGELOG entry was ever added for it. This adds one.The new BREAKING entry lives in the OpenMS 3.6.0
General:section, directly after the related Qt string-interop removal (#8940). It records:OpenMS::Stringremoved;std::stringused throughout the public API and internals (StringListis nowstd::vector<std::string>)OpenMS::StringUtilsfree functions (toStr,split,trim,substitute,toInt/toDouble/toFloat,number, ...)OpenMS::StringViewremoved in favor ofstd::string_viewDocs-only change (CHANGELOG); no code or tests affected.
Checklist
🤖 Generated with Claude Code
Summary by CodeRabbit
OpenMS::StringandOpenMS::StringViewtypes.OpenMS::StringUtilsfunctions or direct standard string operations.