Regex: +regex string lifetime comment

Differential Revision: https://reviews.llvm.org/D66464

llvm-svn: 369383
This commit is contained in:
Jan Kratochvil 2019-08-20 13:25:19 +00:00
parent b232d5649d
commit 50fdaaf5b8
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ namespace llvm {
Regex(); Regex();
/// Compiles the given regular expression \p Regex. /// Compiles the given regular expression \p Regex.
///
/// \param Regex - referenced string is no longer needed after this
/// constructor does finish. Only its compiled form is kept stored.
Regex(StringRef Regex, unsigned Flags = NoFlags); Regex(StringRef Regex, unsigned Flags = NoFlags);
Regex(const Regex &) = delete; Regex(const Regex &) = delete;
Regex &operator=(Regex regex) { Regex &operator=(Regex regex) {