jiffwan / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gmock_gen.py copies default parameter values to the output. #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run gmock_gen.py on a class that contains a method declaration with a 
default parameter.

What is the expected output? What do you see instead?
The default parameters are stripped from the output.

Please use labels and text to provide additional information.
The default parameters persist in the output.

This has been reported by a user in  
https://groups.google.com/d/msg/googlemock/7F34UpZkABk/UjD9UrpIYUAJ

Original issue reported on code.google.com by vladlosev on 17 May 2011 at 6:07

GoogleCodeExporter commented 9 years ago
Fixed in revision 393. Unfortunately, the fix requires stripping comments and 
names from parameters  with the default values.

Original comment by vladlosev on 20 May 2011 at 9:46