summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2010-02-16 21:11:17 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2010-02-16 21:11:17 (GMT)
commite2eb1d33d197604c048fb035fd1b6ecbd6a7494a (patch)
tree524eebded0dbf9efbc5b02ab15856f10f914ff99 /src/filedef.cpp
parentf22ba481afa686d1a834e056963f8d41621aba88 (diff)
downloadDoxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.zip
Doxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.tar.gz
Doxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.tar.bz2
Release-1.6.2-20100216
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp21
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;
+}
+
+