gmock method generation

已回答

Hi, 

is there a possibility in clion to generate mock-methods in a class.

As a comparison in VisualStudio, you can declare a class, have it inherit from another class and if you include gmock you get the option to generate mock methods. Since this has proven rather helpful but i could not find it in clion, i was wondering if that feature is implemented?

Best regards,

Jan Stolle

0

Hello!

It's not implemented in CLion Classic yet - CPP-8333. Feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

But it works in CLion Nova since it uses the ReSharper C++ language engine - https://blog.jetbrains.com/clion/2023/11/clion-nova/. Feel free to give CLion Nova a try.

0

Alright, thanks for the info!

0

请先登录再写评论。