Prerequisites
We will start with a working OpenJDK build, i.e. a situation where running
bash configurefollowed by
make imagesproduces a working build.
Install clang tools
Latest version available at the time of writing was 10:
sudo apt install clang-tools-10Reconfigure
Run configure via scan-build
scan-build-10 bash configureOptionally add --enable-debug, it can reduce the number of false positives.
Scan
scan-build-10 -o scan makeFound problems are reported on console in text format and stored in a subdirectory of "scan" directory in HTML format.
Sample results
You can check example output of the scan here
No comments:
Post a Comment