summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-01-19 14:17:08 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-01-19 14:17:08 (GMT)
commit5444d2e935275ef5fe767cbf1474253ded0d03b9 (patch)
tree7bf554e6c7f68318fbf74fc72587680339ae4428 /src/doxygen.cpp
parentcbeaf5763aef97b1f116c9996cb69c74133162bc (diff)
parent7a976e9bca2488ba2a06510947974f74ca074afc (diff)
downloadDoxygen-5444d2e935275ef5fe767cbf1474253ded0d03b9.zip
Doxygen-5444d2e935275ef5fe767cbf1474253ded0d03b9.tar.gz
Doxygen-5444d2e935275ef5fe767cbf1474253ded0d03b9.tar.bz2
Merge branch 'master' of github.com:doxygen/doxygen
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 51867be..f51798b 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -2612,11 +2612,13 @@ static void addVariable(const Entry *root,int isFuncPtr=-1)
type=name;
static const QRegExp reName("[a-z_A-Z][a-z_A-Z0-9]*");
int l=0;
+ int j=0;
int i=args.isEmpty() ? -1 : reName.match(args,0,&l);
if (i!=-1)
{
name=args.mid(i,l);
- args=args.mid(i+l,args.find(')',i+l)-i-l);
+ j=args.find(')',i+l)-i-l;
+ if (j >= 0) args=args.mid(i+l,j);
}
//printf("new: type='%s' name='%s' args='%s'\n",
// type.data(),name.data(),args.data());