Commit Graph

602 Commits

Author SHA1 Message Date
Zousar Shaker
bdfe4fff0f Split the representation in the reflection system of TObjectPtr fields into FObjectPtrProperty (derived from FObjectProperty and already existed since the introduction of wrapped object pointers) and a new FClassPtrProperty (derived from FClassProperty, and newly introduced in this change). As with raw pointers, UHT will generate code for one vs the other depending on whether the inner type is derived from UClass or not. The new reflection type is meant to be functionally equivalent to the existing one, except it changes how the PROPERTY (not the instance of the field on a containing object) is serialized to ensure it includes the MetaClass member as inherited from FClassProperty.
#rb robert.manuszewski

[CL 15317249 by Zousar Shaker in ue5-main branch]
2021-02-04 12:19:38 -04:00
Marc Audy
cac1fe0019 Merge UE5/Release-Engine-Staging @ CL# 15299266 to UE5/Main
This represents UE4/Main @ CL# 15277572

[CL 15299962 by Marc Audy in ue5-main branch]
2021-02-03 14:57:28 -04:00
Zousar Shaker
cf9bb3c4d1 Fix missing code in the way ObjectPtr properties handle inline attributes.
#jira UE-107444
#rb sebastian.nordgren

[CL 15280808 by Zousar Shaker in ue5-main branch]
2021-02-02 12:27:34 -04:00
Zousar Shaker
3cef6188a3 Prototype Wrapped Object Pointers (ObjectHandle/ObjectPtr)
Allow UnrealObjectPtrTool to perform reverse upgrades when the "-r" commandline argument is used.  Also added functionality to allow UnrealHeaderTool to dump out necessary log messages specifying TObjectPtr member declrations for UnrealObjectPtrTool to consume.

Tested by:
1) Performing a new forward pointer upgrade (from a new UHT log) and confirming the resulting files had zero diffs when compared to a shelf of upgraded files from previous version of UnrealObjectPtrTool.
2) Performed a forward pointer upgrade, then a reverse pointer upgrade then reverted all unchanged files.  The remaining files (13 of them see shelved CL15213431) only had trailing whitespace corrections due to the deliberate choices for trailing whitespace manipulation when doing forward upgrades.

#rb devin.doucette

[CL 15219628 by Zousar Shaker in ue5-main branch]
2021-01-27 14:46:30 -04:00
Marc Audy
bc88b73a29 Merge Release-Engine-Staging to Main @ CL# 15151250
Represents UE4/Main @ 15133763

[CL 15158774 by Marc Audy in ue5-main branch]
2021-01-21 16:22:06 -04:00
Marc Audy
ada7c144fa Merge //UE5/Release-Engine-Staging @14903491 to //UE5/Main
[CL 14906022 by Marc Audy in ue5-main branch]
2020-12-11 14:21:20 -04:00
Marc Audy
4c1bb11c29 Merge UE5/Release-Engine-Staging to UE5/Main @ 14548662
This represents UE4/Main @ 14525125 + cherrypicked fixes
#skipundocheck

[CL 14551026 by Marc Audy in ue5-main branch]
2020-10-22 19:19:16 -04:00
jack cai
cc44047bec RigVM: Backing out UHT changes @ CL14544263, causing UHT failure in Frosty
#jira UE-101652
#rb none

[CL 14546229 by jack cai in ue5-main branch]
2020-10-22 12:33:50 -04:00
jack cai
cbe2dcee05 RigVM: Add header file path registration for RigVM Functions, required for Control Rig Nativization Research Project
#jira UEA-679

#rb helge.mathee sara.schvartzman

[CL 14544263 by jack cai in ue5-main branch]
2020-10-22 09:42:42 -04:00
Zousar Shaker
77d13185b7 Copying //UE5/Dev-Cooker@14539516 to Main (//UE5/Main)
[CL 14539954 by Zousar Shaker in ue5-main branch]
2020-10-21 17:56:05 -04:00
Marc Audy
50a3d7d368 Merge Release-Engine-Staging to Main @ CL# 14467590
This represents UE4/Main @ 14432125 + some cherrypick fixes

[CL 14468207 by Marc Audy in ue5-main branch]
2020-10-09 22:42:26 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
Jamie Dale
4e5f312c78 Fixed UHT failing to discard inline keywords for void returns
GetVarType is the function that strips the inline and FORCEINLINE keywords, but that function call was being skipped for void return types. The result was that things like "inline void" failed to parse as a UHT return type, but "inline int32" worked fine.

#fyi Steve.Robb
#rb Marc.Audy

[CL 14310987 by Jamie Dale in ue5-main branch]
2020-09-14 13:55:10 -04:00
Marc Audy
7379fa99c5 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14229157
[CL 14233282 by Marc Audy in ue5-main branch]
2020-09-01 14:07:48 -04:00
Marc Audy
a7c9001a94 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb
#rnx

[CL 14075271 by Marc Audy in ue5-main branch]
2020-08-11 01:36:57 -04:00
Jamie Dale
7af4f56be6 Merging CL# 13989043
Support for namespaced native types in UHT.
Some obvious string optimizations.

#fyi Steve.Robb
#rb Steve.Robb

[CL 13991135 by Jamie Dale in ue5-main branch]
2020-07-31 11:41:49 -04:00
Arne Schober
3bf935d1ce Explicitly tagging IsInRenderingThread, IsInGameThread etc. functions to be able to move them between theads in the future. The old behaviour is still in packe to verify the new system, but will be removed in the future.
#RB Andriy.Tylychko, Jonas.Meyer

[CL 13825935 by Arne Schober in ue5-main branch]
2020-07-02 13:21:15 -04:00
Marc Audy
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
ben hoffman
141ecb374b Double property support in blueprint for UFunctions, BP Variables, and conversions to floats
#jira UE-94120
#rb dan.oconnor
#fyi michael.noland

[CL 13648510 by ben hoffman in ue5-main branch]
2020-06-08 19:02:07 -04:00
Ben Marsh
99be00dcdb Merging latest from Private-Starship.
[CL 13192225 by Ben Marsh in ue5-main branch]
2020-05-05 18:50:52 -04:00
marc audy
66843dbb81 UHT Optimization: Parallelize the file loading and initial parsing of headers
#rb Michael.Noland
#jira
#rnx

#ROBOMERGE-SOURCE: CL 13191242 via CL 13191244 via CL 13191248
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13191250 by marc audy in Main branch]
2020-05-05 18:20:38 -04:00
marc audy
e7bc4dc660 UHT optimization: Avoid copy of GetGeneratedHeaderFilename and use the const& instead
(should have been part of CL# 13181587)
#rb trivial
#rnx
#jira

#ROBOMERGE-SOURCE: CL 13184134 via CL 13184139 via CL 13184164
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13184172 by marc audy in Main branch]
2020-05-05 14:32:46 -04:00
marc audy
615d7a84c7 UHT optimization: Encapsulate GUnrealSourceFilesMap, GTypeDefinitionInfoMap, and GPublicSourceFileSet to allow indexing in multiple ways
#rb Michael.Noland
#rnx
#jira

#ROBOMERGE-SOURCE: CL 13183805 via CL 13183813 via CL 13183823
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13183833 by marc audy in Main branch]
2020-05-05 13:59:39 -04:00
marc audy
1fe338e5e5 UHT optimization: UnrealSourceFile API cleanup
Eliminate Get/AppendDefinedClasses and use the const TMap& GetDefinedClassesWithParsingInfo instead to avoid building/copying arrays unnecessarily.
Cache GeneratedHeaderFilename, StrippedFilename, and FileId instead of repeatedly rebuilding
Use Move parameters as possible
#rb Michael.Noland
#jira
#rnx

#ROBOMERGE-SOURCE: CL 13181587 via CL 13181592 via CL 13181597
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13181603 by marc audy in Main branch]
2020-05-05 12:35:20 -04:00
marc audy
4175165b20 UHT Optimization: Determine and store in a static bool FailIfGeneratedCodeChanges rather than looking up per module.
#rb Michael.Noland
#rnx
#jira

#ROBOMERGE-SOURCE: CL 13181389 via CL 13181398 via CL 13181407
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13181416 by marc audy in Main branch]
2020-05-05 12:16:53 -04:00