Expose FileCheck's AddFixedStringToRegEx as Regex::escape
authorHans Wennborg <hans@hanshq.net>
Thu, 12 Dec 2013 00:06:41 +0000 (00:06 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 12 Dec 2013 00:06:41 +0000 (00:06 +0000)
commit76eb77dd52c4ec215e79e25992f04e3095afe5df
treec3c20b39c2f053e6380eb6fd31416825f8b958e7
parenteb1bac0afa78e57bd71a9d8ef98a7f82fb4253a9
Expose FileCheck's AddFixedStringToRegEx as Regex::escape

Both FileCheck and clang's -verify need to escape strings for regexes,
so let's expose this as a utility in the Regex class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197096 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Regex.h
lib/Support/Regex.cpp
utils/FileCheck/FileCheck.cpp