diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2012-04-29 17:51:51 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2012-04-29 17:51:51 (GMT) |
commit | c11926b2549660b7eb6b73aa4bf2096e56a6f8dd (patch) | |
tree | a8d7cbd0da612bb0b1fa97dcc1bac1838f845338 /src/code.l | |
parent | f928aebbace3b352623721db3599422c14bd0743 (diff) | |
download | Doxygen-c11926b2549660b7eb6b73aa4bf2096e56a6f8dd.zip Doxygen-c11926b2549660b7eb6b73aa4bf2096e56a6f8dd.tar.gz Doxygen-c11926b2549660b7eb6b73aa4bf2096e56a6f8dd.tar.bz2 |
Release-1.8.0-20120429
Diffstat (limited to 'src/code.l')
-rw-r--r-- | src/code.l | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -2378,6 +2378,13 @@ OPERATOR {ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP} codifyLines(yytext); endFontClass(); } +<Body>"*"{B}*")" { // end of cast? + g_code->codify(yytext); + g_theCallContext.popScope(); + g_bracketCount--; + g_parmType = g_name; + BEGIN(FuncCall); + } <Body>[\\|\)\+\-\/\%\~\!] { g_code->codify(yytext); g_name.resize(0);g_type.resize(0); @@ -2870,8 +2877,17 @@ OPERATOR {ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP} } g_code->codify(yytext); } -<MemberCall,MemberCall2,FuncCall>")" { - g_theVarContext.addVariable(g_parmType,g_parmName); +<MemberCall,MemberCall2,FuncCall>("*"{B}*)?")" { + if (yytext[0]==')') // no a pointer cast + { + //printf("addVariable(%s,%s)\n",g_parmType.data(),g_parmName.data()); + g_theVarContext.addVariable(g_parmType,g_parmName); + } + else + { + g_parmType.resize(0); + g_parmName.resize(0); + } g_theCallContext.popScope(); g_inForEachExpression = FALSE; //g_theCallContext.setClass(0); // commented out, otherwise a()->b() does not work for b(). |