11#include "llvm/ADT/StringRef.h"
16 llvm::StringRef match) {
18 case NameMatch::Ignore:
20 case NameMatch::Equals:
22 case NameMatch::Contains:
23 return name.contains(match);
24 case NameMatch::StartsWith:
25 return name.starts_with(match);
26 case NameMatch::EndsWith:
27 return name.ends_with(match);
28 case NameMatch::RegularExpression: {
bool Execute(llvm::StringRef string, llvm::SmallVectorImpl< llvm::StringRef > *matches=nullptr) const
Execute a regular expression match using the compiled regular expression that is already in this obje...
A class that represents a running process on the host machine.
bool NameMatches(llvm::StringRef name, NameMatch match_type, llvm::StringRef match)