title: Android NDK - static analysis for native c++ code
body: <p>Is there a static analysis tool integrated into the Android NDK for native code?  From my understanding, it looks like the NDK recently transitioned to CLang which I think has a built-in static analyzer (<a href="https://clang-analyzer.llvm.org/scan-build.html" rel="nofollow noreferrer">https://clang-analyzer.llvm.org/scan-build.html</a>), but I can't seem to find out how to use it.  I am guessing I just need to update my CMake file somehow?</p>
  
  <p>I searched through all the gradle tasks using "./gradlew tasks --all" and I saw the "externalNativeBuild" task but that just builds the native source code.  </p>
  
  <p>Ideally, I would like to just run a single command/task and an output file is generated with all the static analysis issues for my native code -- similar to Java's "lint" task where an HTML file is created.</p>
  
  <p>Thanks!</p>