8#include "matcherparser_decls.h"
9#include "MatchOperation.h"
220 void performMatchingOnAst(
SgNode* root);
222 void generateMatchOperationsSequence();
225 std::string _matchExpression;
229 bool _keepMarkedLocations;
The AstMatching class allows to specify arbitrary large patterns to be matched on any subtree in the ...
void printMatchOperationsSequence()
This function is only for information purposes.
void printMarkedLocations()
This function is only for information purposes.
AstMatching(std::string matchExpression, SgNode *root)
Constructor as a all-in-one solution.
MatchResult performMatching(std::string matchExpression, SgNode *root)
This is the main function to be called for matching.
void setKeepMarkedLocations(bool keepMarked)
This flag is useful when reusing the same matcher object for performing multiple matches.
MatchResult getResult()
Allows to access the match result if the match expression was provided as an argument to the construc...
This class represents the base class for all IR nodes within Sage III.