How to index Unreal's generated headers in Rider

We have modified Unreal Header Tool to codegen some functions that we'd like to be indexed by Rider. However, currently in Rider the functions appear to be red and their symbols cannot be resolved, while the project builds just fine. Is there a way to parse the generated headers (xxx.generated.h) so that they can be referenced?

0
3 comments

Hello Velkhana,

I'm afraid, Rider won't be able to resolve the symbols you generate with custom UHT. We have an existing issue about this, but I can't give you any workarounds.

Please feel free to vote for RSCPP-31162 or use Watch issue to get notifications about the issue.

0

Hi Kirill,

thanks for the info. A follow-up question: is there a way to define rules so that Rider can pick up some of the auto-generated symbols? For instance, in UE, a function defined with BlueprintNativeEvent has a default native declaration with the suffix of “_Implementation” and is already working with UE perfectly. Would it be possible for the developer to extend this functionality in terms of implementing Rider plugins or something like that?

0

Hello Velkhana,

The API does not have the necessary extension points to implement this feature as a plugin right now. Unfortunately, writing a plugin would not be possible.

0

Please sign in to leave a comment.