using llvm::Regex inside lldb_private::RegularExpression

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.

llvm-Regex.patch (50.9 KB)

ATT00001.htm (768 Bytes)