You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
The fix is to ignore identifier references that resolve to the same source file. #rb none [CL 15873286 by Tim Smith in ue5-main branch]
36 lines
693 B
C++
36 lines
693 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Containers/UnrealString.h"
|
|
|
|
class FUnrealSourceFile;
|
|
|
|
enum class EHeaderProviderSourceType
|
|
{
|
|
ClassName,
|
|
FileName,
|
|
Resolved
|
|
};
|
|
|
|
class FHeaderProvider
|
|
{
|
|
friend bool operator==(const FHeaderProvider& A, const FHeaderProvider& B);
|
|
public:
|
|
FHeaderProvider(EHeaderProviderSourceType Type, FString&& Id);
|
|
|
|
FUnrealSourceFile* Resolve(const FUnrealSourceFile& ParentSourceFile);
|
|
|
|
FString ToString() const;
|
|
|
|
const FString& GetId() const;
|
|
|
|
private:
|
|
EHeaderProviderSourceType Type;
|
|
FString Id;
|
|
FUnrealSourceFile* Cache;
|
|
};
|
|
|
|
bool operator==(const FHeaderProvider& A, const FHeaderProvider& B);
|