[all-commits] [llvm/llvm-project] 48993d: Reapply r375051: [support] GlobPattern: add suppor...
Jordan Rupprecht via All-commits
all-commits at lists.llvm.org
Thu Oct 17 11:08:37 PDT 2019
Author: Jordan Rupprecht <rupprecht at google.com>
Date: 2019-10-17 (Thu, 17 Oct 2019)
Reapply r375051: [support] GlobPattern: add support for `\` and `[!...]`, and allow `]` in more places
Reland r375051 (reverted in r375052) after fixing lld tests on Windows in r375126 and r375131.
Original description: Update GlobPattern in libSupport to handle a few more cases. It does not fully match the `fnmatch` used by GNU objcopy since named character classes (e.g. `[[:digit:]]`) are not supported, but this should support most existing use cases (mostly just `*` is what's used anyway).
This will be used to implement the `--wildcard` flag in llvm-objcopy to be more compatible with GNU objcopy.
This is split off of D66613 to land the libSupport changes separately. The llvm-objcopy part will land soon.
Reviewers: jhenderson, MaskRay, evgeny777, espindola, alexshap
Reviewed By: MaskRay
Subscribers: nickdesaulniers, emaste, arichardson, hiraditya, jakehehrlich, abrachet, seiya, llvm-commits
Differential Revision: https://reviews.llvm.org/D66613
More information about the All-commits