diff options
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r-- | src/filedef.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp index edc0ff3..0f2889a 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -93,6 +93,7 @@ FileDef::FileDef(const char *p,const char *nm, docname.prepend(stripFromPath(path.copy())); } m_isJava = name().right(5)==".java"; + m_isCSharp = name().right(5)==".cs"; memberGroupSDict = 0; acquireFileVersion(); m_subGrouping=Config_getBool("SUBGROUPING"); @@ -1550,3 +1551,23 @@ bool FileDef::isLinkableInProject() const return hasDocumentation() && !isReference() && showFiles; } +bool FileDef::includes(FileDef *incFile,QDict<FileDef> *includedFiles) const +{ + if (incFile==this) return TRUE; + //printf("%s::includes(%s)\n",name().data(),incFile->name().data()); + includedFiles->insert(absFilePath(),this); + if (includeList) + { + QListIterator<IncludeInfo> ili(*includeList); + IncludeInfo *ii; + for (;(ii=ili.current());++ili) + { + if (ii->fileDef && + includedFiles->find(ii->fileDef->absFilePath())==0 && + ii->fileDef->includes(incFile,includedFiles)) return TRUE; + } + } + return FALSE; +} + + |