[llvm-bugs] [Bug 42864] [Filecheck] regex bound is broken after a bracket expression

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 2 09:08:48 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42864

Paul Robinson <paul_robinson at playstation.sony.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
 Fixed By Commit(s)|                            |r367689

--- Comment #4 from Paul Robinson <paul_robinson at playstation.sony.com> ---
> Could we add a level of backslash just for '{' and '}'?

If you mean something like
  {{[[:xdigit:]]{5\}}}
that won't work, because the \ is not interpreted by FileCheck.  It is
doing a very dumb scan for the sequence }} and not attempting to parse or
interpret whatever is in between.  I think it's easy enough to add the
parentheses to break up unintended sequences of braces.

Committed r367689 to add the parens suggestion to the FileCheck doc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190802/bd77bc70/attachment.html>


More information about the llvm-bugs mailing list