* Implemented functions for parsing usages of fields and global variables in ASTBodyVisitor and ASTVisitor. * Storage adds TokenLocatons and Edges for usages. * Added tests for parsing usage of fields and global variables. fortune cookie message = Fame, riches and love are yours for the taking.
21 lines
696 B
C++
21 lines
696 B
C++
#ifndef AST_BODY_VISITOR_CLIENT_H
|
|
#define AST_BODY_VISITOR_CLIENT_H
|
|
|
|
#include "clang/AST/Decl.h"
|
|
#include "clang/AST/Expr.h"
|
|
#include "clang/AST/ExprCXX.h"
|
|
|
|
class ASTBodyVisitorClient
|
|
{
|
|
public:
|
|
ASTBodyVisitorClient();
|
|
virtual ~ASTBodyVisitorClient();
|
|
|
|
virtual void VisitCallExprInDeclBody(clang::NamedDecl* decl, clang::CallExpr* expr) = 0;
|
|
virtual void VisitCXXConstructExprInDeclBody(clang::NamedDecl* decl, clang::CXXConstructExpr* expr) = 0;
|
|
virtual void VisitFieldUsageExprInDeclBody(clang::NamedDecl* decl, clang::MemberExpr* expr) = 0;
|
|
virtual void VisitGlobalVariableUsageExprInDeclBody(clang::NamedDecl* decl, clang::DeclRefExpr* expr) = 0;
|
|
};
|
|
|
|
#endif // AST_BODY_VISITOR_CLIENT_H
|