ArKanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
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.
 
void on_function (const FunctionData &fd) override
 
void execute () override
 Executes the preprocessing pipeline.
 
- Public Member Functions inherited from IMethod
virtual ~IMethod ()=default
 

Detailed Description

Definition at line 22 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-100)

Definition at line 92 of file ast_method.cpp.

Member Function Documentation

◆ execute()

void ASTMethod::execute ( )
overridevirtual

Executes the preprocessing pipeline.

Implements IMethod.

Definition at line 151 of file ast_method.cpp.

◆ on_function()

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

Implements IMethod.

Definition at line 133 of file ast_method.cpp.


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