i've got little bit untidy project in c++ (visual studio solution + cmakelists.txt). there lot of "includes" external projects, , hard say, 1 in use.
i want remove unused headers, , related them implementation files both visual studio solution , cmakelists.txt.
is there tool such task?
a commercial solution problem "understand c/c++". it's application scans complete codebase, stores relations in internal database, after can open kinds of reports or perform queries on it. think has possibility unused classes, unused methods, dead code, ...
a free solution might use /verbose linker option of visual studio. option causes linker print out object files included in final executable. can take output, match of .cpp files, , see .cpp files not included in executable (this might require write small utility, or maybe excel magic).
Comments
Post a Comment