Pointers to STLs cannot be checkpointed. #552

Added code to disable printing of STLs if it is arrayed or has pointer
dimensions.
This commit is contained in:
Alex Lin
2018-01-25 09:40:23 -06:00
parent a2d0387d57
commit 54b57bc351
2 changed files with 11 additions and 0 deletions

View File

@ -60,6 +60,9 @@ bool PrintFileContentsBase::isPrintable( ClassValues * c , FieldDescription * fd
if ( !(fdes->getIO() & ioMask) || !fdes->getTypeName().compare("void") || !fdes->getEnumString().compare("TRICK_VOID")) {
return false;
}
if ( fdes->isSTL() and fdes->getNumDims() ) {
return false;
}
if ( fdes->getAccess() == clang::AS_public || (!fdes->isStatic() && !global_compat15 && !c->isCompat15())) {
return true;
}