diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-10-30 20:57:53 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-10-30 20:57:53 (GMT) |
commit | c6d6555a949e86be5c859311eb4db5dcc092c258 (patch) | |
tree | dd06bd100b0bd88b6ee40c8464efac800a749c32 /src/doxygen.cpp | |
parent | 7c34dd2b1594925d0a012e9ba290bf9c80574db5 (diff) | |
download | Doxygen-c6d6555a949e86be5c859311eb4db5dcc092c258.zip Doxygen-c6d6555a949e86be5c859311eb4db5dcc092c258.tar.gz Doxygen-c6d6555a949e86be5c859311eb4db5dcc092c258.tar.bz2 |
Release-1.2.18-20021030
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 8874917..22b12e5 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -1482,11 +1482,20 @@ static bool isVarWithConstructor(Entry *root) bool result=FALSE; bool typeIsClass; Definition *ctx = 0; + FileDef *fd = 0; + bool ambig; if (root->parent && root->parent->section&Entry::COMPOUND_MASK) { // inside a class result=FALSE; goto done; } + else if ((fd = findFileDef(Doxygen::inputNameDict,root->fileName,ambig)) && + fd->name().right(2)==".c" + ) + { // inside a .c file + result=FALSE; + goto done; + } if (root->type.isEmpty()) { result=FALSE; @@ -1534,7 +1543,7 @@ static bool isVarWithConstructor(Entry *root) //printf("resType=%s\n",resType.data()); if (resType=="int" || resType=="long" || resType=="float" || resType=="double" || resType=="char" || resType=="signed" || - resType=="const" || resType=="unsigned") + resType=="const" || resType=="unsigned" || resType=="void") { result=FALSE; // type keyword -> function prototype goto done; @@ -3450,9 +3459,11 @@ static void computeClassRelations() if ((cd==0 || (!cd->hasDocumentation() && !cd->isReference())) && bName.right(2)!="::") { - if (!root->name.isEmpty() && root->name[0]!='@' && - (guessSection(root->fileName)==Entry::HEADER_SEC || Config_getBool("EXTRACT_LOCAL_CLASSES")) && - (root->protection!=Private || Config_getBool("EXTRACT_PRIVATE")) + if (!root->name.isEmpty() && root->name[0]!='@' && // normal name + (guessSection(root->fileName)==Entry::HEADER_SEC || + Config_getBool("EXTRACT_LOCAL_CLASSES")) && // not defined in source file + (root->protection!=Private || Config_getBool("EXTRACT_PRIVATE")) && // hidden by protection + !Config_getBool("HIDE_UNDOC_CLASSES") // undocumented class are visible ) warn_undoc( root->fileName,root->startLine, @@ -7175,6 +7186,10 @@ void readConfiguration(int argc, char **argv) /* Set the global html file extension. */ Doxygen::htmlFileExtension = Config_getString("HTML_FILE_EXTENSION"); + /* Perlmod wants to know the path to the config file.*/ + QFileInfo configFileInfo(configName); + setPerlModDoxyfile(configFileInfo.absFilePath()); + /* init the special lists */ Doxygen::specialLists->setAutoDelete(TRUE); Doxygen::specialLists->insert("todo", |