mirror of
https://github.com/nasa/trick.git
synced 2025-01-06 13:18:46 +00:00
ICG still processing comments in files it is supposed to skip, one more time
Tested the name of the header file right when a class is starting processing. If the class is in a file that is in an ICG_EXCLUDE directory, we quit processing right there. refs #251
This commit is contained in:
parent
4a54ff169b
commit
bb3a788c5f
@ -149,7 +149,18 @@ bool CXXRecordVisitor::VisitCXXRecordDecl( clang::CXXRecordDecl *rec ) {
|
||||
cval.setHasPublicDestructor(true) ;
|
||||
}
|
||||
|
||||
cval.setFileName(getFileName(ci , rec->getRBraceLoc(), hsd)) ;
|
||||
std::string file_name = getFileName(ci , rec->getRBraceLoc(), hsd) ;
|
||||
char * rp = almostRealPath(file_name.c_str()) ;
|
||||
if ( rp == NULL ) {
|
||||
return false ;
|
||||
}
|
||||
if ( hsd.isPathInICGExclude(rp) ) {
|
||||
free(rp) ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
cval.setFileName(rp) ;
|
||||
free(rp) ;
|
||||
cval.setAbstract(rec->isAbstract()) ;
|
||||
cval.setName(rec->getNameAsString()) ;
|
||||
cval.setPOD(rec->isPOD()) ;
|
||||
|
Loading…
Reference in New Issue
Block a user