Bro doc mode now only does a "shallow" copy of declared record types

This is necessary so that the cloned type will be able to see additions
to the original type's list of fields
This commit is contained in:
Jon Siwek 2011-05-04 21:53:51 -05:00
parent d919ebed58
commit 6d867cf999
3 changed files with 55 additions and 13 deletions

View file

@ -456,6 +456,8 @@ public:
// Given an offset, returns the field's name.
const char* FieldName(int field) const;
type_decl_list* Types() { return types; }
// Given an offset, returns the field's TypeDecl.
const TypeDecl* FieldDecl(int field) const;
TypeDecl* FieldDecl(int field);