retdec
|
Runner of pattern finders for the command line interface (CLI). More...
#include <cli_pattern_finder_runner.h>
Public Member Functions | |
CLIPatternFinderRunner (utils::io::Logger &os) | |
Constructs a runner of pattern finders. More... | |
![]() | |
virtual | ~PatternFinderRunner ()=default |
void | run (const PatternFinders &pfs, ShPtr< Module > module) |
Runs all the given pattern finders in pfs on module. More... | |
void | run (ShPtr< PatternFinder > pf, ShPtr< Module > module) |
Runs the given pattern finder pf on module. More... | |
Private Member Functions | |
virtual void | doActionsBeforePatternFinderRuns (ShPtr< PatternFinder > pf) override |
Prints a sub-phase saying that the given finder is run. More... | |
virtual void | doActionsAfterPatternFinderHasRun (ShPtr< PatternFinder > pf, const PatternFinder::Patterns &foundPatterns) override |
Prints the found patterns of the given finder. More... | |
void | printPatternInfo (const ShPtr< Pattern > &p) |
Prints information about the given pattern. More... | |
Private Attributes | |
utils::io::Logger & | os |
Output stream, into which the patterns will be emitted. More... | |
Additional Inherited Members | |
![]() | |
using | PatternFinders = std::vector< ShPtr< PatternFinder > > |
A container storing pattern finders. More... | |
Runner of pattern finders for the command line interface (CLI).
It prints information on the command line.
Instances of this class have reference object semantics.
retdec::llvmir2hll::CLIPatternFinderRunner::CLIPatternFinderRunner | ( | utils::io::Logger & | os | ) |
Constructs a runner of pattern finders.
[out] | os | Output stream, into which the patterns will be emited. |
|
overrideprivatevirtual |
Prints the found patterns of the given finder.
Implements retdec::llvmir2hll::PatternFinderRunner.
|
overrideprivatevirtual |
Prints a sub-phase saying that the given finder is run.
The ID of the finder is included in the output.
Implements retdec::llvmir2hll::PatternFinderRunner.
|
private |
Prints information about the given pattern.
|
private |
Output stream, into which the patterns will be emitted.