clang-check
, Clang's built-in static analysis tool, has an -analyze
option, for which the help string just says "Run static analysis engine." With this flag, I see very little output from running clang-check
on several of my files; without it, I see a lot of warnings.
Isn't running the static analysis engine the main purpose of running clang-check
, which is a static analysis tool? Why do I see less output when running the engine, and what does the tool do without the flag?