[all-commits] [llvm/llvm-project] 3c4547: Fix a thinko in the parsing of substitutions in Co...
jimingham via All-commits
all-commits at lists.llvm.org
Tue Jul 27 18:59:31 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3c4547692368239fca21ec294a5a406ea5a44889
https://github.com/llvm/llvm-project/commit/3c4547692368239fca21ec294a5a406ea5a44889
Author: Jim Ingham <jingham at apple.com>
Date: 2021-07-27 (Tue, 27 Jul 2021)
Changed paths:
M lldb/source/Commands/CommandObjectRegexCommand.cpp
A lldb/test/API/commands/command/regex/TestRegexCommand.py
A lldb/test/API/commands/command/regex/echo_command.py
Log Message:
-----------
Fix a thinko in the parsing of substitutions in CommandObjectRegexCommand.
The old code incorrectly calculated the start position for the search
for the third (and subsequent) instance of a particular substitution
pattern (e.g. %1).
I also added a few test cases for this parsing covering this failure.
More information about the All-commits
mailing list