Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
similarity_explorer_entry.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <nlohmann/json.hpp>
5
6using json = nlohmann::json;
7
9 std::string path_a;
10 std::string path_b;
12};
13
14inline void to_json(json& j, const SimilarityExplorerEntry& d) {
15 j = {
16 {"path_a", d.path_a},
17 {"path_b", d.path_b},
18 {"duplicated_lines", d.duplicated_lines}
19 };
20}
21
22typedef struct {
23 int found;
24 int show;
26
28 j = {
29 {"found", d.found},
30 {"show", d.show},
31 };
32}
nlohmann::json json
Definition function.hpp:22
void to_json(json &j, const SimilarityExplorerEntry &d)