|
Arkanjo 0.2
A tool for find code duplicated functions in codebases
|
Codebase preprocessing orchestrator. More...
#include <preprocessor_build.hpp>
Inheritance diagram for PreprocessorBuild:
Collaboration diagram for PreprocessorBuild:Public Member Functions | |
| PreprocessorBuild () | |
| PreprocessorBuild (bool force_preprocess) | |
| Constructs preprocessor build with optional forcing. | |
| PreprocessorBuild (bool force_preprocess, const fs::path &path, double similarity) | |
| Testing constructor with direct parameter specification. | |
| bool | validate (const ParsedOptions &options) override |
| Validate the arguments already analyzed. | |
| bool | run (const ParsedOptions &options) override |
| Executes the main logic of the command. | |
Public Member Functions inherited from CommandBase< PreprocessorBuild > | |
| virtual void | print_help (const std::string command_name, const OptionsCollector *collector) const |
| const CliOption * | options () const final |
| bool | do_run (const std::string command_name, const ParsedOptions &options, const OptionsCollector *collector=nullptr) override |
Public Member Functions inherited from ICommand | |
| virtual | ~ICommand ()=default |
| virtual std::string_view | description () const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from Preprocessor | |
| static void | save_current_run_params (const fs::path &path) |
| Saves preprocessing parameters for future runs. | |
| static std::vector< std::string > | read_current_run_params () |
| read preprocessing parameters runs | |
Static Protected Attributes inherited from Preprocessor | |
| static constexpr const char * | CONFIG_PATH = "config.txt" |
| Configuration file path. | |
Codebase preprocessing orchestrator.
Manages the complete preprocessing pipeline including:
Creates the foundation for fast query responses during the main operation phase.
Definition at line 39 of file preprocessor_build.hpp.
| PreprocessorBuild::PreprocessorBuild | ( | ) |
Definition at line 72 of file preprocessor_build.cpp.
| PreprocessorBuild::PreprocessorBuild | ( | bool | force_preprocess | ) |
Constructs preprocessor build with optional forcing.
| force_preprocess | Whether to force preprocessing even if cached results exist |
Definition at line 74 of file preprocessor_build.cpp.
| PreprocessorBuild::PreprocessorBuild | ( | bool | force_preprocess, |
| const fs::path & | path, | ||
| double | similarity ) |
Testing constructor with direct parameter specification.
| force_preprocess | Whether to force preprocessing |
| path | Direct project path specification |
| similarity | Direct similarity threshold specification |
Definition at line 82 of file preprocessor_build.cpp.
|
overridevirtual |
Executes the main logic of the command.
You must use the validated arguments to perform the action desired by the command.
| options | The ParsedOptions structure will be populated with the arguments. |
Implements ICommand.
Definition at line 102 of file preprocessor_build.cpp.
|
overridevirtual |
Validate the arguments already analyzed.
Verify that all required options have been selected and that the values provided are valid.
| options | The ParsedOptions structure will be populated with the arguments. |
Implements ICommand.
Definition at line 89 of file preprocessor_build.cpp.