Browse Source

Fix missing Attribute dtor in GCC 11.

Parser bindings are expecting this, yet this was optimized out under GCC
11.
pull/1765/head
Joao Matos 2 years ago
parent
commit
fc3f0deb55
  1. 2
      src/CppParser/AST.cpp
  2. 1
      src/CppParser/AST.h

2
src/CppParser/AST.cpp

@ -1078,6 +1078,8 @@ HTMLStartTagComment::Attribute::Attribute() {} @@ -1078,6 +1078,8 @@ HTMLStartTagComment::Attribute::Attribute() {}
HTMLStartTagComment::Attribute::Attribute(const Attribute& rhs) : name(rhs.name), value(rhs.value) {}
HTMLStartTagComment::Attribute::~Attribute() {}
HTMLStartTagComment::HTMLStartTagComment() : HTMLTagComment(CommentKind::HTMLStartTagComment) {}
DEF_VECTOR(HTMLStartTagComment, HTMLStartTagComment::Attribute, Attributes)

1
src/CppParser/AST.h

@ -201,6 +201,7 @@ public: @@ -201,6 +201,7 @@ public:
public:
Attribute();
Attribute(const Attribute&);
~Attribute();
std::string name;
std::string value;
};

Loading…
Cancel
Save