This is an archive of the discontinued LLVM Phabricator instance.

Regex: +regex string lifetime comment
ClosedPublic

Authored by jankratochvil on Aug 20 2019, 3:11 AM.

Details

Summary

Is the wording OK? The lifetime was found by Jonas Devlieghere.

Diff Detail

Repository
rL LLVM

Event Timeline

jankratochvil created this revision.Aug 20 2019, 3:11 AM
labath accepted this revision.Aug 20 2019, 4:26 AM
labath added inline comments.
llvm/include/llvm/Support/Regex.h
48 ↗(On Diff #216088)

I don't think you need the *lifetime* of that string -- you need the string itself. :) Just drop that word, and this will be fine.

This revision is now accepted and ready to land.Aug 20 2019, 4:26 AM
This revision was automatically updated to reflect the committed changes.
jankratochvil marked 2 inline comments as done.Aug 20 2019, 6:26 AM
jankratochvil added inline comments.
llvm/include/llvm/Support/Regex.h
48 ↗(On Diff #216088)

The lifetime keyword was there to highlight the main point of that statement. But I agree it should be clear enough even without it.