20 lines
424 B
C++
20 lines
424 B
C++
//
|
|
// Created by erki on 02.03.21.
|
|
//
|
|
|
|
#include "OperationFinderAstConsumer.hpp"
|
|
|
|
OperationFinderAstConsumer::OperationFinderAstConsumer(OperationFinder* op_finder)
|
|
: _visitor(op_finder)
|
|
{ }
|
|
|
|
void OperationFinderAstConsumer::Initialize(clang::ASTContext& context)
|
|
{
|
|
_visitor.NewContext(&context);
|
|
}
|
|
|
|
void OperationFinderAstConsumer::HandleTranslationUnit(clang::ASTContext& context)
|
|
{
|
|
_visitor.TraverseAST(context);
|
|
}
|