Commit Graph

448 Commits

Author SHA1 Message Date
Tim Smith
efd5202878 Move the initialization of constant configuration data into a class explicitly initialized at startup.
This avoids a race condition with lazy initialization.

#rb steve.robb
#rnx
#preflight 606f00331e3c670001e4f483

[CL 15954147 by Tim Smith in ue5-main branch]
2021-04-08 10:02:55 -04:00
Tim Smith
c002b94acf Cleanup the usage of FClasses. Remove the need to pass around AllClasses when the majority of the time, the methods being invoked could be static. Removed methods that are currently unused.
#rb steve.robb
#rnx

[CL 15948334 by Tim Smith in ue5-main branch]
2021-04-07 19:43:18 -04:00
Tim Smith
d9a3b5af20 Minor changes to stablize UHT code generation in preperation for more extensive performance changes.
#rb devin.doucette
#rnx

[CL 15915280 by Tim Smith in ue5-main branch]
2021-04-05 09:17:25 -04:00
Tim Smith
11119486ae Fix issue where if in a single include file, we define UMyInterface, implement IMyInterface, and implement the interface in a UObject, UHT would generate a circular dependency error.
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]
2021-03-31 07:49:15 -04:00
Tim Smith
35cc3755d2 Fixing a race condition with -WRITEREF and -VERIFYREF that would cause files to be missing.
Removed some unused functionality in FScriptLocation that wasn't being used and depended on a global variable.

#rb devin.doucette

[CL 15726794 by Tim Smith in ue5-main branch]
2021-03-17 13:16:36 -04:00
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