You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
26 lines
787 B
C++
26 lines
787 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
#include "clang/AST/RecursiveASTVisitor.h"
|
|
|
|
namespace UnrealCodeAnalyzer
|
|
{
|
|
class FTSVisitor : public clang::RecursiveASTVisitor<FTSVisitor>
|
|
{
|
|
public:
|
|
explicit FTSVisitor(clang::ASTContext* InContext, clang::StringRef InFile);
|
|
bool VisitCXXConstructorDecl(clang::CXXConstructorDecl* Decl);
|
|
bool TraverseCXXMethodDecl(clang::CXXMethodDecl* Decl);
|
|
bool VisitDeclRefExpr(clang::DeclRefExpr* Expr);
|
|
bool VisitCallExpr(clang::CallExpr* Expr);
|
|
|
|
private:
|
|
bool InheritsFromUObject(clang::CXXConstructorDecl* Decl);
|
|
bool IsGlobalVariable(clang::VarDecl* VarDecl);
|
|
|
|
clang::SourceManager& SourceManager;
|
|
TArray<clang::CXXMethodDecl*> FunctionDeclarationsStack;
|
|
TSet<clang::Decl*> VisitedDecls;
|
|
};
|
|
}
|