Use C++11 Regular Expressions

I noticed that LLVM uses its own regex engine in Regex.h and Regex.cpp. Do the supported compilers for building LLVM have sufficient support for the C++11 regex library that this can be replaced with the standard library implementation?

<regex> was added to GCC's libstdc++ in 4.9, we currently support GCC
starting from 4.7. I think all other supported compilers have <regex>.

- Ben

> Do the supported compilers for building LLVM have sufficient support for
the
> C++11 regex library that this can be replaced with the standard library
> implementation?

<regex> was added to GCC's libstdc++ in 4.9, we currently support GCC
starting from 4.7. I think all other supported compilers have <regex>.

If I read things correctly from this page (

GCC Releases - GNU Project) and this old post (
http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-October/066847.html), it
looks like we might be able to use the C++11 regex library for the 3.9
release. Did I get that right?