michaelernst / 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 can't parse class definitions with compiler attributes #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Script fails on legal class definition like in failed2.cpp or in failed.cpp.

What steps will reproduce the problem?
1. gmock_gen.py failed2.cpp
2. gmock_gen.py failed.cpp

What is the expected output?
class MockA : public A {
 public:
  MOCK_METHOD0(foo,
      void());
};

What do you see instead?
Got non-typedef token in failed2.cpp @ Token('(', 19, 20) []
Got exception in failed2.cpp @ Token('public', 37, 43) []

Which version of Google Mock are you using? On what operating system?
1.5.0. Windows XP, SP3

Please provide any additional information below.
Python 2.7

Original issue reported on code.google.com by aleksand...@gmail.com on 25 Aug 2010 at 7:15

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 30 Aug 2010 at 5:53