Revert "[clang-tidy] Use default to initialize constructors"

This reverts commit bf40ea8816.
This commit is contained in:
Paul Beckingham 2020-12-05 16:18:15 -05:00
parent aa841f98c9
commit ead50d4d6e
3 changed files with 29 additions and 4 deletions

View file

@ -49,10 +49,21 @@ A2::A2 (const std::string& raw, Lexer::Type lextype)
}
////////////////////////////////////////////////////////////////////////////////
A2::A2 (const A2& other) = default;
A2::A2 (const A2& other)
: _lextype (other._lextype)
, _tags (other._tags)
, _attributes (other._attributes)
{
}
////////////////////////////////////////////////////////////////////////////////
A2& A2::operator= (const A2& other) = default;
A2& A2::operator= (const A2& other)
{
_lextype = other._lextype;
_tags = other._tags;
_attributes = other._attributes;
return *this;
}
////////////////////////////////////////////////////////////////////////////////
bool A2::hasTag (const std::string& tag) const