Search for public members that should be private?

Discussion in 'MFC' started by poolisfun, Aug 31, 2010.

  1. poolisfun

    poolisfun New Member

    Joined:
    Aug 31, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I was wondering if there was any way for msvc++ to automatically search my code for all public members that could be private without causing any compiler errors.
    For example,
    Code:
    class hello
    {
       public:
          int bye();
          int cry();
       private:
          int smile();
    };
    int main()
    {
       hello tom;
       tom.bye();
       return 0;
    }
    Should tell me that cry() can be made private (because it is never used publicly).
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice