Add an option in SpecialCaseList to use Globs instead of Regex to match patterns. GlobPattern was extended in https://reviews.llvm.org/D153587 to support brace expansions which allows us to use patterns like */src/foo.{c,cpp}. It turns out that most patterns only take advantage of * so using Regex was overkill and required lots of escaping in practice. This often led to bugs due to forgetting to escape special characters.
Since this would be a breaking change, we temporarily support Regex by default and use Globs when #!special-case-list-v2 is the first line in the file. Users should switch to the glob format described in https://llvm.org/doxygen/classllvm_1_1GlobPattern.html. For example, (abc|def) should become {abc,def}.
See discussion in https://reviews.llvm.org/D152762 and https://discourse.llvm.org/t/use-glob-instead-of-regex-for-specialcaselists/71666.