Abstract the details from regex.h a bit more by not allowing people to specify compil...
authorGreg Clayton <gclayton@apple.com>
Wed, 21 Jan 2015 21:51:02 +0000 (21:51 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 21 Jan 2015 21:51:02 +0000 (21:51 +0000)
commit7bd4c60043d995d21ced0cdf0d6c67b8ce015177
treee2e9bfedae8ba337cf29e02a96c89c6cd7453b57
parent24a777238ee9849a05dcb2aa230ad92cb2287e22
Abstract the details from regex.h a bit more by not allowing people to specify compile and execute flags for regular expressions. Also enable better regular expressions if they are available by check if the REG_ENHANCED is available and using it if it is.

Since REG_ENHANCED is available on MacOSX, this allow the use of \d (digits) \b (word boundaries) and much more without affecting other systems.

<rdar://problem/12082562>

llvm-svn: 226704
lldb/include/lldb/Core/RegularExpression.h
lldb/include/lldb/Interpreter/OptionValueRegex.h
lldb/source/Core/RegularExpression.cpp
lldb/source/Host/common/FileSpec.cpp
lldb/source/Interpreter/CommandObjectRegexCommand.cpp
lldb/source/Interpreter/OptionValueRegex.cpp
lldb/source/Interpreter/Property.cpp
lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
lldb/source/Target/Thread.cpp