diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegexCommand.h')
| -rw-r--r-- | lldb/source/Commands/CommandObjectRegexCommand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectRegexCommand.h b/lldb/source/Commands/CommandObjectRegexCommand.h index 2f65c2cd815d..b2a375c63a76 100644 --- a/lldb/source/Commands/CommandObjectRegexCommand.h +++ b/lldb/source/Commands/CommandObjectRegexCommand.h @@ -39,6 +39,11 @@ public: protected: bool DoExecute(llvm::StringRef command, CommandReturnObject &result) override; + /// Substitute variables of the format %\d+ in the input string. + static llvm::Expected<std::string> SubstituteVariables( + llvm::StringRef input, + const llvm::SmallVectorImpl<llvm::StringRef> &replacements); + struct Entry { RegularExpression regex; std::string command; |
