You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge consecutive string literals in StrCat into a single append
Replace _MakeStringWithSpace (single-literal helper) with _MergeStrings,
a constexpr function that handles k string literals at once. Add an
all-literal overload of _StrCat (selected by partial ordering whenever
every StrCat argument is a string literal) that merges all literals into
one buffer and performs a single rs_code append call.
StrCat("foo", "bar", "xyz") is now equivalent to StrCat("foo bar xyz"):
both produce exactly one append of "foo bar xyz ".
Drop #include <utility> which was only needed by the removed
_MakeStringWithSpace/std::make_index_sequence code.
Agent-Logs-Url: https://github.com/Cpp2Rust/cpp2rust/sessions/6b9ad28e-62b4-44a3-bf1e-538e5dc148ef
Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
0 commit comments