ThrowTheSwitch / CMock

CMock - Mock/stub generator for C
http://throwtheswitch.org
MIT License
653 stars 269 forks source link

support for removing qualifier dynamically for mocking #386

Closed nathanhack closed 2 years ago

nathanhack commented 2 years ago

Support was added to handle static and inline in https://github.com/ThrowTheSwitch/CMock/pull/261.

It would be great to use cmock out of the box with cuda files. Cuda has qualifiers like __device__ and __shared__ which don't currently play nicely with Cmock.

Would it be possible to add support for others, maybe defined by the user?

Letme commented 2 years ago

Isn't the stippables what you want?

laurensmiers commented 2 years ago

Yes, sounds like you want strippables, but if you want to specify custom inline function patterns, check the docs for inline_function_patterns (+ watch out for the order as mentioned there)

nathanhack commented 2 years ago

That sounds exactly like what I need! Thanks!