ArKanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
tool_method.hpp
Go to the documentation of this file.
1
14#pragma once
15
16#include <string>
17#include <filesystem>
20namespace fs = std::filesystem;
21
29class ToolMethod : public IMethod {
30 private:
31 static constexpr const char* SAVING_MESSAGE = "Saving results...";
32
33 fs::path base_path;
34 double similarity;
35
36 public:
42 ToolMethod(const fs::path& base_path_, double similarity_);
43
50 void execute_by_feature(const fs::path& path, const std::string feature_name = "");
51
52 void on_function(const FunctionData& fd) override;
53
54 void execute() override;
55};
Main code duplication detection tool.
ToolMethod(const fs::path &base_path_, double similarity_)
Constructs the duplication finder tool.
void execute_by_feature(const fs::path &path, const std::string feature_name="")
Executes the full duplication analysis pipeline.
void on_function(const FunctionData &fd) override
void execute() override
Code duplication results parser.