[llvm-commits] PATCH: add backreference support to Regex

Eli Bendersky eliben at google.com
Wed Nov 28 05:09:00 PST 2012


On Mon, Nov 26, 2012 at 6:55 AM, Eli Bendersky <eliben at google.com> wrote:
> Hello,
>
> This is the the second patch (*) on the way to implement the FileCheck
> enhancement described here:
> http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-November/055840.html
>
> It adds backreference matching capabilities to Support/Regex, with
> appropriate unit tests. This change in itself is not expected to
> affect any functionality at this point, but it will serve as a
> stepping stone to improve FileCheck's variable matching capabilities.
>
> Notes:
>
> 1. I had to insert tabs in regcomp.c to preserve existing formatting
> 2. Support for BREs was added to Regex - but it's easy to remove if
> it's not required
> 3. I documented the addition in the comment at the top of Regex.h, I
> don't think we have a non-code document for regex capabilities, please
> correct me if I'm wrong.
>
> Eli
>
> (*) The first is r168588 - rewrite the single existing test actually
> using the current capability.

Ping



More information about the llvm-commits mailing list