Commit Graph

343 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
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
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
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
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
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
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
e235ae1375 Improve header generation time by ~4 seconds
#rb
#rnx
#jira

#ROBOMERGE-SOURCE: CL 13050907 via CL 13050910 via CL 13050915
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v686-13045012)

[CL 13050917 by marc audy in Main branch]
2020-04-27 17:17:39 -04:00
patrick laflamme
61583788ea Fixed missing ';' in HeaderParser.cpp
[FYI] Fred.Kimberley
#rb trivial
#rnx
#jira none
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 12625156 in //UE4/Release-4.25/... via CL 12625161 via CL 12625172
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12625178 by patrick laflamme in Main branch]
2020-04-06 13:29:27 -04:00
fred kimberley
2b29c51315 Improved validation for per class sparse data in UHT. Fixed a bug where improperly specified sparse data structures were reported multiple times and with the wrong file location.
#jira UE-84227
#rb Michael.Noland
#lockdown Cristina.Riveron

#ROBOMERGE-SOURCE: CL 12624001 in //UE4/Release-4.25/... via CL 12624090 via CL 12624249
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12624288 by fred kimberley in Main branch]
2020-04-06 12:54:37 -04:00
fred kimberley
7b9e89d73e Backing out CL 12584912 since it is causing problems with the build.
#rb none
#jira none
[FYI] Michael.Noland
#lockdown Cristina.Riveron

#ROBOMERGE-SOURCE: CL 12585208 in //UE4/Release-4.25/... via CL 12585210 via CL 12585211
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12585212 by fred kimberley in Main branch]
2020-04-02 22:08:30 -04:00
fred kimberley
725c39b849 Improved validation for per class sparse data in UHT. Fixed a bug where improperly specified sparse data structures were reported multiple times and with the wrong file location.
#jira UE-84227
#rb Michael.Noland
#lockdown Cristina.Riveron

#ROBOMERGE-SOURCE: CL 12584912 in //UE4/Release-4.25/... via CL 12584922 via CL 12584925
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12584931 by fred kimberley in Main branch]
2020-04-02 21:18:32 -04:00
ben hoffman
12cdf83e6b Update UHT to support int64 properties with ExposeOnSpawn
#jira UE-91150
#rb marc.audy

#ROBOMERGE-SOURCE: CL 12451364 in //UE4/Release-4.25/... via CL 12451365
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Release-Engine-Staging) (v672-12450963)

[CL 12451378 by ben hoffman in Release-Engine-Staging branch]
2020-03-26 11:39:13 -04:00
ben hoffman
f84d25c2f9 Update UHT to support int64 properties with ExposeOnSpawn
#jira UE-91150
#rb marc.audy

[CL 12451364 by ben hoffman in 4.25 branch]
2020-03-26 11:38:33 -04:00
robert manuszewski
b7568cc694 Fix for UE-90683: You can no longer delete conflicting variables
Refactored FindField into FindUField and FindFProperty to avoid confusion caused by the fact that FindField<UField> will no longer return FProperties.

#jira UE-90683
#rb Steve.Robb
#tests Basic editor functionality test, cooked and ran PC client and server, bot soak tests for two hours

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 12190998 in //UE4/Release-4.25/... via CL 12190999
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v661-12148976)

[CL 12191300 by robert manuszewski in Main branch]
2020-03-15 10:33:45 -04:00