Loading src/scanner.l +21 −7 Original line number Original line Diff line number Diff line Loading @@ -1176,14 +1176,28 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) } } */ */ <ObjCParams>"(" { <ObjCParams>"(" { roundCount=0; current->argList->getLast()->type.resize(0); BEGIN( ObjCParamType ); BEGIN( ObjCParamType ); } } <ObjCParamType>[^)]* { <ObjCParamType>"(" { current->argList->getLast()->type=QCString(yytext).stripWhiteSpace(); roundCount++; current->argList->getLast()->type+=yytext; } } <ObjCParamType>")"/{B}* { <ObjCParamType>")"/{B}* { if (roundCount<=0) { BEGIN( ObjCParams ); BEGIN( ObjCParams ); } } else { current->argList->getLast()->type+=yytext; roundCount--; } } <ObjCParamType>[^()]* { current->argList->getLast()->type+=QCString(yytext).stripWhiteSpace(); } <ObjCMethod,ObjCParams>";" { // end of method declaration <ObjCMethod,ObjCParams>";" { // end of method declaration if (current->argList->getLast() && current->argList->getLast()->type.isEmpty()) if (current->argList->getLast() && current->argList->getLast()->type.isEmpty()) { { Loading Loading
src/scanner.l +21 −7 Original line number Original line Diff line number Diff line Loading @@ -1176,14 +1176,28 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) } } */ */ <ObjCParams>"(" { <ObjCParams>"(" { roundCount=0; current->argList->getLast()->type.resize(0); BEGIN( ObjCParamType ); BEGIN( ObjCParamType ); } } <ObjCParamType>[^)]* { <ObjCParamType>"(" { current->argList->getLast()->type=QCString(yytext).stripWhiteSpace(); roundCount++; current->argList->getLast()->type+=yytext; } } <ObjCParamType>")"/{B}* { <ObjCParamType>")"/{B}* { if (roundCount<=0) { BEGIN( ObjCParams ); BEGIN( ObjCParams ); } } else { current->argList->getLast()->type+=yytext; roundCount--; } } <ObjCParamType>[^()]* { current->argList->getLast()->type+=QCString(yytext).stripWhiteSpace(); } <ObjCMethod,ObjCParams>";" { // end of method declaration <ObjCMethod,ObjCParams>";" { // end of method declaration if (current->argList->getLast() && current->argList->getLast()->type.isEmpty()) if (current->argList->getLast() && current->argList->getLast()->type.isEmpty()) { { Loading