Support escaping in TrigramIndex.
authorIvan Krasin <krasin@chromium.org>
Fri, 2 Dec 2016 23:30:16 +0000 (23:30 +0000)
committerIvan Krasin <krasin@chromium.org>
Fri, 2 Dec 2016 23:30:16 +0000 (23:30 +0000)
commit75453b057b6b76889ff3a5bca99f8099c628b389
tree623e4ec094e1eab8e5cfe0ed39c1a09c4a1c8578
parentcb3ef1561de278ce8819c5a095092dbc2b0d00b2
Support escaping in TrigramIndex.

Summary:
This is a follow up to r288303, where I have introduced TrigramIndex
to speed up SpecialCaseList for the cases when all rules are
simple wildcards, like *hello*wor.d*.

Here, I add support for escaping, so that it's possible to
specify rules like *c\+\+abi*.

Reviewers: pcc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D27318

llvm-svn: 288553
llvm/lib/Support/TrigramIndex.cpp
llvm/unittests/Support/SpecialCaseListTest.cpp
llvm/unittests/Support/TrigramIndexTest.cpp