comm644/cxxmock — pull request #1 by kirillsud (2014-11-21 12:07:30+00:00)
Title: Fixed parsing function arguments when reference simbol and variable name wrote together

I found a situation, when I had a compilation error in generated mock class after **cxxmockgen.py**:

```
C:\work\projects\cxxmock\tests>make
g++ -Wall -Werror -g -o testsuite testsuite.cpp -Icxxtest -I ../
In file included from TestGeneratedMocks.h:4:0,
from testsuite.cpp:68:
mocks.gen.h: In member function 'virtual Type cxxmocks_impl_Interface::canParseReference(const Type&)':
mocks.gen.h:61:10: error: expected primary-expression before ')' token
cc1plus.exe: warnings being treated as errors
mocks.gen.h:62:2: error: control reaches end of non-void function
mingw32-make: *** [testsuite] Error 1
```

Original method:

```c++
virtual Type canParseReference(const Type &arg) = 0;
```

Generated method:

```c++
virtual Type canParseReference(const Type &arg)
{
return CXXMOCK( Type, Type );
}
```

Here is my fix.