Commit Graph

259 Commits

Author SHA1 Message Date
Maciej Mroz
ae93f71eb4 CodeGenerator sets CppType in Enum
UByteProperty::GetCPPType returns proper type

#codereview Steve.Robb

[CL 2641863 by Maciej Mroz in Main branch]
2015-08-03 09:58:36 -04:00
Maciej Mroz
08af6cf6b5 UEBP-40 C++ code generation (WIP):
- Native Access Specifiers
- FEmitDefaultValueHelper fix/improvements

#codereview Robert.Manuszewski, Nick.Whiting

[CL 2640098 by Maciej Mroz in Main branch]
2015-07-31 06:27:05 -04:00
Mikolaj Sieluzycki
6979137b8a Allow UHT to parse 'int', 'signed int' and 'unsigned int' types.
[CL 2636566 by Mikolaj Sieluzycki in Main branch]
2015-07-29 03:49:56 -04:00
Steve Robb
f74c17b324 Cope with explicit when looking for user constructors.
#codereview robert.manuszewski

[CL 2636012 by Steve Robb in Main branch]
2015-07-28 16:46:57 -04:00
Steve Robb
d1605aa96b FindMatchingClosingParenthesis moved to UnrealString.h, return value fixed (was off-by-one) and checked upper bound of StartSearch.
UnrealHeaderTool now supports casts and brackets when recognizing UENUMs as array bounds.

#codereview robert.manuszewski,leigh.swift,lee.clark

[CL 2635565 by Steve Robb in Main branch]
2015-07-28 13:08:12 -04:00
Maciej Mroz
c73e6aef8c UEBP-40 C++ code generation (WIP):
- interface is called with "::Execute_"
- interface functions are BlueprintNativeEvents
- CppFromBpEvent metadata added, to force FUNC_Event
- BlueprintNativeEvent support
- BlueprintImplementableEvent support

[CL 2635382 by Maciej Mroz in Main branch]
2015-07-28 10:40:16 -04:00
Richard Hinckley
5b7adab09e Added "//~" and "/*~" support to Unreal header parsing, so that comments can be ignored instead of being made into tooltips, mirroring the recent Doxygen filter feature. Also added support to keep @note blocks visible in UFUNCTIONS.
[CL 2630494 by Richard Hinckley in Main branch]
2015-07-23 09:27:43 -04:00
Martin Mittring
fcffaa7884 better %f seconds printout
[CL 2624557 by Martin Mittring in Main branch]
2015-07-17 13:48:35 -04:00
Jaroslaw Palczynski
98611dbff9 UHT: Added class range validation in exporting code to prevent crashes when they occur during bad parsing.
#codereview Robert.Manuszewski

[CL 2622001 by Jaroslaw Palczynski in Main branch]
2015-07-15 13:24:05 -04:00
Steve Robb
4e1172d62b Prevent UHT crash when looking up parent types during code generation.
#codereview robert.manuszewski

[CL 2619876 by Steve Robb in Main branch]
2015-07-14 06:27:34 -04:00
Steve Robb
07eaa7faf4 Bad UENUM specifiers now throw an error.
#codereview robert.manuszewski

[CL 2617559 by Steve Robb in Main branch]
2015-07-11 04:43:05 -04:00
Mikolaj Sieluzycki
993cdb271f Make UHT parse TSubclassOf<USomeClass>& parameters to RPC without compilation error.
[CL 2616553 by Mikolaj Sieluzycki in Main branch]
2015-07-10 08:56:36 -04:00
Michael Noland
93f5f7871f Blueprints: Added support for expressing a per-parameter DisplayName using the markup UPARAM(DisplayName="Something neat") before the parameter declaration
This allows renaming parameters without using a K2ParamRedirect, and to use names that are not legal C++ identifiers

UFUNCTION(BlueprintPure, ...)
static void DoSomethingAwesome(UPARAM(DisplayName="Awesome Param") float BoringParam);

#codereview nick.whiting

[CL 2614169 by Michael Noland in Main branch]
2015-07-08 17:03:53 -04:00
Mikolaj Sieluzycki
446dc2f2d5 Fix issues with comment parsing in UHT.
[CL 2605847 by Mikolaj Sieluzycki in Main branch]
2015-06-30 11:45:05 -04:00
Steve Robb
978799d68b Subobject error removed.
#codereview robert.manuszewski

[CL 2598990 by Steve Robb in Main branch]
2015-06-24 11:29:52 -04:00
Steve Robb
fab3d634d9 Forward declarations of DelegateWrapper functions removed from generated headers.
#codereview robert.manuszewski

[CL 2587625 by Steve Robb in Main branch]
2015-06-15 14:06:46 -04:00
Steve Robb
0709480948 New IsSorted algorithm.
New FindSortedStringCaseInsensitive algorithm, which binary searches strings in an array.
Many UHT string tests replaced with FindSortedStringCaseInsensitive.
FPropertySpecifier moved to UHT.

#codereview robert.manuszewski

[CL 2587588 by Steve Robb in Main branch]
2015-06-15 13:40:28 -04:00
Mikolaj Sieluzycki
b32e1ebdbe Fix missing metadata (ConversionRoot) after UHT parsing.
#codereview Robert.Manuszewski

[CL 2582509 by Mikolaj Sieluzycki in Main branch]
2015-06-10 08:07:36 -04:00
Jaroslaw Palczynski
3901c239a4 UE-16079: Creating Factory in Runtime Module is not possible and has strange error.
Fixed UHT to detect that a parent class hasn't been parsed before it's child and display a better error message.

[CL 2573515 by Jaroslaw Palczynski in Main branch]
2015-06-02 02:12:11 -04:00
Steve Robb
f9352385b0 Prevent UFunctions from having array parameters.
#codereview robert.manuszewski

[CL 2570760 by Steve Robb in Main branch]
2015-05-29 13:22:43 -04:00
Robert Manuszewski
f26442b5f7 Fixing UHT not finding ScriptGeneratorPlugin
[CL 2566688 by Robert Manuszewski in Main branch]
2015-05-27 11:12:26 -04:00
Gareth Martin
3a245ca05a Disallow UClass* properties from having the "Instanced" keyword
[CL 2565043 by Gareth Martin in Main branch]
2015-05-26 11:51:04 -04:00
Mikolaj Sieluzycki
ac339b4bbb Make UEnums tightly packed.
[CL 2564612 by Mikolaj Sieluzycki in Main branch]
2015-05-26 03:36:08 -04:00
Jaroslaw Palczynski
86fb0d52a1 UE-12916: Attempting to use the GameplayTags module in a binary code project will result in build failures in Visual Studio.
[CL 2562196 by Jaroslaw Palczynski in Main branch]
2015-05-22 02:54:27 -04:00
Maciej Mroz
b5d72fa9a2 More strict restrictions related to WeakObjectPtr exposed to blueprint. No arrays on weakobjptr. No lazy pointers. UE-15033
#codereview Jon.Lietz, Zak.Middleton, Richard.Hinckley, Nick.Whiting

[CL 2561280 by Maciej Mroz in Main branch]
2015-05-21 15:24:44 -04:00