Arkanjo 0.1
A tool for find code duplicated functions in codebases
|
Main function extraction interface. More...
#include <string>
#include <vector>
#include "../base/utils.hpp"
#include "function_breaker_c.hpp"
#include "function_breaker_java.hpp"
#include "function_breaker_util.hpp"
Go to the source code of this file.
Classes | |
class | FunctionBreaker |
Main function extraction processor. More... | |
Main function extraction interface.
Provides the primary interface for processing source code directories and extracting functions/structs into individual files in a temporary repository.
This file intends to create the process of reading a directory with code in c or java and extract every function/struct of every .c /.java file as a new file in the temporary repository, aka, tmp/
Example of expected behaviour: There is a file example.c with functions a and b, will be create two new files: example/a.c and example/b.c
TODO: Doesn't work correct if the file has an incorrect bracket sequence, even if the bracket sequence is in a commentary
Definition in file function_breaker.hpp.