We are not building the C and C++ code under the tests directory on all of our supported platforms and we are not running them through clang-analyzer.
They should build as part of the build system, with a configure flag. I would recommend renaming --enable-test-tools (doesn't look like it is used) and rename it to --enable-tests.