ConQAT is a great tool which suports C++ code analysis. Can find duplicates ignoring whitespace. Has extreamly handy gui and console interfaces.
Because of it's flexibility it is not an easy to to setup. I've found this blog post very useful for setting up c++ project.