|
Arkanjo 0.2
A tool for find code duplicated functions in codebases
|
Similar function locator and reporter. More...
#include <similar_function_finder.hpp>
Inheritance diagram for SimilarFunctionFinder:
Collaboration diagram for SimilarFunctionFinder:Public Member Functions | |
| SimilarFunctionFinder (Similarity_Table *_similarity_table) | |
| Constructs finder and initiates search. | |
| bool | validate (const ParsedOptions &options) override |
| Validate the arguments already analyzed. | |
| bool | run (const ParsedOptions &options) override |
| Handles similar function finding command. | |
Public Member Functions inherited from CommandBase< SimilarFunctionFinder > | |
| 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 CliOption | options_ [] |
Similar function locator and reporter.
Identifies functions similar to a specified reference function pattern and provides detailed reporting about the matches found.
Definition at line 31 of file similar_function_finder.hpp.
|
explicit |
Constructs finder and initiates search.
| _function_pattern | Function name pattern to match |
| _similarity_table | Source of similarity data |
Definition at line 74 of file similar_function_finder.cpp.
|
overridevirtual |
Handles similar function finding command.
Implements ICommand.
Definition at line 96 of file similar_function_finder.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 79 of file similar_function_finder.cpp.
|
staticconstexpr |
Definition at line 85 of file similar_function_finder.hpp.