Files
UnrealEngineUWP/Engine/Source/Programs/UnrealCodeAnalyzer/Private/ThreadSafety/TSAction.cpp
Mikolaj Sieluzycki ddf0f7e588 Add basic UObject thread safety checks to UnrealCodeAnalyzer.
[CL 2631991 by Mikolaj Sieluzycki in Main branch]
2015-07-24 04:48:48 -04:00

28 lines
637 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "UnrealCodeAnalyzerPCH.h"
#include "ThreadSafety/TSAction.h"
#include "ThreadSafety/TSConsumer.h"
namespace UnrealCodeAnalyzer
{
clang::ASTConsumer* FTSAction::CreateASTConsumer(clang::CompilerInstance& Compiler, clang::StringRef InFile)
{
Filename = InFile;
SourceManager = &Compiler.getSourceManager();
Consumer = new FTSConsumer(&Compiler.getASTContext(), InFile);
return Consumer;
}
bool FTSAction::BeginSourceFileAction(clang::CompilerInstance &CI, clang::StringRef Filename)
{
return true;
}
void FTSAction::EndSourceFileAction()
{
}
}