Searches a project for copy-pasted code in three steps:
-
Gets build information by listening what the build system sens to CXX.
-
Parses the project with this build information.
-
Searches all compilation units in the project for clones.
Run with:
clang-clone-finder COMMAND
Example: run clang-clone-finder make
in the /tests/testproject1
directory.
Currently only collects build information and prints it to the command line.