diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-01-19 14:17:08 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-01-19 14:17:08 (GMT) |
commit | 5444d2e935275ef5fe767cbf1474253ded0d03b9 (patch) | |
tree | 7bf554e6c7f68318fbf74fc72587680339ae4428 /src/doxygen.cpp | |
parent | cbeaf5763aef97b1f116c9996cb69c74133162bc (diff) | |
parent | 7a976e9bca2488ba2a06510947974f74ca074afc (diff) | |
download | Doxygen-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.cpp | 4 |
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()); |