24 lines
502 B
C++
24 lines
502 B
C++
//
|
|
// Created by erki on 24.02.21.
|
|
//
|
|
|
|
#ifndef C_ANALYZER_OPERATIONFINDERACTION_HPP
|
|
#define C_ANALYZER_OPERATIONFINDERACTION_HPP
|
|
|
|
#include <clang/AST/RecursiveASTVisitor.h>
|
|
|
|
class OperationFinderAction
|
|
: public clang::RecursiveASTVisitor<OperationFinderAction>
|
|
{
|
|
public:
|
|
bool VisitBinaryOperation(clang::BinaryOperator* bo);
|
|
bool VisitUnaryOperation(clang::UnaryOperator* uo);
|
|
bool VisitCompoundStatement(clang::CompoundStmt* cmp);
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
#endif //C_ANALYZER_OPERATIONFINDERACTION_HPP
|