Files
llvm-project/llvm/lib/Support/GlobPattern.cpp
Vitaly Buka 6fdef0bbe2 [NFC][GlobPattern] Add GlobPattern::longest_substr() (#164512)
Finds longest (almost) plain substring in the pattern.

Implementation is conservative to avoid false positives.

The result is not used to optimize
`GlobPattern::match()` so it's calculated on
request.

For
* https://github.com/llvm/llvm-project/pull/164545

---------

Co-authored-by: Luke Lau <luke@igalia.com>
2025-10-23 03:46:40 +00:00

9.5 KiB