diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-03 19:30:20 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-03 19:30:20 +0000 |
| commit | f42ef3efcad9095920232a0a710a80c5c4720170 (patch) | |
| tree | d5f41002a9b443e9771eda155ecc4ea97082eb6a /lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp | |
| parent | 0fc3a001682c0bd076a329024192e57b3bc950fd (diff) | |
re.results.form: Format out-of-range subexpression references as null
Rather than crashing in match_results::format() when a reference to a
marked subexpression is out of range, format the subexpression as empty
(i.e., replace it with an empty string). Note that
match_results::operator[]() has a range-check and returns a null match
in this case, so this just re-uses that logic.
llvm-svn: 259682
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp')
0 files changed, 0 insertions, 0 deletions
