[cfe-dev] c++-analyzer warning question
Dave Flogeras via cfe-dev
cfe-dev at lists.llvm.org
Wed Sep 21 05:34:07 PDT 2016
On Wed, Sep 21, 2016 at 8:33 AM, Artem Dergachev <noqnoqneo at gmail.com>
> First of all, you shouldn't be calling the "c++-analyzer" executable
> directly. It shouldn't ideally be in your PATH. This script is intended to
> be run by a tool called "scan-build", which essentially does the
> "CXX=c++-analyzer" thing you're doing, just passing a lot of options to
> this script through its own environment variables.
Ahh, OK sorry. If I re-try with a clean build dir:
scan-build cmake -DCMAKE_BUILD_TYPE=Release ..
I still see the aforementioned "Potential memory leak" on the console, but
at the end of the run scan-build says there are no reports, and removes the
output html directory.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev