Static Code Analysis in UE4

Hey folks, I’m wondering if anyone has managed to find any good static code analysis tools that would work on my UE4 project. I’m mostly looking for common problem analysis (i.e. derefrencing ptr before checking it) and cyclomatic complexity metrics.

I was hoping to use the built in analysis options in VS 2015 but it seems that it is for managed code only. I also took a look at PVS-Studio but they do not have purchase options for individual developers.

As a single developer it’s both a blessing and a curse when it comes to maintaining a large base of code. I’m looking for anything that can slap my hand and help me write less error prone code.