forked from OSchip/llvm-project
Regex: +regex string lifetime comment
Differential Revision: https://reviews.llvm.org/D66464 llvm-svn: 369383
This commit is contained in:
parent
b232d5649d
commit
50fdaaf5b8
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue