// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using EpicGames.Core;
namespace UnrealBuildTool
{
///
/// Context object used to pass data to in apply warnings phase.
///
/// This class should be used as the common place to add new context as necessary for extensibility.
internal class CompilerWarningsToolChainContext
{
///
/// Constructor for toolchain context.
///
/// Compile environment for the tool chain.
/// Build context of the .
/// The type of the toolchain.
/// The version of the toolchain.
/// The static analyzer utilized within the current toolchain context.
public CompilerWarningsToolChainContext(CppCompileEnvironment compileEnvironment, BuildSystemContext buildSystemContext, Type toolChainType, VersionNumber? toolChainVersion, StaticAnalyzer analyzer = StaticAnalyzer.None)
{
_compileEnvironment = compileEnvironment;
_buildSystemContext = buildSystemContext;
_toolChainType = toolChainType;
_toolChainVersion = toolChainVersion;
_analyzer = analyzer;
}
internal CppCompileEnvironment _compileEnvironment;
internal BuildSystemContext _buildSystemContext;
internal Type _toolChainType;
internal VersionNumber? _toolChainVersion;
internal StaticAnalyzer _analyzer;
}
}