|
ArKanjo 0.2
A tool for find code duplicated functions in codebases
|
Code duplication preprocessor. More...
#include <diff_method.hpp>
Inheritance diagram for DiffMethod:
Collaboration diagram for DiffMethod:Public Member Functions | |
| DiffMethod (const fs::path &base_path_, double similarity_) | |
| Constructs preprocessor with configuration. | |
| void | on_function (const FunctionData &fd) override |
| void | execute () override |
| Executes the preprocessing pipeline. | |
Public Member Functions inherited from IMethod | |
| virtual | ~IMethod ()=default |
Code duplication preprocessor.
Performs initial analysis of the codebase to identify and catalog potential code duplications, creating a foundation for fast similarity queries during the main operation phase.
Definition at line 30 of file diff_method.hpp.
| DiffMethod::DiffMethod | ( | const fs::path & | base_path_, |
| double | similarity_ ) |
Constructs preprocessor with configuration.
| base_path_ | Root path of codebase |
| similarity_ | Similarity threshold (0-100) |
Definition at line 9 of file diff_method.cpp.
|
overridevirtual |
Executes the preprocessing pipeline.
Implements IMethod.
Definition at line 155 of file diff_method.cpp.
|
overridevirtual |
Implements IMethod.
Definition at line 142 of file diff_method.cpp.