Find out if a function is called within a C++ project?
<p>I'm trying to remove functions that are not used from a C++ project.  Over time it's become bloated and I'm looking to remove functions that aren't used at all.</p>

<p>I have all the projects in a solution file in Visual Studio, but I use cmake so I can generate project files for another IDE if necessary (which is why this isn't tagged with visual-studio).</p>

<p>Does something like this exist?  Where it'll analyze the source and tell me which functions are not called.  I saw PC-Lint mentioned in a few questions here, but that doesn't seem to do this.</p>

<p>What I really want to do is call "Find all references" on each function and remove the functions not called, but doing this manually would take much too long.</p>
