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>
18
#include <
arkanjo/methods/tool/parser.hpp
>
19
#include <
arkanjo/methods/method.hpp
>
20
namespace
fs = std::filesystem;
21
29
class
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
};
FunctionData
Definition
function_data.hpp:8
IMethod
Definition
method.hpp:13
ToolMethod
Main code duplication detection tool.
Definition
tool_method.hpp:29
ToolMethod::ToolMethod
ToolMethod(const fs::path &base_path_, double similarity_)
Constructs the duplication finder tool.
Definition
tool_method.cpp:10
ToolMethod::execute_by_feature
void execute_by_feature(const fs::path &path, const std::string feature_name="")
Executes the full duplication analysis pipeline.
Definition
tool_method.cpp:15
ToolMethod::on_function
void on_function(const FunctionData &fd) override
Definition
tool_method.cpp:46
ToolMethod::execute
void execute() override
Definition
tool_method.cpp:59
method.hpp
parser.hpp
Code duplication results parser.
include
arkanjo
methods
tool
tool_method.hpp
Generated by
1.12.0