26 lines
582 B
C++
26 lines
582 B
C++
//
|
|
// Created by erki on 02.03.21.
|
|
//
|
|
|
|
#ifndef C_ANALYZER_OPERATIONASTMATCHER_HPP
|
|
#define C_ANALYZER_OPERATIONASTMATCHER_HPP
|
|
|
|
#include <clang/ASTMatchers/ASTMatchFinder.h>
|
|
|
|
class OperationFinder;
|
|
|
|
class OperationASTMatcher : public clang::ast_matchers::MatchFinder::MatchCallback
|
|
{
|
|
public:
|
|
explicit OperationASTMatcher(OperationFinder* finder);
|
|
|
|
void addToFinder(clang::ast_matchers::MatchFinder& finder);
|
|
|
|
void run(const clang::ast_matchers::MatchFinder::MatchResult& result) override;
|
|
private:
|
|
OperationFinder* _op_finder;
|
|
};
|
|
|
|
|
|
#endif //C_ANALYZER_OPERATIONASTMATCHER_HPP
|