Commit Graph

311 Commits

Author SHA1 Message Date
Phillip Kavan
7e80ceffb7 Expose the new 'UncookedOnly' UBT module type to UHT in order to exclude uncooked-only script code modules from nativized Blueprint dependencies.
#jira UE-86099
#rb Ben.Marsh, Steve.Robb

[CL 10940572 by Phillip Kavan in Dev-Framework branch]
2020-01-10 08:04:46 -05:00
marc audy
80986e13a9 UHT Additional cleanup
* Remove FNameLookupCPP struct and interface name maps. Overhead of managing/locking maps provides no benefit to the very simple Printf that it is ultimately doing.
* Remove unused FNameLookupCPP source file
* Remove GClassStrippedHeaderTextMap and GClassHeaderNameWithNoPathMap as they are unused
* No longer add Enum hashes to global table as they are not read.
* CheckedMetadataSpecifiers now stored as a FName keyed TMap as the incoming values are names not strings, so no need to convert name to string
#jira
#rnx
#rb


#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 10879228 via CL 10879328 via CL 10879344
#ROBOMERGE-BOT: (v626-10872990)

[CL 10880488 by marc audy in Main branch]
2020-01-06 12:52:50 -05:00
marc audy
a7f3d43678 UHT optimizations part 6 - Generate files in parallel. Improves code generation phase by ~50%.
* Restructured code so that FNativeClassHeaderGenerator can now use ParallelFor for 3 phases: creating the .generated.h files, creating the .gen.cpp, and exporting the generated headers
* FNameLookupCPP, GPackageSingletons, GGeneratedCodeHashes, GetTypePackageName, FNativeClassHeaderGenerator::GetPackageSingletonName, FTypeSingletonCache, and FTypeSingleton::GetExternDecl now use RWScopeLocks to safely control access to globals/statics
#jira
#rnx
#rb


#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 10876463 via CL 10876464 via CL 10876465
#ROBOMERGE-BOT: (v624-10872983)

[CL 10876473 by marc audy in Main branch]
2020-01-04 15:28:16 -05:00
marc audy
345b547ebd Sort out duplicate symbol names in unity builds
#jira
#rnx


#ROBOMERGE-SOURCE: CL 10872877 via CL 10872878 via CL 10872879
#ROBOMERGE-BOT: (v623-10872670)

[CL 10872880 by marc audy in Main branch]
2019-12-31 18:29:49 -05:00
marc audy
4f953d13fb Fix duplicate FName declarations in unity builds
#jira
#rnx


#ROBOMERGE-SOURCE: CL 10872852 via CL 10872853 via CL 10872854
#ROBOMERGE-BOT: (v623-10872670)

[CL 10872859 by marc audy in Main branch]
2019-12-31 16:09:57 -05:00
marc audy
f88c49cee3 UHT optimizations part 4 - Improve HeaderParser times by ~35%
* FToken now lazily initializes FName version when needed
* FToken now avoids string compares when matching single character symbols and requires that case sensitivity be specified for matching identifiers
* FClass now maintains a type package name map rather than reconstructing package name repeatedly
* HeaderParser now avoids name lookups, avoids case insensitive string compares, and uses move semantics whenever possible
#rb
#jira
#rnx


#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 10872843 via CL 10872844 via CL 10872845
#ROBOMERGE-BOT: (v623-10872670)

[CL 10872857 by marc audy in Main branch]
2019-12-31 16:09:30 -05:00
marc audy
96792bfd40 UHT optimizations part 2 - Class Metadata improvements
* Added a sorted specifier list to reduce string compares when evaluating metadata tags
* Use move semantices where possible
* Use RemoveSwap instead of Remove when processing show/hide metadata tags. Generated code can change as a result of hide/show tag order changing.
#jira
#rnx


#ROBOMERGE-SOURCE: CL 10872240 via CL 10872241 via CL 10872242
#ROBOMERGE-BOT: (v620-10870533)

[CL 10872243 by marc audy in Main branch]
2019-12-30 16:29:04 -05:00
Ryan Durand
74c879d5f3 Updating copyrights for Engine Programs.
#rnx
#rb none
#jira none

#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536
#ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866)

[CL 10870960 by Ryan Durand in Main branch]
2019-12-26 23:06:02 -05:00
Robert Manuszewski
aa1e2e856a Fixing CIS error after Dev-Core copy up
#rb none

[CL 10708942 by Robert Manuszewski in Main branch]
2019-12-13 12:03:55 -05:00
Robert Manuszewski
7b6f840f7f Copying //UE4/Dev-Core @ 10708550 to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 10708666 by Robert Manuszewski in Main branch]
2019-12-13 11:07:03 -05:00
Stefan Boberg
d2f9a61b06 Copy-up from Dev-Core
#rb none

[CL 10419044 by Stefan Boberg in Main branch]
2019-11-25 12:03:09 -05:00
matt loesby
ea8b4b2555 Remove requirement for "= true" on AllowPrivateAccess meta tag
#rb [at]Dan.Hertzka


#ROBOMERGE-SOURCE: CL 10342399 via CL 10355411 via CL 10355591
#ROBOMERGE-BOT: (v594-10333955)

[CL 10360660 by matt loesby in Main branch]
2019-11-21 16:13:23 -05:00
fred kimberley
011453cd16 Improved data validation for sparse class data types.
UHT now checks for the following:
 - max of one sparse class data struct per class
 - sparse class data struct must inherit from the parent classes sparse class data struct
 - all sparse properties must be BlueprintReadOnly and EditDefaultsOnly
 - BP assignable delegates are not allowed as sparse properties

#jira UE-81001
#rb Michael.Noland

#ROBOMERGE-SOURCE: CL 9957835 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v558-9892490)

[CL 9957838 by fred kimberley in Main branch]
2019-11-01 11:26:21 -04:00
Stefan Boberg
1f813eb516 Copying //UE4/Dev-Core to Main (//UE4/Main)
#rb many

[CL 9405827 by Stefan Boberg in Main branch]
2019-10-03 16:26:48 -04:00
Lina Halper
3fd7f76532 Copying //UE4/Dev-Anim to Dev-Main (//UE4/Dev-Main)
#fyi: Laurent.Delayn, Marc.Audy
#rb: none

[CL 9321182 by Lina Halper in Main branch]
2019-10-01 16:59:31 -04:00
Marc Audy
d078ac3f77 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 9298289
#rb
#rnx

[CL 9300430 by Marc Audy in Dev-Framework branch]
2019-09-30 11:36:53 -04:00
Steve Robb
c2d2fef69c More ARRAY_COUNT fixes.
#rb none
#jira none

[CL 9280754 by Steve Robb in Main branch]
2019-09-28 08:53:23 -04:00
steve robb
14cab21e0c Deprecating ARRAY_COUNT and changing it to UE_ARRAY_COUNT.
Replicated from CL# 7924370.

#rb none


#ROBOMERGE-OWNER: steve.robb
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 9279060 via CL 9279063
#ROBOMERGE-BOT: (v443-9013191)

[CL 9279836 by steve robb in Main branch]
2019-09-28 08:19:35 -04:00
Marc Audy
5fb00d38a0 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 8902520
#rb
#rnx

[CL 8914290 by Marc Audy in Dev-Framework branch]
2019-09-19 17:46:29 -04:00
Fred Kimberley
23619b8516 Added a sidecar data structure to hold data that is constant for all members of the same class. This data will now be stored per class instead of being stored per instance. This can result in substantial memory savings for classes that have many instances and constant data. Good candidates for identify this type of data are member variables that are marked as EditDefaultsOnly and BlueprintReadOnly.
#rb Michael.Noland
#jira UE-80589

[CL 8899817 by Fred Kimberley in Dev-Framework branch]
2019-09-19 15:39:36 -04:00
Marc Audy
8df336162c Copying //UE4/Dev-Anim to Dev-Main (//UE4/Dev-Main) @ 8782600
#rb
#rnx

[CL 8783278 by Marc Audy in Main branch]
2019-09-17 19:12:19 -04:00
Ben Hoffman
d8a0854484 Add a warning to UHT to check enums and ensure that they have an entry that is equal to 0. This will fix BP compiler warnings with those enums and conform to the memset to 0 contract of the reflection system.
#jira UE-59679
#rb Michael.Noland

[CL 8363372 by Ben Hoffman in Dev-Framework branch]
2019-08-28 13:21:36 -04:00
Marc Audy
278eda75dd Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7234503
#rb
#rnx

[CL 7263339 by Marc Audy in Dev-Framework branch]
2019-07-10 13:47:03 -04:00
Helge Mathee
d9ea773611 Make sure to perform the documentation checking at the right time (after all statements have been parsed)
#jira UE-76828 UE-76827
#rb none

[CL 7227651 by Helge Mathee in Dev-Anim branch]
2019-07-08 10:57:16 -04:00
Helge Mathee
87a91eb201 Ensure to only parse the direct fields below a struct - not the super fields.
#jira UE-76823
#rb none

[CL 7227033 by Helge Mathee in Dev-Anim branch]
2019-07-08 09:23:08 -04:00