Commit Graph

154 Commits

Author SHA1 Message Date
Mikolaj Sieluzycki
a53cf2e072 Make UEnums store values as uint8 instead of int8.
#codereview Robert.Manuszewski

[CL 2643276 by Mikolaj Sieluzycki in Main branch]
2015-08-04 08:20:16 -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
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
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
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
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
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
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
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
Marc Audy
958cfbab16 Re-enable warning about virtual Blueprint Implementable Events
[CL 2558570 by Marc Audy in Main branch]
2015-05-20 09:10:28 -04:00
Maciej Mroz
3785f18c8f CIS fix
[CL 2553564 by Maciej Mroz in Main branch]
2015-05-15 17:12:17 -04:00
Maciej Mroz
dd3c13654b UE-14387 Support for AssetPtr references in Blueprints
Early version:
- New BP types: Asset and AssetClass
- Now implicit conversion (in Blueprint) from Asset to Object
- Explicit conversion node: K2Node_ConvertAsset
- EX_AssetConst script instruction to store StringAssetReference in bytecode.

#codereview Nick.Whiting, Mike.Beach

[CL 2553506 by Maciej Mroz in Main branch]
2015-05-15 16:44:55 -04:00
Steve Robb
07b1559496 Improved error message for missing UHT types.
#codereview robert.manuszewski

[CL 2547263 by Steve Robb in Main branch]
2015-05-12 10:49:46 -04:00
Steve Robb
1421ef3d6f Fix for the skipping of DECLARE_MULTICAST_DELEGATE declarations.
Bunch of extra checks for this kind of failure in future.
Some scope bracing fixes.

#codereview robert.manuszewski

[CL 2531944 by Steve Robb in Main branch]
2015-04-30 10:25:31 -04:00
Marc Audy
6b9642b23a Fix UHT shadow variables
#codereview Steve.Robb, Dmitry.Rekman, Terence.Burns

[CL 2521443 by Marc Audy in Main branch]
2015-04-22 14:47:12 -04:00
Steve Robb
83203b555a Shadowed variables fixed.
#codereview robert.manuszewski,terence.burns,marc.audy

[CL 2521372 by Steve Robb in Main branch]
2015-04-22 14:15:56 -04:00
Marc Audy
734e40c910 Temporarily disable warning since UHT turns it in to an error
[CL 2519961 by Marc Audy in Main branch]
2015-04-21 16:40:14 -04:00
Marc Audy
ccf62f558f Warn that virtual BlueprintImplementableEvents are not allowed, will remove support in a future release.
[CL 2519475 by Marc Audy in Main branch]
2015-04-21 12:46:26 -04:00