Arkanjo 0.1
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
function_breaker.hpp
Go to the documentation of this file.
1
19
20#ifndef FUNCTION_BREAKER_HPP
21#define FUNCTION_BREAKER_HPP
22
23#include <bits/stdc++.h>
24#include "../base/utils.hpp"
28using namespace std;
29
44 const vector<string> C_EXTENSIONS = { "c", "h" };
45 const vector<string> JAVA_EXTENSIONS = { "java" };
46 const vector<string> ALLOWED_EXTENSIONS = { "c", "h", "java" };
47
53 bool is_c_extension(string extension);
54
60 bool is_java_extension(string extension);
61
67 bool is_allowed_extension(string extension);
68
74 void file_breaker(string file_path, string folder_path);
75
80 void function_breaker(string folder_path);
81
82 public:
87 FunctionBreaker(string folder_path);
88};
89
90#endif
FunctionBreaker(string folder_path)
Constructs function breaker and processes directory.
C/C++ function parsing and extraction.
Java function parsing and extraction.
Function breaker utilities and constants.
Defines utility functions used across all files.