Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
function_breaker.hpp
Go to the documentation of this file.
1
20#pragma once
21
26#include <string>
27#include <vector>
28#include <filesystem>
29namespace fs = std::filesystem;
30using namespace std;
31
46 const vector<string> C_EXTENSIONS = {"c", "h"};
47 const vector<string> JAVA_EXTENSIONS = {"java"};
48 const vector<string> ALLOWED_EXTENSIONS = {"c", "h", "java"};
49
55 bool is_c_extension(const std::string& extension);
56
62 bool is_java_extension(const std::string& extension);
63
69 bool is_allowed_extension(const std::string& extension);
70
76 void file_breaker(const fs::path& file_path, const fs::path& folder_path);
77
82 void function_breaker(const fs::path& folder_path);
83
84 public:
89 FunctionBreaker(const fs::path& folder_path);
90};
Main function extraction processor.
FunctionBreaker(const fs::path &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.