ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
function_loader.hpp
Go to the documentation of this file.
1
8#pragma once
9
11#include <arkanjo/base/path.hpp>
12
14 public:
21 Function load(const Path& path);
22
32 Function load_metadata(const Path& path);
33
34 private:
35 static constexpr const char* LINE_DECLARATION_JSON =
36 "line_declaration";
37 static constexpr const char* START_NUMBER_LINE_JSON =
38 "start_number_line";
39 static constexpr const char* END_NUMBER_LINE_JSON =
40 "end_number_line";
41
47 void read_content(Function& function);
48
52 void read_header(Function& function);
53
59 void read_info(Function& function);
60};
Function load(const Path &path)
Loads a function from a path.
Function load_metadata(const Path &path)
Loads function metadata from a path.
Represents a function extracted from a codebase.
Definition: function.hpp:45
Represents a logical path to a function in the codebase.
Definition: path.hpp:26
Function representation for a codebase.
Logical path abstraction for source code elements.