diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-04-03 16:49:13 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-04-03 16:49:13 (GMT) |
commit | e5d8b060f74171bb27a1783d313429b0198ef42b (patch) | |
tree | f8bef618690d97139e586f102db4e418c3a5dff8 /src/doxygen.cpp | |
parent | 0ef84d280c0a594f708c8c65e84ff59e8799821f (diff) | |
download | Doxygen-e5d8b060f74171bb27a1783d313429b0198ef42b.zip Doxygen-e5d8b060f74171bb27a1783d313429b0198ef42b.tar.gz Doxygen-e5d8b060f74171bb27a1783d313429b0198ef42b.tar.bz2 |
Release 2000-04-03
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 41 |
1 files changed, 3 insertions, 38 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 8060e93..d53f327 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -11,7 +11,8 @@ * for any purpose. It is provided "as is" without express or implied warranty. * See the GNU General Public License for more details. * - * All output generated with Doxygen is not covered by this license. + * Documents produced by Doxygen are derivative works derived from the + * input used in their production; they are not affected by this license. * */ @@ -370,43 +371,6 @@ static void addIncludeFile(ClassDef *cd,FileDef *ifd,Entry *root) } } -/*! Input is a scopeName, output is the scopename split into a - * namespace part (as large as possible) and a classname part. - */ -static void extractNamespaceName(const QCString &scopeName, - QCString &className,QCString &namespaceName) -{ - QCString clName=scopeName.copy(); - QCString nsName; - if (!clName.isEmpty() && namespaceDict[clName] && getClass(clName)==0) - { // the whole name is a namespace (and not a class) - namespaceName=clName.copy(); - className.resize(0); - //printf("extractNamespace `%s' => `%s|%s'\n",scopeName.data(), - // className.data(),namespaceName.data()); - return; - } - int i,p=clName.length()-2; - while (p>=0 && (i=clName.findRev("::",p))!=-1) - // see if the first part is a namespace (and not a class) - { - if (i>0 && namespaceDict[clName.left(i)] && getClass(clName.left(i))==0) - { - namespaceName=clName.left(i); - className=clName.right(clName.length()-i-2); - //printf("extractNamespace `%s' => `%s|%s'\n",scopeName.data(), - // className.data(),namespaceName.data()); - return; - } - p=i-2; // try a smaller piece of the scope - } - className=scopeName.copy(); - namespaceName.resize(0); - //printf("extractNamespace `%s' => `%s|%s'\n",scopeName.data(), - // className.data(),namespaceName.data()); - return; -} - static bool addNamespace(Entry *root,ClassDef *cd) { // see if this class is defined inside a namespace @@ -1837,6 +1801,7 @@ static bool findBaseClassRelation(Entry *root,ClassDef *cd, // the undocumented base was found in this file baseClass->insertUsedFile(root->fileName); // add class to the list + //classList.inSort(baseClass); classList.inSort(baseClass); //printf("ClassDict.insert(%s)\n",resolveDefines(fullName).data()); //classDict.insert(resolveDefines(bi->name),baseClass); |