diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2012-04-08 14:16:03 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2012-04-08 14:16:03 (GMT) |
commit | c02e23403ebac29078e51df54f796ee71c0e8c3e (patch) | |
tree | ffd092e761289b417363c0562ceb9b93b88f19a4 /src/scanner.l | |
parent | 4126eaa26d354ddd0e9aad8183f140f8f911442e (diff) | |
download | Doxygen-c02e23403ebac29078e51df54f796ee71c0e8c3e.zip Doxygen-c02e23403ebac29078e51df54f796ee71c0e8c3e.tar.gz Doxygen-c02e23403ebac29078e51df54f796ee71c0e8c3e.tar.bz2 |
Release-1.8.0-20120408
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/scanner.l b/src/scanner.l index 7bf8f2b..1a40548 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1693,9 +1693,14 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) current->name=removeRedundantWhiteSpace(substitute(yytext,"\\","::")); //printf("PHP: adding use relation: %s\n",current->name.data()); current->fileName = yyFileName; - current->section=Entry::USINGDIR_SEC; + // add a using declaraton + current->section=Entry::USINGDECL_SEC; current_root->addSubEntry(current); - current = new Entry; + current = new Entry(*current); + // also add it as a using directive + current->section=Entry::USINGDIR_SEC; + current_root->addSubEntry(current); + current = new Entry ; initEntry(); aliasName.resize(0); } @@ -2289,9 +2294,13 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) current->fileName = yyFileName; current->startLine = yyLineNr; current->type.resize(0); - current->args = current->args.simplifyWhiteSpace(); + current->type = "const"; + QCString init = current->initializer.data(); + init = init.simplifyWhiteSpace(); + init = init.left(init.length()-1); + current->initializer = init; current->name = current->name.stripWhiteSpace(); - current->section = Entry::ENUM_SEC; //HACK! + current->section = Entry::VARIABLE_SEC; current_root->addSubEntry(current); current = new Entry ; initEntry(); @@ -2318,12 +2327,11 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) current->name = current->name.stripWhiteSpace(); current->name = current->name.left(current->name.length()-1).stripWhiteSpace(); current->name = current->name.left(current->name.length()-1); - current->args = "("; current->bodyLine = yyLineNr; lastRoundContext = DefinePHPEnd; - pCopyRoundString = ¤t->args; + pCopyRoundGString = ¤t->initializer; roundCount = 0; - BEGIN( CopyRound ); + BEGIN( GCopyRound ); } <FindMembers>[\^%] { // ^ and % are C++/CLI extensions @@ -6002,7 +6010,7 @@ static void parseMain(const char *fileName,const char *fileBuf,Entry *rt) if (YY_START==Comment) { - warn(yyFileName,yyLineNr,"File ended in the middle of a comment block! Perhaps a missing \\endcode?"); + warn(yyFileName,yyLineNr,"warning: File ended in the middle of a comment block! Perhaps a missing \\endcode?"); } //forceEndGroup(); |