diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-11-06 19:00:58 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-11-06 19:00:58 (GMT) |
commit | 01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e (patch) | |
tree | 0a8fa55f942d3a0e2f845bc77e6a357b9fb1c1c7 /src/doxygen.cpp | |
parent | a32c2461bfbe6705159abfcae92fb11f1309b37c (diff) | |
download | Doxygen-01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e.zip Doxygen-01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e.tar.gz Doxygen-01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e.tar.bz2 |
Release-1.7.2-20101106
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 3efe75d..7ff5c89 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -2197,8 +2197,9 @@ static MemberDef *addVariableToFile( * \returns -1 if this is not a function pointer variable or * the index at which the brace of (...*name) was found. */ -static int findFunctionPtr(const QCString &type,int *pLength=0) +static int findFunctionPtr(const QCString &type,int lang, int *pLength=0) { + if (lang == SrcLangExt_F90) return -1; // Fortran does not have function pointers static const QRegExp re("([^)]*[\\*\\^][^)]*)"); int i=-1,l; if (!type.isEmpty() && // return type is non-empty @@ -2381,7 +2382,7 @@ static void addVariable(EntryNav *rootNav,int isFuncPtr=-1) else { int i=isFuncPtr; - if (i==-1) i=findFunctionPtr(root->type); // for typedefs isFuncPtr is not yet set + if (i==-1) i=findFunctionPtr(root->type,root->lang); // for typedefs isFuncPtr is not yet set if (i!=-1) // function pointer { int ai = root->type.find('[',i); @@ -2593,7 +2594,7 @@ static void buildVarList(EntryNav *rootNav) (rootNav->section()==Entry::VARIABLE_SEC // it's a variable ) || (rootNav->section()==Entry::FUNCTION_SEC && // or maybe a function pointer variable - (isFuncPtr=findFunctionPtr(rootNav->type()))!=-1 + (isFuncPtr=findFunctionPtr(rootNav->type(),rootNav->lang()))!=-1 ) || (rootNav->section()==Entry::FUNCTION_SEC && // class variable initialized by constructor isVarWithConstructor(rootNav) @@ -6164,7 +6165,7 @@ static void filterMemberDocumentation(EntryNav *rootNav) } if ( // detect func variable/typedef to func ptr - (i=findFunctionPtr(root->type,&l))!=-1 + (i=findFunctionPtr(root->type,root->lang,&l))!=-1 ) { //printf("Fixing function pointer!\n"); @@ -10393,6 +10394,7 @@ void generateOutput() // what categories we find in this function. if (Config_getBool("GENERATE_HTML") && searchEngine) { + msg("Generating search indices...\n"); QCString searchDirName = Config_getString("HTML_OUTPUT")+"/search"; QDir searchDir(searchDirName); if (!searchDir.exists() && !searchDir.mkdir(searchDirName)) |