[cfe-dev] Interest in StringRef'ize APIs Open Project
David.Chisnall at cl.cam.ac.uk
Tue May 19 09:49:10 PDT 2015
On 19 May 2015, at 09:31, Richard <legalize at xmission.com> wrote:
> "highly mechanical and repetitive" screams out refactoring tool to me,
> but maybe that's just because I think refactoring tools are so cool.
Going from std::string to StringRef involves going from an explicit copy to something with nontrivial ownership semantics. The converse transform would be trivial (it’s always safe to use a std::string instead of a StringRef, you’re just going to end up with lots of redundant copies), but going in this direction requires reasoning about the surrounding code.
More information about the cfe-dev