'How do I use analyze-build to perform static analysis on Android C++ project?

  1. I installed scan-build on Windows using pip install scan-build
  2. I then build my project to generate compile_commands.json for Android build
  3. I then run the following command analyze-build --cdb <path>\compile_commands.json --output .\test

My Output: Removing directory '<path>' because it contains no report. eventhough I'm sure ther are errors.

What am I doing wrong ? I can get this to work on Mac for iOS and Mac.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source