summaryrefslogtreecommitdiffstats
path: root/src/declinfo.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-01-07 17:28:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-01-07 17:28:47 (GMT)
commit583cc3299ac171f473e4221b0b535ea616e4db03 (patch)
treee0730802a8bb7eac348a5e39cffb88118aa42020 /src/declinfo.l
parent0c9bfb1e7fee31b0f35201e255096df4f6451035 (diff)
downloadDoxygen-583cc3299ac171f473e4221b0b535ea616e4db03.zip
Doxygen-583cc3299ac171f473e4221b0b535ea616e4db03.tar.gz
Doxygen-583cc3299ac171f473e4221b0b535ea616e4db03.tar.bz2
Release-1.2.4-20010107
Diffstat (limited to 'src/declinfo.l')
-rw-r--r--src/declinfo.l11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/declinfo.l b/src/declinfo.l
index 7a1b020..bfa599e 100644
--- a/src/declinfo.l
+++ b/src/declinfo.l
@@ -2,7 +2,7 @@
*
*
*
- * Copyright (C) 1997-2000 by Dimitri van Heesch.
+ * Copyright (C) 1997-2001 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -114,7 +114,7 @@ ID ([a-z_A-Z][a-z_A-Z0-9]*)|(@[0-9]+)
name += yytext;
BEGIN(Operator);
}
-<Start>(~{B}*)?{ID} {
+<Start>(~{B}*)?{ID}({B}*"["{B}*"]")* { // the []'s are for Java
addTypeName();
name += yytext;
}
@@ -228,6 +228,13 @@ void parseFuncDecl(const QCString &decl,QCString &cl,QCString &ctl,QCString &t,
//printf("type=`%s' class=`%s' name=`%s' args=`%s'\n",
// type.data(),scope.data(),name.data(),args.data());
+ int nb = name.findRev('[');
+ if (nb!=-1) // correct for [] in name ambigity (due to Java return type allowing [])
+ {
+ args.prepend(name.right(name.length()-nb));
+ name=name.left(nb);
+ }
+
cl=scope.copy();
//printf("scope=`%s'\n",scope.data());
int il=0,ir=0;