Commit Graph

690 Commits

Author SHA1 Message Date
Tim Smith
c21e577222 1) Make the creation of engine types not required for post parsing.
2) Don't create engine types unless a script plugin is found

#rb none
#rnx

[CL 16922516 by Tim Smith in ue5-main branch]
2021-07-22 08:54:18 -04:00
Tim Smith
a2e05e30b2 Removed a dereference that wasn't needed.
#rb trivial
#rnx
#jira UE-119880

[CL 16901423 by Tim Smith in ue5-main branch]
2021-07-20 16:08:49 -04:00
Tim Smith
bd69e1f836 Remove some diagnostic code to test for version correctness.
#rb trivial
#rnx

[CL 16900566 by Tim Smith in ue5-main branch]
2021-07-20 15:22:24 -04:00
Tim Smith
11568b60b1 Remove the need for GetClass during code generation
#rb none
#rnx

[CL 16899911 by Tim Smith in ue5-main branch]
2021-07-20 14:55:20 -04:00
Tim Smith
a8ee5191bb Remove the need for GetFunction during code generation
#rb none
#rnx

[CL 16899287 by Tim Smith in ue5-main branch]
2021-07-20 14:22:09 -04:00
Tim Smith
00a641bf1b Removing remaining places where GetScriptStruct is needed during code generation.
#rb none
#rnx

[CL 16899213 by Tim Smith in ue5-main branch]
2021-07-20 14:15:14 -04:00
Tim Smith
a9d6b5b179 Replaced two UProperty formatting routines with UHT specific code.
#rb none
#rnx

[CL 16897502 by Tim Smith in ue5-main branch]
2021-07-20 11:44:03 -04:00
Tim Smith
bb9a97a14d 1) Removed the need to create a UScriptStruct to test to see if it has a NoOp constructor.
2) Added a quick method to query the deferred CppStructOps until we decide on a long term solution
3) Added method to test to see if a source file is the NoExports include file.

#rb none
#rnx
#preflight 60f6c42f25c166000152cbdc

[CL 16895867 by Tim Smith in ue5-main branch]
2021-07-20 09:30:11 -04:00
Tim Smith
3a23d86d61 Improved the detection of class methods. Resolves issue of incorrectly matching method names in comments.
#jira UE-85807
#rb none
#rnx

[CL 16886923 by Tim Smith in ue5-main branch]
2021-07-19 14:40:11 -04:00
Tim Smith
327490c46a Fixing issue with WRITEF/VERIFYREF where a duplicate file name would result in base verifications.
#rb none
#rnx
#preflight 60f5901694fcd00001e9619a

[CL 16884561 by Tim Smith in ue5-main branch]
2021-07-19 12:02:17 -04:00
Tim Smith
24af97ffd1 Fixing MAC compile error
#rb trivial
#rnx

[CL 16883089 by Tim Smith in ue5-main branch]
2021-07-19 09:53:37 -04:00
Tim Smith
fc9af25e52 Change the Token to use a StringView instead of copying the text directly into two different buffers in the token. Improves performance of the tokenizer and provides a much smaller structure that can be cached for other uses.
#rb none
#rnx
#preflight 60f5732c1d824300016d0630

[CL 16882977 by Tim Smith in ue5-main branch]
2021-07-19 09:33:26 -04:00
Tim Smith
01d7806e99 Fix UHT build issue on Linux
#rb self
#rnx

[CL 16852147 by Tim Smith in ue5-main branch]
2021-07-14 13:16:09 -04:00
Tim Smith
df37b074b1 Removed all lookups from UObjects to UHT definition objects.
#rb none
#rnx
#preflight 60eee3a9caf0590001975c94

[CL 16850095 by Tim Smith in ue5-main branch]
2021-07-14 10:49:06 -04:00
Tim Smith
0b925e48a2 Removed the FToken from the FFuncInfo structure.
Saved around 100MB of memory on some larger games.

#rb none
#rnx
#preflight 60d335d1be81e80001bd8772

[CL 16757044 by Tim Smith in ue5-main branch]
2021-06-23 10:47:40 -04:00
Tim Smith
8072fd1c14 Add the ability to disable concurrent parsing and code generation to make debugging a bit easier.
#rb none
#rnx
#preflight 60d225d3be81e80001879ecd

[CL 16747440 by Tim Smith in ue5-main branch]
2021-06-22 15:26:53 -04:00
Tim Smith
232c8e72ba Fix issue where USTRUCTs and UDELEGATES don't generate an error if the H file doesn't include the generated H file. There us currently no requirement for UENUM.
#jira UE-49820
#rb trivial
#preflight 60d1eb9b95e2320001770748

[CL 16743622 by Tim Smith in ue5-main branch]
2021-06-22 11:20:56 -04:00
Tim Smith
8fc31ca205 Fix issue where /* /* */ comment would cause UHT to crash.
#jira UE-89192
#rb trivial
#preflight 60d0ebc195e23200014d07ec

[CL 16734161 by Tim Smith in ue5-main branch]
2021-06-21 17:09:36 -04:00
Tim Smith
cfca999345 Removed the Class/Struct meta data class.
Fixed some API that were mistakenly setup as generic struct API instead of class API.
Removed some unused API.
No functional changes, just code reorg.

#rb none
#rnx
#preflight 60d08126d9586b0001ae3336

[CL 16727641 by Tim Smith in ue5-main branch]
2021-06-21 09:34:39 -04:00
Tim Smith
8590673019 Added support for a UEnum not containing a literal zero value. If that is the case, a static_assert is added to verify that one of the enum values is zero.
#rb jonathan.adamczewski
#jira UE-85060
#preflight 60cb726c78c3b00001297ce7

[CL 16706846 by Tim Smith in ue5-main branch]
2021-06-17 13:38:56 -04:00
Tim Smith
1d9018502f Cleaning up the compiler directive code.
Add error message for when WITH_EDITOR used in shipping code to hide a property.

#rb jonathan.adamczewski
#rnx
#jira UE-48666

[CL 16687191 by Tim Smith in ue5-main branch]
2021-06-16 08:49:35 -04:00
Zousar Shaker
cf116088ae Integrating //UE5/Dev-Cooker @ 16678003 to //UE5/Main (Zousar.Shaker-YEG-0943-Quaternary)
Non-DevIteration_ShooterGame

[CL 16678907 by Zousar Shaker in ue5-main branch]
2021-06-15 16:36:57 -04:00
Zousar Shaker
9cc72e7b9f Fix issues with the TObjectPtr upgrade toolchain in preparation of another pass to make ShooterGame compliant and enforce the use of TObjectPtr for all member properties.
#rb matt.peters

[CL 16622906 by Zousar Shaker in ue5-main branch]
2021-06-10 10:19:17 -04:00
Tim Smith
c21dd493c5 Fixed global delegate functions to support changes when doing live coding.
Fixed issue where changing a function signature in an interface wouldn't update nodes in a blueprint.
Changed the API of the deferred registry to be more inline with UE coding standards.

#rb ben.marsh phillip.kavan
#rnx
#jira UE-113662
#preflight 60c0c0fdc61264000190e16a

[CL 16606206 by Tim Smith in ue5-main branch]
2021-06-09 11:42:43 -04:00
Tim Smith
9072242c05 Modify propagation of some property flags to happen after all parsing is complete. This removes a hidden restriction where parse order beyond explicit includes affected the output.
Enable concurrent parsing of headers.
Fixing uninitialized variable from prior submit.

Tested by running UHT on a sample large scale game 1000 times and verifying the output matched with a prior version of UHT.

#rb jonathan.adamczewski
#rnx
#preflight 60be0b3a0249c30001e9b0e5

[CL 16568873 by Tim Smith in ue5-main branch]
2021-06-07 08:08:33 -04:00