|
ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
|
Main function extraction processor. More...
#include <function_breaker.hpp>
Public Member Functions | |
| int | process (const fs::path &folder_path, std::function< void(const FunctionData &)> on_function, SkipStats &stats, int minimum_lines=0, Granularity granularity=Granularity::Function) |
| Processes all files in directory. More... | |
| FunctionBreaker ()=default | |
| Constructs function breaker and processes directory. More... | |
Main function extraction processor.
Analyzes source code directories (C/C++/Java) and extracts each function into individual files within a temporary repository. Handles file organization and delegates language-specific parsing to appropriate handlers.
Definition at line 56 of file function_breaker.hpp.
|
default |
Constructs function breaker and processes directory.
| folder_path | Directory containing source files to process |
| int FunctionBreaker::process | ( | const fs::path & | folder_path, |
| std::function< void(const FunctionData &)> | on_function, | ||
| SkipStats & | stats, | ||
| int | minimum_lines = 0, |
||
| Granularity | granularity = Granularity::Function |
||
| ) |
Processes all files in directory.
| folder_path | Directory path to process |
| on_function | Callback invoked for every extracted unit |
| granularity | Whether to break the codebase by function or by file |
Definition at line 82 of file function_breaker.cpp.