Commit Graph

814 Commits

Author SHA1 Message Date
Zousar Shaker
fa14a019ff 2nd submit:
Remove special case handling of engine plugins in UHT for ObjectPtr behavior.

#rb none
#preflight 62ffc2690f7187ef8112f23f

[CL 21466661 by Zousar Shaker in ue5-main branch]
2022-08-19 18:04:34 -04:00
Zousar Shaker
7b3840b9b2 [Backout] - CL21460034
#fyi Zousar.Shaker
Original CL Desc
-----------------------------------------------------------------
Remove special case handling of engine plugins in UHT for ObjectPtr behavior.

#rb none
#preflight 62ffc2690f7187ef8112f23f

[CL 21461028 by Zousar Shaker in ue5-main branch]
2022-08-19 13:57:01 -04:00
Zousar Shaker
20bdfad92d Remove special case handling of engine plugins in UHT for ObjectPtr behavior.
#rb none
#preflight 62ffc2690f7187ef8112f23f

[CL 21460034 by Zousar Shaker in ue5-main branch]
2022-08-19 13:10:17 -04:00
Tim Smith
8480a2d1a1 CoreNet.h will now be automatically included when needed.
#rb self
#jira UE-160243
#preflight 62fcee9787319bacfb0bc705

[CL 21424404 by Tim Smith in ue5-main branch]
2022-08-17 09:50:12 -04:00
bryan sefcik
751e38e8c8 Updated to use FUnrealFunctionDefinitionInfo instead of FUnrealStructDefinitionInfo.
#JIRA

#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21394592 via CL 21396515 via CL 21396869
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v975-21357124)

[CL 21399908 by bryan sefcik in ue5-main branch]
2022-08-15 21:51:42 -04:00
bryan sefcik
23a1f3d430 Fixed Linux compile issue.
#JIRA

#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21393745 via CL 21396338 via CL 21396841
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v975-21357124)

[CL 21399892 by bryan sefcik in ue5-main branch]
2022-08-15 21:51:03 -04:00
bryan sefcik
55ded5e984 Fixed an issue where the generated cpp files weren't including all the needed headers. It relied on the original header that generated the cpp to include all the headers which is a problem because the header could forward declare the types.
#JIRA
#preflight 62fa903bae3edb54c9a08b6e

#ROBOMERGE-OWNER: bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21392760 via CL 21396083 via CL 21396090
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v975-21357124)

[CL 21399837 by bryan sefcik in ue5-main branch]
2022-08-15 21:49:10 -04:00
UnrealBot
73409369c0 Branch snapshot for CL 21319338
[CL 21319338 in ue5-main branch]
2022-08-10 16:03:37 +00:00
Tim Smith
85b6fe8042 Fixed comment to read TEnumAsByte instead of TByteAsEnum
#rb self
#rnx
#preflight 62f16916b2073af17a47ec87

[CL 21274785 by Tim Smith in ue5-main branch]
2022-08-08 16:20:35 -04:00
Tim Smith
6ca5aa1449 Temporary work around to having TEnumAsBytes passed into property Setter function when it expects the actual enum value.
#rb Daren.Cheng, Patrick.Boutot
#jira FORT-493770
#rnx
#robomerge FNMain
#preflight 62d99972c0180d8071489e9b

[CL 21205364 by Tim Smith in ue5-main branch]
2022-07-21 14:36:13 -04:00
bryan sefcik
e73e4b4d67 Updated UHT to output all the circular dependencies before exiting.
#jira

#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21195860 via CL 21195874 via CL 21195883
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21196949 by bryan sefcik in ue5-main branch]
2022-07-20 21:52:44 -04:00
Tim Smith
a73b0f7d53 Fix for UHT failing to add enum meta data to a fixed array when a space appears in the array size.
#rb self
#9337
#preflight 62d0538daf68cd745b136e96

[CL 21093939 by Tim Smith in ue5-main branch]
2022-07-14 13:54:32 -04:00
Peter Engstrom
4aae8d3ed0 Iris experimental replication system.
Initial submit, compiled out by default.

#rb Peter.Engstrom,Mattias.Hornlund,Brian.Bekich,Ryan.Gerleve,John.Barrett
#jira UE-158381
#preflight /62cd6fc7ad490b52da0515a3

[CL 21068370 by Peter Engstrom in ue5-main branch]
2022-07-13 03:11:55 -04:00
Joe Kirchoff
cf0d0099c3 UnrealBuildTool: UnsafeTypeCastWarning for clang platforms
#rb none
#rnx
#preflight 62be341a8d5e678759e62f9f

[CL 20907767 by Joe Kirchoff in ue5-main branch]
2022-06-30 20:05:07 -04:00
Tim Smith
1f11b428c6 1) Fixed issue where UPARAM wasn't getting parsed as part of a template argument property type
2) Refactored how property specifiers are parsed due to above issue
3) Fixed issue where UClass derived types were not outputting correctly in event parameter lists
4) Added more diagnostic output to package files.

#rb self
#rnx
#robomerge emt
#preflight 62b5b9c548183a59a576eaf8

[CL 20808450 by Tim Smith in ue5-main branch]
2022-06-24 09:27:13 -04:00
francis hurteau
771292f5bc Reintroduce changelist 20658217 backed out by 20659566
#rb trivial
[FYI] Marc.Audy, Tim.Smith
#preflight skip

#ROBOMERGE-AUTHOR: francis.hurteau
#ROBOMERGE-SOURCE: CL 20674457 in //UE5/Release-Engine-Staging/...
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20676097 by francis hurteau in ue5-main branch]
2022-06-15 16:00:38 -04:00
marc audy
485c4aef07 [Backout] - CL20658217
[FYI] francis.hurteau, tim.smith
Original CL Desc
-----------------------------------------------------------------
Put optional class check back to proper errors now that all misbehaving classes that leaked through are fixed

#rb trivial
[FYI] Tim.Smith
#preflight 62a8d9b8a43e20b293569f4b

#ROBOMERGE-AUTHOR: francis.hurteau
#ROBOMERGE-SOURCE: CL 20655985 via CL 20658208 via CL 20658213 via CL 20659566
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20661627 by marc audy in ue5-main branch]
2022-06-14 20:24:18 -04:00
francis hurteau
900c109e31 Put optional class check back to proper errors now that all misbehaving classes that leaked through are fixed
#rb trivial
[FYI] Tim.Smith
#preflight 62a8d9b8a43e20b293569f4b

#ROBOMERGE-AUTHOR: francis.hurteau
#ROBOMERGE-SOURCE: CL 20655985 via CL 20658208 via CL 20658213 via CL 20658217
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20661550 by francis hurteau in ue5-main branch]
2022-06-14 20:22:58 -04:00
robert manuszewski
686f9e5455 Changing CppStructOps registration code use struct path names instead of short names to allow identically named native structs to be registered
#rb Andrew.Scheidecker
#preflight 62a1c7beff06c1c98cc3701a

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20580224 via CL 20580249 via CL 20581193 via CL 20581751
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20585128 by robert manuszewski in ue5-main branch]
2022-06-09 17:24:44 -04:00
tim smith
88e8da552a Fixed issue with UHT script exporters where the signature function wasn't being set on multicast delegate properties.
#jira UE-155588
#rb devin.doucette
#preflight https://horde.devtools.epicgames.com/job/6298a182e809e387be2da8af

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 20491815 in //UE5/Release-5.0/... via CL 20492548
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20495704 by tim smith in ue5-main branch]
2022-06-03 19:17:11 -04:00
robert manuszewski
d1443992e1 Deprecating ANY_PACKAGE.
This change consists of multiple changes:

Core:
- Deprecation of ANY_PACKAGE macro. Added ANY_PACKAGE_DEPRECATED macro which can still be used for backwards compatibility purposes (only used in CoreUObject)
- Deprecation of StaticFindObjectFast* functions that take bAnyPackage parameter
- Added UStruct::GetStructPathName function that returns FTopLevelAssetPath representing the path name (package + object FName, super quick compared to UObject::GetPathName) + wrapper UClass::GetClassPathName to make it look better when used with UClasses
- Added (Static)FindFirstObject* functions that find a first object given its Name (no Outer). These functions are used in places I consider valid to do global UObject (UClass) lookups like parsing command line parameters / checking for unique object names
- Added static UClass::TryFindType function which serves a similar purpose as FindFirstObject however it's going to throw a warning (with a callstack / maybe ensure in the future?) if short class name is provided. This function is used  in places that used to use short class names but now should have been converted to use path names to catch any potential regressions and or edge cases I missed.
- Added static UClass::TryConvertShortNameToPathName utility function
- Added static UClass::TryFixShortClassNameExportPath utility function
- Object text export paths will now also include class path (Texture2D'/Game/Textures/Grass.Grass' -> /Script/Engine.Texture2D'/Game/Textures/Grass.Grass')
- All places that manually generated object export paths for objects will now use FObjectPropertyBase::GetExportPath
- Added a new startup test that checks for short type names in UClass/FProperty MetaData values

AssetRegistry:
- Deprecated any member variables (FAssetData / FARFilter) or functions that use FNames to represent class names and replaced them with FTopLevelAssetPath
- Added new member variables and new function overloads that use FTopLevelAssetPath to represent class names
- This also applies to a few other modules' APIs to match AssetRegistry changes

Everything else:
- Updated code that used ANY_PACKAGE (depending on the use case) to use FindObject(nullptr, PathToObject), UClass::TryFindType (used when path name is expected, warns if it's a short name) or FindFirstObject (usually for finding types based on user input but there's been a few legitimate use cases not related to user input)
- Updated code that used AssetRegistry API to use FTopLevelAssetPaths and USomeClass::StaticClass()->GetClassPathName() instead of GetFName()
- Updated meta data and hardcoded FindObject(ANY_PACKAGE, "EEnumNameOrClassName") calls to use path names

#jira UE-99463
#rb many.people
[FYI] Marcus.Wassmer
#preflight 629248ec2256738f75de9b32

#codereviewnumbers 20320742, 20320791, 20320799, 20320756, 20320809, 20320830, 20320840, 20320846, 20320851, 20320863, 20320780, 20320765, 20320876, 20320786

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20430220 via CL 20433854 via CL 20435474 via CL 20435484
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20448496 by robert manuszewski in ue5-main branch]
2022-06-01 03:46:59 -04:00
Tim Smith
78d9b37bdf Fixed threading issue with editor only check on optional classes. Other objects can not be inspected until parsing has been completed.
#rb self
#rnx
#fyi francis.hurteau
#preflight 6290d808b974ae8eb040e58e

[CL 20392973 by Tim Smith in ue5-main branch]
2022-05-27 10:12:44 -04:00
George Rolfe
1733b33a3f Added TIsUEnumClass trait with UHT integration
#jira none
#rb tim.smith
#rb steve.robb
#preflight 6290bb1c1f0041249bec1f57

[CL 20391947 by George Rolfe in ue5-main branch]
2022-05-27 08:28:20 -04:00
francis hurteau
94281d5ef7 Expand the check for optional class not to allow editor only properties but also prevent struct properties from containing editor only properties
#rb Tim.Smith
#preflight 628d33376c4351e37291b959

#ROBOMERGE-AUTHOR: francis.hurteau
#ROBOMERGE-SOURCE: CL 20370136 via CL 20371532 via CL 20371546 via CL 20371560
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20372798 by francis hurteau in ue5-main branch]
2022-05-25 18:38:47 -04:00
robert manuszewski
e579cfedf8 Removing debug code
#rb trivial
#preflight none

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20277682 via CL 20277694 via CL 20277695 via CL 20277698
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20278116 by robert manuszewski in ue5-main branch]
2022-05-19 06:58:42 -04:00