|
Than Ngo |
b77803 |
commit d067baf495d0415283ce724ad32cb9a08dc17c83
|
|
Than Ngo |
b77803 |
Author: Dimitri van Heesch <doxygen@gmail.com>
|
|
Than Ngo |
b77803 |
Date: Thu Sep 17 20:14:39 2020 +0200
|
|
Than Ngo |
b77803 |
|
|
Than Ngo |
b77803 |
issue #8034: doxygen crashes
|
|
Than Ngo |
b77803 |
|
|
Than Ngo |
b77803 |
diff --git a/src/definition.cpp b/src/definition.cpp
|
|
Than Ngo |
b77803 |
index 7874a5e4..dc968399 100644
|
|
Than Ngo |
b77803 |
--- a/src/definition.cpp
|
|
Than Ngo |
b77803 |
+++ b/src/definition.cpp
|
|
Than Ngo |
b77803 |
@@ -176,14 +176,14 @@ static bool matchExcludedSymbols(const char *name)
|
|
Than Ngo |
b77803 |
QRegExp re(substitute(pattern,"*",".*"),TRUE);
|
|
Than Ngo |
b77803 |
int pl;
|
|
Than Ngo |
b77803 |
int i = re.match(symName,0,&pl);
|
|
Than Ngo |
b77803 |
- //printf(" %d = re.match(%s) pattern=%s\n",i,symName.data(),pattern.data());
|
|
Than Ngo |
b77803 |
+ //printf(" %d = re.match(%s) pattern=%s pl=%d len=%d\n",i,symName.data(),pattern.data(),pl,symName.length());
|
|
Than Ngo |
b77803 |
if (i!=-1) // wildcard match
|
|
Than Ngo |
b77803 |
{
|
|
Than Ngo |
b77803 |
uint ui=(uint)i;
|
|
Than Ngo |
b77803 |
uint sl=symName.length();
|
|
Than Ngo |
b77803 |
// check if it is a whole word match
|
|
Than Ngo |
b77803 |
- if ((ui==0 || pattern.at(0)=='*' || (!isId(symName.at(ui-1)) && !forceStart)) &&
|
|
Than Ngo |
b77803 |
- (ui+pl==sl || pattern.at(ui+pl)=='*' || (!isId(symName.at(ui+pl)) && !forceEnd))
|
|
Than Ngo |
b77803 |
+ if ((ui==0 || pattern.at(0)=='*' || (!isId(symName.at(ui-1)) && !forceStart)) &&
|
|
Than Ngo |
b77803 |
+ (ui+pl==sl || pattern.at(pattern.length()-1)=='*' || (!isId(symName.at(ui+pl)) && !forceEnd))
|
|
Than Ngo |
b77803 |
)
|
|
Than Ngo |
b77803 |
{
|
|
Than Ngo |
b77803 |
//printf("--> name=%s pattern=%s match at %d\n",symName.data(),pattern.data(),i);
|
|
Than Ngo |
b77803 |
diff --git a/src/util.cpp b/src/util.cpp
|
|
Than Ngo |
b77803 |
index 0581b5fa..34df8d7b 100644
|
|
Than Ngo |
b77803 |
--- a/src/util.cpp
|
|
Than Ngo |
b77803 |
+++ b/src/util.cpp
|
|
Than Ngo |
b77803 |
@@ -5714,7 +5714,7 @@ QCString normalizeNonTemplateArgumentsInString(
|
|
Than Ngo |
b77803 |
result += name.mid(p,i-p);
|
|
Than Ngo |
b77803 |
QCString n = name.mid(i,l);
|
|
Than Ngo |
b77803 |
bool found=FALSE;
|
|
Than Ngo |
b77803 |
- for (const Argument formArg : formalArgs)
|
|
Than Ngo |
b77803 |
+ for (const Argument &formArg : formalArgs)
|
|
Than Ngo |
b77803 |
{
|
|
Than Ngo |
b77803 |
if (formArg.name == n)
|
|
Than Ngo |
b77803 |
{
|