Commit d55d8d24 authored by Paul's avatar Paul
Browse files

Fix tidy issues

parent 5c7bee3a
...@@ -246,7 +246,7 @@ struct find_skip ...@@ -246,7 +246,7 @@ struct find_skip
M m; M m;
M matcher() const { return m; } M matcher() const { return m; }
void apply(program&, matcher_result) const {} void apply(program&, const matcher_result&) const {}
}; };
template <class M> template <class M>
......
...@@ -13,7 +13,7 @@ auto lit_broadcast() { return match::any_of(match::is_constant(), match::name("b ...@@ -13,7 +13,7 @@ auto lit_broadcast() { return match::any_of(match::is_constant(), match::name("b
auto not_lit_broadcast() { return match::none_of(match::is_constant(), match::name("broadcast")); } auto not_lit_broadcast() { return match::none_of(match::is_constant(), match::name("broadcast")); }
auto op_lit_broadcast(std::string op, std::string x, std::string y) auto op_lit_broadcast(std::string op, std::string x, std::string y)
{ {
return match::name(op)(match::either_arg(0, 1)(lit_broadcast().bind(std::move(x)), return match::name(std::move(op))(match::either_arg(0, 1)(lit_broadcast().bind(std::move(x)),
not_lit_broadcast().bind(std::move(y)))); not_lit_broadcast().bind(std::move(y))));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment