1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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