Commit Graph

839 Commits

Author SHA1 Message Date
tim smith
0a2f2958b2 Fixed C# UHT to properly generate an error when a function's argument name shadows a property in the class or super classes.
Fixed C++ UHT to no longer check for parameter name shadowing for delegates.

#rb self
#preflight https://horde.devtools.epicgames.com/job/6375290d232e3d12cb4474dc

[CL 23160122 by tim smith in ue5-main branch]
2022-11-16 15:00:59 -05:00
Helge Mathee
7190300031 UHT: Support for RigVM Lazy arguments
Ran local UHT compat checks

#rb sara.schvartzman
#jira na
#preflight https://horde.devtools.epicgames.com/job/63737c08232e3d12cbaf448a

[CL 23151631 by Helge Mathee in ue5-main branch]
2022-11-16 03:45:03 -05:00
Helge Mathee
1ecdfaec3f UHT: Fix RigVM related compat issues
#rb sara.schvartzman
#jira na
#preflight https://horde.devtools.epicgames.com/job/63721afa5368a3230a3ca9ee

[CL 23116147 by Helge Mathee in ue5-main branch]
2022-11-14 06:25:24 -05:00
Helge Mathee
74987bc740 RigVM: Move NameCaching to RigVM module
Also move base class for struct tests to RigVM module

#rb benoit.gadreau
#jira na
#preflight https://horde.devtools.epicgames.com/job/636cd909376a9cd6a8ebab24

[CL 23076572 by Helge Mathee in ue5-main branch]
2022-11-10 08:00:53 -05:00
Helge Mathee
32963f057c RigVM: Centralize use of RigVMExecuteContext
#rb halfdan.ingvarsson
#jira UE-169677
#preflight https://horde.devtools.epicgames.com/job/636cc3b24d3c1d9d92868927

[CL 23073598 by Helge Mathee in ue5-main branch]
2022-11-10 04:36:01 -05:00
Tim Smith
14f3d06485 Fixed infinite loop in C++ UHT recursive include checks.
#rb self
#preflight 63692310450be1d9f8df8c5e

[CL 23011260 by Tim Smith in ue5-main branch]
2022-11-07 10:47:13 -05:00
Tim Smith
1b683ffcf8 Fixed C++ UHT to match recent changes to C# UHT
#rb sara.schvartzman
#preflight 6363c253dc30a4ce96fc129a

[CL 22951982 by Tim Smith in ue5-main branch]
2022-11-03 09:42:39 -04:00
tim smith
9bd4a477e6 Updated C++ UHT to match C# UHT global delegate changes
#rb self
#preflight 6362769454471d10beef033e

[CL 22919817 by tim smith in ue5-main branch]
2022-11-02 12:52:47 -04:00
sara schvartzman
c5af22e8a9 Control Rig: Fix TEnumAsByte not casting correctly in the generated headers
#jira UE-168624
#udn 00490176
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/635d5ca1df01edd149436805

[CL 22858512 by sara schvartzman in ue5-main branch]
2022-10-31 07:55:49 -04:00
joe kirchoff
6f4454f093 UnrealHeaderTool: Remove unused code in CodeGenerator.cpp
#rnx
#rb trivial

[CL 22823603 by joe kirchoff in ue5-main branch]
2022-10-28 00:34:33 -04:00
henrik karlsson
612995dbd2 [UHT]
* Moved event parameter structs to .gen.cpp

#preflight 634a36853c37eed481a7dbfe
#rb none

[CL 22549036 by henrik karlsson in ue5-main branch]
2022-10-15 13:02:39 -04:00
henrik karlsson
d40f9ed519 [UHT]
* Fixed so SparseClassDataType code generation is not inlined. This makes it possible to forward declare the type used for sparse class data

#preflight 6349aa0bce524ed356fb134b
#rb tim.smith

[CL 22547737 by henrik karlsson in ue5-main branch]
2022-10-15 02:09:15 -04:00
Ryan Gerleve
acc1553813 Changes to allow compiling engine modules with Iris replication code by default, and link against modules/projects that don't depend on Iris.
ModuleRules.SetupIrisSupport defines a new macro to enable or disable the Iris fast array bindings for a module, added UHT support for this. This allows the dependency on the Iris bindings to be compiled out of modules that don't need it and still link with Iris-enabled modules.
Iris plugin disabled by default, should be enabled for specific projects that use it.

#jira UE-160209
#rb mattias.hornlund, peter.engstrom
#preflight 6346fd2cfa31324bb153b63b

[CL 22482725 by Ryan Gerleve in ue5-main branch]
2022-10-12 14:28:30 -04:00
bryan sefcik
8e86bfa25f Added a IWYU pragma to the generated header so IWYU doesn't add the generated headers. They need to be added manually because there should only be one generated header included per header file.
#jira
#preflight 6335f761a852bd922c02588b

[CL 22264266 by bryan sefcik in ue5-main branch]
2022-09-30 01:41:29 -04:00
Zousar Shaker
6540112e2f Allow an Epic-only configuration on UnrealHeaderTool that enforces TObjectPtr usage in Engine Plugins specifically. Cannot be used externally due to the occurrance of third party plugins being placed in the engine plugins directory. Tested against C++ UHT and C# UHT both with and without the Epic-only configuration file present.
#rb tim.smith
#preflight 6334666b0169596cdf0cc710

[CL 22225475 by Zousar Shaker in ue5-main branch]
2022-09-28 12:58:24 -04:00
tim smith
d97581da03 Fix wrong API macro being used in C# UHT
Cleaned up formatting in both C++ and C# UHT

#rb self
#preflight 632b37b21003050806ec9f3a

[CL 22140411 by tim smith in ue5-main branch]
2022-09-22 14:05:55 -04:00
henrik karlsson
19e2368228 [UHT]
* Fixed so dll export is added to GetLifetimeReplicatedProps
* Fixed so UFUNCTION that produce _Validate function adds dll export if class is not dll exported but function is

#preflight 632a522cb40000c8f099fccb
#rb Tim.Smith

[CL 22110139 by henrik karlsson in ue5-main branch]
2022-09-21 07:33:55 -04:00
Devin Doucette
76234e85ae Set EngineIncludeOrderVersion.Latest for several additional targets
#preflight 6318ddca2b7fe03eb66fbb46
#rb none
#rnx

[CL 21858206 by Devin Doucette in ue5-main branch]
2022-09-07 14:45:10 -04:00
jessica agee
403f029bd7 Set UnsafeTypeCastWarningLevel to Error for a few widely-used modules
#rb none
#preflight 630d013af92416fb926b3c7a
#preflight 630d0938e54ec9d5815ebb45

[CL 21696478 by jessica agee in ue5-main branch]
2022-08-30 02:22:04 -04:00
Devin Doucette
af02fca022 Fixed unsafe type casts in UHT
#preflight 630d013af92416fb926b3c7a
#rb Bryan.Sefcik
#rnx

[CL 21686635 by Devin Doucette in ue5-main branch]
2022-08-29 15:56:30 -04:00
tim smith
3789d080bb Added support for ": int" size for regular and namespace enums. Only "int" is supported.
#rb henrik.karlsson
#preflight 6307d53b5a76ca27a8a7121c

[CL 21585169 by tim smith in ue5-main branch]
2022-08-26 01:47:13 -04:00
tim smith
84d854bb90 Updated C# UHT with the destructor changes and making a minor fix to the formatting.
#rb self
#preflight 6307a3632a56ec23c843da3b

[CL 21585155 by tim smith in ue5-main branch]
2022-08-26 01:46:39 -04:00
henrik karlsson
213a68824f * UnrealHeaderTool - Fixed so destructor is declared and defined for code gen classes
* UnrealTypeDefinitionInfo - Explicitly added destructor to make sure code gen is not adding.
* Niagra - Fixed bug where function was declared as non-inline virtual but implemented as inline.
* RecastNavmesh - Made sure destructor is outside #ifdef for UHT to more easily parse the header and generate proper code

#rb Tim.Smith
#preflight 630660a4c00af5e2946af6a6

[CL 21555810 by henrik karlsson in ue5-main branch]
2022-08-24 19:22:18 -04:00
Tim Smith
fa8d3bc2af Added support for final keyword on structure definitions
#jira UE-146768
#8993
#rb self
#preflight 63063f76ae13a5a09838e88c

[CL 21541526 by Tim Smith in ue5-main branch]
2022-08-24 11:25:47 -04:00
Tim Smith
85a2476ec8 Fix header tool error when class name contains only a prefix.
#jira UE-161655
#9509
#rb self
#preflight 630633fa5366f61a42bd8db5

[CL 21540326 by Tim Smith in ue5-main branch]
2022-08-24 10:26:51 -04:00