diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2025-10-22 20:46:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 03:46:40 +0000 |
| commit | 6fdef0bbe235303dd98be61275acfa79fab34770 (patch) | |
| tree | d88a01fcf6c57579ad35d7c4b4cdaa054ba7a88d /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | 3c2dae69196801b830e849f43b744a15fbc75547 (diff) | |
| download | llvm-6fdef0bbe235303dd98be61275acfa79fab34770.zip llvm-6fdef0bbe235303dd98be61275acfa79fab34770.tar.gz llvm-6fdef0bbe235303dd98be61275acfa79fab34770.tar.bz2 | |
[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>
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
