primitive
primitive copied to clipboard
Unable to properly read Unreal Engine solutions in Primitive
Summary
Unreal projects parse to a degree in Primitive, however, the various UE Macros seem to trip the parser up. It gets stuck thinking that the specifiers like UFUNCTION()
or UPROPERTY()
are int-returning calls when in actuality they're parsed by the Unreal Header Tool to provide a mechanism approximating reflection, and because said specifiers don't have a semicolon the parser completely mangles the rest of the code.
Platform (Vive, Rift, Windows MR, GearVR): Vive & Index Loaded project: A large codebase in UE4
What steps are needed to reproduce the issue?
- Create a UE4 project.
- Within the project, create a C++ class, which contains the following method:
public:
UFUNCTION()
void TestMethod() {
UE_LOG(LogTemp, Verbose, TEXT("I'm an example!"));
}
- Open the project in Primitive.
- Observe the mangling of the class's TestMethod definition.
Thank you for pointing this out. We hadn't thought to test this case.
We use ANTLR to parse C++ code in the Primitive executable. We have a separate tool that uses Clang to parse C++ code that is currently only available for licensed users. We'll have to look at both tools to see if it's easy to handle this case.