[clang] [llvm] [NFCI][Sanitizer] Convert Matcher::Globs from StringMap to vector. (PR #140964)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri May 23 13:11:39 PDT 2025
================
@@ -125,7 +125,7 @@ class SpecialCaseList {
// Returns zero if no match is found.
LLVM_ABI unsigned match(StringRef Query) const;
- StringMap<std::pair<GlobPattern, unsigned>> Globs;
+ std::vector<std::pair<std::string, std::pair<GlobPattern, unsigned>>> Globs;
----------------
vitalybuka wrote:
Could be easier with:
```
class Glob {
name
pattern
LineNo
}
std::vector<std::unique_ptr<Glob>> Globs;
```
https://github.com/llvm/llvm-project/pull/140964
More information about the llvm-commits
mailing list