add noexcepts (#2119)
Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
@@ -76,7 +76,7 @@ ParseResult Assertion::parse(const Convertible& value, ParsingContext& ctx) {
|
||||
parsed.push_back(std::move(*input));
|
||||
}
|
||||
|
||||
return ParseResult(std::make_unique<Assertion>(type, std::move(parsed)));
|
||||
return ParseResult(std::make_unique<Assertion>(std::move(type), std::move(parsed)));
|
||||
}
|
||||
|
||||
std::string Assertion::getOperator() const {
|
||||
@@ -105,7 +105,7 @@ void Assertion::eachChild(const std::function<void(const Expression&)>& visit) c
|
||||
}
|
||||
};
|
||||
|
||||
bool Assertion::operator==(const Expression& e) const {
|
||||
bool Assertion::operator==(const Expression& e) const noexcept {
|
||||
if (e.getKind() == Kind::Assertion) {
|
||||
auto rhs = static_cast<const Assertion*>(&e);
|
||||
return getType() == rhs->getType() && Expression::childrenEqual(inputs, rhs->inputs);
|
||||
|
||||
Reference in New Issue
Block a user