utils: add a helper class to lit for captured substitutions
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 9 Mar 2018 00:06:10 +0000 (00:06 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 9 Mar 2018 00:06:10 +0000 (00:06 +0000)
commitd5453b2c3f72e27f0cefe3003252f49462a419f9
treef0fec37e6f642066a5ab75d3a0d1889467b3e7f1
parent08126e7eaa3a224263a0c9101a11da1a82295190
utils: add a helper class to lit for captured substitutions

On Windows, if the substitution contains a back reference, it would
removed due to the replacement of the escape character in lit. Create a
helper class to avoid this which will simply ignore the replacement and
mark the substitution as having capture groups being referenced.

llvm-svn: 327082
llvm/utils/lit/lit/TestingConfig.py