Static analysis of variable usage from Rider in CLion?

Answered

In Rider there are hints about usage of mostly everything but not in CLion; if I stop using a variable after a refactor, for example, said variable will be grayed out and Rider will hint me about it having zero usages, this also applied to methods and properties, but the same isn't present in CLion apparently. I have to manually check each and every variable and function to know if they're being used or not. I assume this has to do with the complexity of C++ but is this really not doable in CLion? Have the tips about how many usages a variable or function have.

0
2 comments

Hello, 
Based on your feedback, I created a feature request with our developer to implement this in future CLion versions. 
CPP-50914 Feature request: Display variable and function usage hints in CLion
Please vote or leave a comment. And you will be notified when the YouTrack ticket is updated.
I appreciate your understanding. 

0

Hi, 
Additionally, if you mean the Code vision, we also already have the feature request for that:
CPP-29387 Code Vision Inlay Hints are not working for C++
RIDER-47176 Show number of overrides for virtual function in code vision

For the unused function, we have the next feature request:
CPP-36860 No Unused Struct and Global Declaration Inspections in CLion Nova
Please vote or leave a comment. And you will be notified when the YouTrack ticket is updated.

0

Please sign in to leave a comment.