/// reason for doing so is efficiency; StringSet is much faster at matching
/// literal strings than Regex.
struct SpecialCaseList::Entry {
+ Entry() {}
+ Entry(Entry &&Other)
+ : Strings(std::move(Other.Strings)), RegEx(std::move(Other.RegEx)) {}
+ Entry &operator=(Entry &&Other) {
+ Strings = std::move(Other.Strings);
+ RegEx = std::move(Other.RegEx);
+ return *this;
+ }
+
StringSet<> Strings;
std::unique_ptr<Regex> RegEx;