ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
ASTMethod Class Reference

#include <ast_method.hpp>

+ Inheritance diagram for ASTMethod:
+ Collaboration diagram for ASTMethod:

Public Member Functions

 ASTMethod (const fs::path &base_path_, double similarity_)
 Constructs preprocessor with configuration. More...
 
void on_function (const FunctionData &fd) override
 
void execute () override
 Executes the preprocessing pipeline. More...
 
- Public Member Functions inherited from IMethod
virtual ~IMethod ()=default
 
virtual void save_duplications (std::vector< DuplicationEntry > &)
 Output line format: More...
 
virtual void on_function (const FunctionData &fd)=0
 
virtual void execute ()=0
 

Detailed Description

Definition at line 42 of file ast_method.hpp.

Constructor & Destructor Documentation

◆ ASTMethod()

ASTMethod::ASTMethod ( const fs::path &  base_path_,
double  similarity_ 
)

Constructs preprocessor with configuration.

Parameters
base_path_Root path of codebase
similarity_Similarity threshold (0.0-100.0)

Definition at line 89 of file ast_method.cpp.

Member Function Documentation

◆ execute()

void ASTMethod::execute ( )
overridevirtual

Executes the preprocessing pipeline.

Implements IMethod.

Definition at line 163 of file ast_method.cpp.

◆ on_function()

void ASTMethod::on_function ( const FunctionData &  fd)
overridevirtual

Implements IMethod.

Definition at line 142 of file ast_method.cpp.


The documentation for this class was generated from the following files: