You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- 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]
28 lines
854 B
C++
28 lines
854 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
#include "clang/Frontend/FrontendAction.h"
|
|
|
|
namespace UnrealCodeAnalyzer
|
|
{
|
|
class FMacroCallback;
|
|
class FIncludeDirectiveCallback;
|
|
class FConsumer;
|
|
class FAction : public clang::ASTFrontendAction
|
|
{
|
|
public:
|
|
virtual clang::ASTConsumer* CreateASTConsumer(clang::CompilerInstance& Compiler, clang::StringRef InFile) override;
|
|
virtual bool BeginSourceFileAction(clang::CompilerInstance &CI, clang::StringRef Filename) override;
|
|
virtual void EndSourceFileAction() override;
|
|
|
|
friend class FIncludeDirectiveCallback;
|
|
private:
|
|
FIncludeDirectiveCallback* IncludeDirectiveCallback;
|
|
FMacroCallback* MacroCallback;
|
|
FConsumer* ASTConsumer;
|
|
clang::StringRef Filename;
|
|
clang::SourceManager* SourceManager;
|
|
TMap<FString, TDoubleLinkedList<FString>> IncludeChains;
|
|
};
|
|
}
|