================ @@ -71,9 +76,9 @@ unsigned SpecialCaseList::Matcher::match(StringRef Query) const { for (const auto &[Pattern, Pair] : Globs) if (Pair.first.match(Query)) return Pair.second; - for (const auto &[Regex, LineNumber] : RegExes) - if (Regex->match(Query)) - return LineNumber; + for (auto it = RegExes.crbegin(); it != RegExes.crend(); ++it) ---------------- qinkunbao wrote:
> checked - assert(RegExes.empty()); here never trigger on those tests Thanks for the finding. It should be matched by Glob now. https://github.com/llvm/llvm-project/pull/140529 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits