mirror of
https://github.com/nasa/trick.git
synced 2025-04-07 19:34:23 +00:00
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:
parent
fc77fbc216
commit
b2432fd269
@ -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 ;
|
||||
}
|
||||
|
@ -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) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user