Commit Graph

73 Commits

Author SHA1 Message Date
Maciej Mroz
f98b8e6307 FEmitHelper::GenerateAutomaticCast detects unconverted classes.
[CL 2711152 by Maciej Mroz in Main branch]
2015-09-30 11:18:40 -04:00
Maciej Mroz
1d2d3748a8 #jira UE-21603 Blueprint interfaces not properly being converted into C++
[CL 2711023 by Maciej Mroz in Main branch]
2015-09-30 09:59:17 -04:00
Maciej Mroz
2d2131fd40 BlueprintCompilerCppBackend:
- Huge refectoring - no more Emit. FEmitterLocalContext is used everywhere.
- No more AddHighPriorityLine
- Various minor bugs were fixed.

[CL 2710894 by Maciej Mroz in Main branch]
2015-09-30 06:29:24 -04:00
Maciej Mroz
897ce3a214 BlueprintCompilerCppBackend - unconverted blueprints:
- support for functions and delegates
- various fixes

#codereview Mike.Beach

[CL 2709166 by Maciej Mroz in Main branch]
2015-09-29 07:32:02 -04:00
Dan Oconnor
d6625b676d Changes required to support unicode (or otherwise invalid) class names for blueprints converted to native types. We now add a postfix (__pf) to native types generated for blueprints. We also overwrite invalid symbols (ie, +, - or unicode characters) found in blueprint asset names. All dynamic classes now need to explicitly specify a name.
#codereview Maciej.Mroz

[CL 2708146 by Dan Oconnor in Main branch]
2015-09-28 14:27:23 -04:00
Maciej Mroz
8192b0a511 BlueprintCompilerCppBackend:
- support for unconverted types - WIP
- use "UsedAssets" array from the class instead of loading objects

[CL 2704307 by Maciej Mroz in Main branch]
2015-09-24 09:57:06 -04:00
Maciej Mroz
760e728416 Basic support for unconverted BP.
- Native UProperties of an unconverted type, are replaced with properties of the first native type.
- support for Cast and DynamicCast
- various fixes

#codereview Mike.Beach, Robert.Manuszewski

[CL 2704010 by Maciej Mroz in Main branch]
2015-09-24 05:05:37 -04:00
Dan Oconnor
321f40e667 UEBP-40 fixes - blueprints with multiple delegates to declare now compile, blueprints no logner duplicate delegate declarations, enum defaultss in generated code are now always valid symbols, minor whitespace improvement to delegate declarations
[CL 2699985 by Dan Oconnor in Main branch]
2015-09-21 18:20:01 -04:00
Mike Beach
2058d7b664 Fixing the in-editor Blueprint conversion tool so that the files generated match the specified includes.
#codereview Dan.OConnor

[CL 2699819 by Mike Beach in Main branch]
2015-09-21 17:15:50 -04:00
Dan Oconnor
649bb4acb6 Fixes for cast nodes in cpp backend, to test just generate code for BP_Node_Basic
[CL 2697378 by Dan Oconnor in Main branch]
2015-09-18 14:10:51 -04:00
Mike Beach
8fcdbeece4 Coordinating the Blueprint conversion tool with the backend (ensuring filenames are in sync, and that the backend knows what files will and won't be converted).
#codereview Maciej.Mroz

[CL 2697358 by Mike Beach in Main branch]
2015-09-18 14:00:49 -04:00
Maciej Mroz
c38d11436b New way of replacing old BPGC references with new (converted and native) DynamicClass references in Package::Save
#codereview Robert.Manuszewski, Mike.Beach

[CL 2696879 by Maciej Mroz in Main branch]
2015-09-18 07:41:43 -04:00
Maciej Mroz
c254b9121f FGatherConvertedClassDependencies collectsheaders for used interfaces.
[CL 2694874 by Maciej Mroz in Main branch]
2015-09-17 05:26:42 -04:00
Maciej Mroz
6a80e81347 BlueprintCompilerCppBackend: improved interface generation.
[CL 2694856 by Maciej Mroz in Main branch]
2015-09-17 05:15:17 -04:00
Maciej Mroz
e207582c8f UEBP-40 C++ code generation (WIP):
- components created in constructor have CreationMethod = EComponentCreationMethod::Native

#codereview Phillip.Kavan

[CL 2690138 by Maciej Mroz in Main branch]
2015-09-14 09:23:48 -04:00
Maciej Mroz
f698ecbe03 UEBP-40 C++ code generation (WIP):
- Test Pipeline for native classes converted from BP (FReplaceConvertedAssetManager)
- DynamicClass support

[CL 2687964 by Maciej Mroz in Main branch]
2015-09-11 10:56:21 -04:00
Maciej Mroz
a23caa0f03 UEBP-40 C++ code generation (WIP):
- refactor
- DynamicClass support
- various bugs

#codereview Mike.Beach, Dan.OConnor, Phillip.Kavan, Robert.Manuszewski

[CL 2686106 by Maciej Mroz in Main branch]
2015-09-10 09:15:43 -04:00
Phillip Kavan
308be6bebd [UEBP-40] BP->C++ code generation (WiP) - Some fixes to generated code for default subobject instancing.
change summary:
- modified FEmitDefaultValueHelper::HandleInstancedSubobject() to allow callers to control whether or not to generate code to create the instance or access it (if it should already have been created).
- modified FEmitDefaultValueHelper::GenerateConstructor() to generate code to assign a fallback native root component if available (to match the runtime side in the non-generated code case)

#codereview Maciej.Mroz

[CL 2685496 by Phillip Kavan in Main branch]
2015-09-09 17:50:03 -04:00
Dan Oconnor
53db26d327 Name mangling logic for blueprint generated classes. This solves problems with ascii characters like '-', '+' and '=', unicode characters, and that match existing c++ identifiers (IE naming a blueprint variable bool or U8) showing up in code generated from blueprints.
#codereview Maciej.Mroz

[CL 2685409 by Dan Oconnor in Main branch]
2015-09-09 17:11:11 -04:00
Marc Audy
6da868e057 Fix shadowed variable
#codereview Maciej.Mroz

[CL 2683496 by Marc Audy in Main branch]
2015-09-08 15:03:16 -04:00
Maciej Mroz
45e8455032 FConvertedBlueprintsDependencies - next iteration.
#codereview Robert.Manuszewski

[CL 2683056 by Maciej Mroz in Main branch]
2015-09-08 11:03:41 -04:00
Maciej Mroz
446c40f58e UEBP-40 C++ code generation (WIP):
- Refactor, Introduced function FEmitHelper::GetCppName

#codereview Dan.OConnor

[CL 2682851 by Maciej Mroz in Main branch]
2015-09-08 06:44:17 -04:00
Maciej Mroz
ac295f03eb UEBP-40 C++ code generation (WIP):
- improved (working) code for UMG Widgets
- various fixes

[CL 2682439 by Maciej Mroz in Main branch]
2015-09-07 09:39:56 -04:00
Maciej Mroz
6ce1610a00 Comments added
[CL 2681931 by Maciej Mroz in Main branch]
2015-09-06 09:15:57 -04:00
Maciej Mroz
bec08e1390 UEBP-40 C++ code generation (WIP):
- Gathering coverted class dependencies - fixed and refactored
- improved list of included headers and forward-declared structs

#codereview Mike.Beach

[CL 2681924 by Maciej Mroz in Main branch]
2015-09-06 07:59:37 -04:00