mirror of
https://github.com/nasa/trick.git
synced 2025-06-14 13:18:21 +00:00
Ignore privacy
Mostly working. This removes the use of offsetof from all I/O code. This was the only reason we needed friends. In it's place we put the offset value that clang has calculated for the field. Still need to work on virtually inherited classes and confirm bitfields. refs #218
This commit is contained in:
@ -12,7 +12,9 @@ ClassValues::ClassValues(bool in_inherit, bool in_virtual_inherit) :
|
||||
is_pod(false) ,
|
||||
is_abstract(false) ,
|
||||
has_default_constructor(false) ,
|
||||
has_public_destructor(false) {}
|
||||
has_public_destructor(false) ,
|
||||
invade_privacy(false)
|
||||
{}
|
||||
|
||||
ClassValues::~ClassValues() {
|
||||
std::vector<FieldDescription *>::iterator fdit ;
|
||||
@ -232,6 +234,14 @@ bool ClassValues::getHasPublicDestructor() {
|
||||
return has_public_destructor ;
|
||||
}
|
||||
|
||||
void ClassValues::setInvadePrivacy(bool in_val) {
|
||||
invade_privacy = in_val ;
|
||||
}
|
||||
|
||||
bool ClassValues::getInvadePrivacy() {
|
||||
return invade_privacy ;
|
||||
}
|
||||
|
||||
void ClassValues::setMangledTypeName( std::string in_val ) {
|
||||
mangled_type_name = in_val ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user