support for record extensions when using -O gen-standalone-C++

This commit is contained in:
Vern Paxson 2025-01-09 16:11:37 -08:00 committed by Arne Welzel
parent 300b3788e2
commit 960931ba5c
7 changed files with 64 additions and 9 deletions

View file

@ -618,11 +618,16 @@ public:
const detail::AttrPtr& GetAttr(detail::AttrTag a) const { return attrs ? attrs->Find(a) : detail::Attr::nil; }
const detail::Location* GetLocationInfo() const { return &loc; }
void DescribeReST(ODesc* d, bool roles_only = false) const;
TypePtr type;
detail::AttributesPtr attrs;
const char* id = nullptr;
private:
detail::Location loc = detail::GetCurrentLocation();
};
using type_decl_list = PList<TypeDecl>;