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

#include <function_printer.hpp>

Static Public Member Functions

static void print_basic_info (const Function &function)
 Prints formatted function information to console. More...
 
static void print_code (const Function &function, bool no_numbers=false)
 Prints the function source code. More...
 
static std::string format_path_message_in_pair (const Function &function)
 Formats path for display. More...
 

Detailed Description

Definition at line 12 of file function_printer.hpp.

Member Function Documentation

◆ format_path_message_in_pair()

std::string FunctionPrinter::format_path_message_in_pair ( const Function &  function)
static

Formats path for display.

Parameters
functionFunction to format.
Returns
string Formatted path string

Definition at line 40 of file function_printer.cpp.

◆ print_basic_info()

void FunctionPrinter::print_basic_info ( const Function &  function)
static

Prints formatted function information to console.

Parameters
functionFunction to print.

Definition at line 6 of file function_printer.cpp.

◆ print_code()

void FunctionPrinter::print_code ( const Function &  function,
bool  no_numbers = false 
)
static

Prints the function source code.

Parameters
functionFunction whose content will be printed.
no_numbersIf true, line numbers are omitted.

Definition at line 23 of file function_printer.cpp.


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