Files
UnrealEngineUWP/Engine/Source/Programs/UnrealCodeAnalyzer/Private/Consumer.h
Mikolaj Sieluzycki 13819dc17d Make UnrealCodeAnalyzer public.
- Move UnrealCodeAnalyzer to Programs/UnrealCodeAnalyzer
- Move clang/llvm binaries and includes to ThirdParty/llvm
#codereview Robert.Manuszewski

[CL 2613304 by Mikolaj Sieluzycki in Main branch]
2015-07-08 05:11:51 -04:00

25 lines
487 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "clang/AST/ASTConsumer.h"
#include "Visitor.h"
namespace UnrealCodeAnalyzer
{
class FConsumer : public clang::ASTConsumer
{
public:
explicit FConsumer(clang::ASTContext* Context, clang::StringRef InFile);
virtual void HandleTranslationUnit(clang::ASTContext &Ctx) override;
FPreHashedIncludeSetMap& GetIncludes()
{
return Visitor.GetIncludes();
}
private:
FVisitor Visitor;
};
}