-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No function prototypes found in C++ header #472
Comments
Hi. This feature isn't part of the previous release. It's in the about-to-be-released 2.6.0. You can clone the repo if you'd like access to it immediately (make sure you include submodules). Alternatively, you can download the zip file generated by github (in which case you'll need to also grab the zip files for Unity and CException, if you're using it) |
I am using the 2.6.0 branch afaik:
|
Digging into https://github.com/ThrowTheSwitch/CMock/blob/master/lib/cmock_header_parser.rb#L334 it seems that
Adding
creates a mock for
The documentation could be a bit clearer. It says:
It would help if it explicitly stated that non-static methods need a C++ mocking framework, for example
|
According to https://github.com/ThrowTheSwitch/CMock/blob/master/docs/CMock_Summary.md the following example
should generate
but the actual mock is missing the declaration.
Running this command:
The generated mock is empty:
The text was updated successfully, but these errors were encountered: