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
6using json = nlohmann::json;
7
8typedef struct {
9 std::string pattern;
11
12inline void to_json(json& j, const SimilarFunctionEmptyEntry& d) {
13 j = {
14 {"pattern", d.pattern},
15 };
16}
17
18typedef struct {
19 size_t count;
21
22inline void to_json(json& j, const SimilarFunctionCountEntry& d) {
23 j = {
24 {"count", d.count},
25 };
26}
nlohmann::json json
Definition function.hpp:22
void to_json(json &j, const SimilarFunctionEmptyEntry &d)