diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-09-13 17:26:00 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-09-13 17:26:00 (GMT) |
commit | 2fbdd54de993944146888498d997e6ade29e8d8c (patch) | |
tree | e74e4a8d2b3a92ce8032ad6114a63f1ddb8fed48 /src/doxygen.cpp | |
parent | 4ccd672ea5dbda17649f2e33577b5ab7eb02db7e (diff) | |
download | Doxygen-2fbdd54de993944146888498d997e6ade29e8d8c.zip Doxygen-2fbdd54de993944146888498d997e6ade29e8d8c.tar.gz Doxygen-2fbdd54de993944146888498d997e6ade29e8d8c.tar.bz2 |
Release-1.3.8-20040913
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 2abe36a..588f401 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -1785,10 +1785,16 @@ static bool isVarWithConstructor(Entry *root) Argument *a; for (ali.toFirst();(a=ali.current());++ali) { - //printf("a->name=%s a->type=%s\n",a->name.data(),a->type.data()); if (!a->name.isEmpty() || !a->defval.isEmpty()) { - result=FALSE; // arg has (type,name) pair -> function prototype + if (a->name.find(initChars)==0) + { + result=TRUE; + } + else + { + result=FALSE; // arg has (type,name) pair -> function prototype + } goto done; } if (a->type.isEmpty() || getResolvedClass(ctx,fd,a->type)!=0) @@ -2197,8 +2203,8 @@ static void buildFunctionList(Entry *root) ClassDef *cd=0; // check if this function's parent is a class static QRegExp re("([a-z_A-Z0-9: ]*[ *]*[ ]*"); - //printf("root->parent=`%s' cd=%p root->type.find(re,0)=%d\n", - // root->parent->name.data(),getClass(root->parent->name), + //printf("root->parent=`%s' %x cd=%p root->type.find(re,0)=%d\n", + // root->parent->name.data(),root->parent->section,getClass(root->parent->name), // root->type.find(re,0)); QCString scope=stripAnonymousNamespaceScope(root->parent->name); scope=stripTemplateSpecifiersFromScope(scope,FALSE); @@ -2225,6 +2231,7 @@ static void buildFunctionList(Entry *root) isMember=memIndex<ts || memIndex>te; } } + if (root->parent && !root->parent->name.isEmpty() && (root->parent->section & Entry::COMPOUND_MASK) && @@ -6466,7 +6473,7 @@ static void findDirDocumentation(Entry *root) SDict<DirDef>::Iterator sdi(Doxygen::directories); for (sdi.toFirst();(dir=sdi.current());++sdi) { - printf("Dir: %s<->%s\n",dir->name().data(),normalizedName.data()); + //printf("Dir: %s<->%s\n",dir->name().data(),normalizedName.data()); if (dir->name().right(normalizedName.length())==normalizedName) { if (matchingDir) @@ -6486,7 +6493,7 @@ static void findDirDocumentation(Entry *root) } if (matchingDir) { - printf("Match for with dir %s\n",matchingDir->name().data()); + //printf("Match for with dir %s\n",matchingDir->name().data()); matchingDir->setBriefDescription(root->brief,root->briefFile,root->briefLine); matchingDir->setDocumentation(root->doc,root->docFile,root->docLine); } |