// // Created by erki on 02.03.21. // #ifndef C_ANALYZER_OPERATIONASTMATCHER_HPP #define C_ANALYZER_OPERATIONASTMATCHER_HPP #include 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