mirror of https://github.com/YosysHQ/yosys.git
kernel: fix formatting (thanks @boqwxp)
This commit is contained in:
parent
7bcbf0c9d1
commit
18d85b88ae
|
@ -363,12 +363,10 @@ namespace RTLIL
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
bool in(Args... args) const {
|
bool in(Args... args) const {
|
||||||
//return in(first) || in(rest...);
|
// Credit: https://articles.emptycrate.com/2016/05/14/folds_in_cpp11_ish.html
|
||||||
|
bool result = false;
|
||||||
// Credit: https://articles.emptycrate.com/2016/05/14/folds_in_cpp11_ish.html
|
(void) std::initializer_list<int>{ (result = result || in(args), 0)... };
|
||||||
bool result = false;
|
return result;
|
||||||
(void) std::initializer_list<int>{ (result = result || in(args), 0)... };
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool in(IdString rhs) const { return *this == rhs; }
|
bool in(IdString rhs) const { return *this == rhs; }
|
||||||
|
|
Loading…
Reference in New Issue