[Lldb-commits] [lldb] r369398 - [lldb] Use the new Regex::isValid() with no parameter
Jan Kratochvil via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 20 09:08:27 PDT 2019
Author: jankratochvil
Date: Tue Aug 20 09:08:27 2019
New Revision: 369398
URL: http://llvm.org/viewvc/llvm-project?rev=369398&view=rev
Log:
[lldb] Use the new Regex::isValid() with no parameter
Differential Revision: https://reviews.llvm.org/D66463
Modified:
lldb/trunk/source/Utility/RegularExpression.cpp
Modified: lldb/trunk/source/Utility/RegularExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/RegularExpression.cpp?rev=369398&r1=369397&r2=369398&view=diff
==============================================================================
--- lldb/trunk/source/Utility/RegularExpression.cpp (original)
+++ lldb/trunk/source/Utility/RegularExpression.cpp Tue Aug 20 09:08:27 2019
@@ -28,10 +28,7 @@ bool RegularExpression::Execute(
return m_regex.match(str, matches);
}
-bool RegularExpression::IsValid() const {
- std::string discarded;
- return m_regex.isValid(discarded);
-}
+bool RegularExpression::IsValid() const { return m_regex.isValid(); }
llvm::StringRef RegularExpression::GetText() const { return m_regex_text; }
More information about the lldb-commits
mailing list