[lldb-dev] using llvm::Regex inside lldb_private::RegularExpression

kirk.beitz at nokia.com kirk.beitz at nokia.com
Fri Feb 11 14:35:55 PST 2011


find attached a .patch file that replaces dependence on /usr/include/regex.h , and uses instead "llvm/Support/Regex.h"

carefully check the values in the cases where the number of matches is important.  i used the RegExTest.cpp in the LLVM area to try and determine the appropriate way to call this.

of note: there were a number of changes of args that used to be const that are no longer because LLVM Regex class can change the value of error during a match() or isValid() check.

this will now allow code dependent upon regular expressions to be correct for MinGW as well.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20110211/f0305329/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-Regex.patch
Type: application/octet-stream
Size: 52077 bytes
Desc: llvm-Regex.patch
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20110211/f0305329/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20110211/f0305329/attachment.htm>


More information about the lldb-dev mailing list