Trickified Project Libraries #309

We were ignoring classes completely if it was found in to be in an external library
directory.  We need to partially process it so it is included in the ICG generated
class_map file which registers attributes of classes and eventually works it's way
to populating the S_sie file.
This commit is contained in:
Alex Lin 2016-09-15 14:48:23 -05:00
parent fc77fbc216
commit b2432fd269
2 changed files with 6 additions and 3 deletions

View File

@ -155,7 +155,6 @@ bool CXXRecordVisitor::VisitCXXRecordDecl( clang::CXXRecordDecl *rec ) {
!hsd.isPathInUserDir(rp) ||
hsd.isPathInExclude(rp) ||
hsd.isPathInICGExclude(rp) ||
hsd.isPathInExtLib(rp) ||
cs.hasICGNo(header_file_name) ) {
return false ;
}

View File

@ -280,8 +280,12 @@ void PrintAttributes::printClass( ClassValues * cv ) {
}
// if we are successful in opening the map file
if ( isFileIncluded( cv->getFileName())) {
printer->printClassMap(class_map_outfile, cv) ;
char * rp = almostRealPath(cv->getFileName().c_str()) ;
if ( rp != NULL ) {
if ( isFileIncluded( cv->getFileName()) or hsd.isPathInExtLib(rp)) {
printer->printClassMap(class_map_outfile, cv) ;
}
free(rp) ;
}
}
}