Arkanjo
0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
similar_function_finder_entry.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
#include <nlohmann/json.hpp>
5
6
using
json
= nlohmann::json;
7
8
typedef
struct
{
9
std::string
pattern
;
10
}
SimilarFunctionEmptyEntry
;
11
12
inline
void
to_json
(
json
& j,
const
SimilarFunctionEmptyEntry
& d) {
13
j = {
14
{
"pattern"
, d.
pattern
},
15
};
16
}
17
18
typedef
struct
{
19
size_t
count
;
20
}
SimilarFunctionCountEntry
;
21
22
inline
void
to_json
(
json
& j,
const
SimilarFunctionCountEntry
& d) {
23
j = {
24
{
"count"
, d.
count
},
25
};
26
}
json
nlohmann::json json
Definition
function.hpp:22
to_json
void to_json(json &j, const SimilarFunctionEmptyEntry &d)
Definition
similar_function_finder_entry.hpp:12
SimilarFunctionCountEntry
Definition
similar_function_finder_entry.hpp:18
SimilarFunctionCountEntry::count
size_t count
Definition
similar_function_finder_entry.hpp:19
SimilarFunctionEmptyEntry
Definition
similar_function_finder_entry.hpp:8
SimilarFunctionEmptyEntry::pattern
std::string pattern
Definition
similar_function_finder_entry.hpp:9
src
commands
finder
similar_function_finder_entry.hpp
Generated by
1.12.0