diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-02-16 21:11:17 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-02-16 21:11:17 (GMT) |
commit | e2eb1d33d197604c048fb035fd1b6ecbd6a7494a (patch) | |
tree | 524eebded0dbf9efbc5b02ab15856f10f914ff99 /src/scanner.l | |
parent | f22ba481afa686d1a834e056963f8d41621aba88 (diff) | |
download | Doxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.zip Doxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.tar.gz Doxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.tar.bz2 |
Release-1.6.2-20100216
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l index 038eb1b..b7d70aa 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -4031,7 +4031,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) // was: current->args.simplifyWhiteSpace(); current->fileName = yyFileName; current->startLine = yyLineNr; - static QRegExp re("([^)]*\\[*&][^)]*)"); // (...*...) + static QRegExp re("([^)]*[*&][^)]*)"); // (...*...) if (*yytext!=';' || (current_root->section&Entry::COMPOUND_MASK) ) { int tempArg=current->name.find('<'); @@ -4041,6 +4041,10 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) (current->type.find(re,0)!=-1 || current->type.left(8)=="typedef ")) { //printf("Scanner.l: found in class variable: `%s' `%s' `%s'\n", current->type.data(),current->name.data(),current->args.data()); + if (isTypedef && current->type.left(8)!="typedef ") + { + current->type.prepend("typedef "); + } current->section = Entry::VARIABLE_SEC ; } else @@ -4056,6 +4060,10 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) if (!current->type.isEmpty() && (current->type.find(re,0)!=-1 || current->type.left(8)=="typedef ")) { + if (isTypedef && current->type.left(8)!="typedef ") + { + current->type.prepend("typedef "); + } //printf("Scanner.l: found function variable!\n"); current->section = Entry::VARIABLE_SEC; } |