Permalink
Browse files

Bug 761007 - Spaces between the closing bracket of the typename and t…

…he opening bracket of the parameter list cause detection issues.

Adding possibility to have spaces between ) and (
  • Loading branch information...
albert-github committed Jan 24, 2016
1 parent 4cdb340 commit 622d18637f9d633b184e43fd3594b661cf4e9375
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scanner.l
View
@@ -4234,7 +4234,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
<FuncFuncType>. {
current->type += *yytext;
}
<FindMembers>"("/{BN}*{ID}{BN}*"*"{BN}*{ID}*")(" { // for catching typedef void (__stdcall *f)() like definitions
<FindMembers>"("/{BN}*{ID}{BN}*"*"{BN}*{ID}*")"{BN}*"(" { // for catching typedef void (__stdcall *f)() like definitions
if (current->type.left(7)=="typedef" && current->bodyLine==-1)
// the bodyLine check is to prevent this guard to be true more than once
{

0 comments on commit 622d186

Please sign in to comment.