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

Eli Bendersky eliben at google.com
Mon Nov 26 06:55:02 PST 2012


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regex_backref_support.patch
Type: application/octet-stream
Size: 4793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121126/fcb8fafb/attachment.obj>


More information about the llvm-commits mailing list