Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/System/PrecompiledHeaderInstance.cs
ben marsh 379b9bbefe Fix settings for enabling shadow variable and undefined identifier warnings not being treated as requiring a unique PCH. Also fix shared PCHs not enabling each by default. The compiler (at least on Windows) does not produce a warning/error on this mismatch, but does not respect the different settings passed via the command line.
#rb none
#jira

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5295902 in //UE4/Release-4.22/... via CL 5308945
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build)

[CL 5325327 by ben marsh in Dev-Build branch]
2019-03-06 18:15:50 -05:00

51 lines
1.2 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnrealBuildTool
{
/// <summary>
/// Information about a PCH instance
/// </summary>
class PrecompiledHeaderInstance
{
/// <summary>
/// The file to include to use this shared PCH
/// </summary>
public FileItem HeaderFile;
/// <summary>
/// The compile environment for this shared PCH
/// </summary>
public CppCompileEnvironment CompileEnvironment;
/// <summary>
/// The output files for the shared PCH
/// </summary>
public CPPOutput Output;
/// <summary>
/// Constructor
/// </summary>
public PrecompiledHeaderInstance(FileItem HeaderFile, CppCompileEnvironment CompileEnvironment, CPPOutput Output)
{
this.HeaderFile = HeaderFile;
this.CompileEnvironment = CompileEnvironment;
this.Output = Output;
}
/// <summary>
/// Return a string representation of this object for debugging
/// </summary>
/// <returns>String representation of the object</returns>
public override string ToString()
{
return HeaderFile.Location.GetFileName();
}
}
}