|
Arkanjo 0.2
A tool for find code duplicated functions in codebases
|
Duplicate function explorer and analyzer. More...
#include <similarity_explorer.hpp>
Inheritance diagram for SimilarityExplorer:
Collaboration diagram for SimilarityExplorer:Public Member Functions | |
| COMMAND_DESCRIPTION ("Explore duplicated functions detected in the project.") explicit SimilarityExplorer(Similarity_Table *_similarity_table) | |
| Constructs explorer with configuration. | |
| bool | validate (const ParsedOptions &options) override |
| Validate the arguments already analyzed. | |
| bool | run (const ParsedOptions &options) override |
| Handles code exploration command. | |
Public Member Functions inherited from CommandBase< SimilarityExplorer > | |
| 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 |
Static Public Attributes | |
| static constexpr int | UNLIMITED_RESULTS = 0 |
| Constant for unlimited results display. | |
| static constexpr const char * | EMPTY_PATTERN = "" |
| Constant for empty search pattern. | |
| static constexpr CliOption | options_ [] |
Duplicate function explorer and analyzer.
Enables exploration of duplicate functions with configurable filtering and sorting capabilities to identify code duplication patterns.
Definition at line 35 of file similarity_explorer.hpp.
| SimilarityExplorer::COMMAND_DESCRIPTION | ( | "Explore duplicated functions detected in the project." | ) |
Constructs explorer with configuration.
| _similarity_table | Similarity data source |
|
overridevirtual |
Handles code exploration command.
Implements ICommand.
Definition at line 157 of file similarity_explorer.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 139 of file similarity_explorer.cpp.
|
staticconstexpr |
Constant for empty search pattern.
Definition at line 38 of file similarity_explorer.hpp.
|
staticconstexpr |
Definition at line 40 of file similarity_explorer.hpp.
|
staticconstexpr |
Constant for unlimited results display.
Definition at line 37 of file similarity_explorer.hpp.