Macro Code Inspection
Hello, our team is starting to transition to Rider for Unreal, but we're noticing a small annoying issue. If code is wrapped in an if statement with a macro (like UE_SERVER) that is by default equal to 0 in the UE4 codebase except during server target builds, any code wrapped within that Macro is not inspected or analyzed. Is there a way to force code within these if statements to be inspected?
Please sign in to leave a comment.
Hi,
Could you please try enabling "[Experimental] Use Unreal Engine project model" (File | Settings | Languages & Frameworks | C++ | Unreal Engine).
Enabled it and invalidated the cache so it regenerated, but no change. It's worth noting this code block is within a project plugin.
Thank you for the details. Unfortunately, it looks like the generation of project model for the server configuration is failed. We are investigating the issue, please accept our apologies for the inconvenience.
Met the same issue. It would be cool if it will be fixed
Hi Dmitrii Komarevtsev,
Have you encountered the issue with any specific Unreal Engine macro?
If you mean the general case, like having code analysis in an inactive preprocessor branch, please upvote this feature request: https://youtrack.jetbrains.com/issue/RIDER-55126.