<div dir="ltr">Hi,<div><br></div><div>I am having the same problem.</div><div><br></div><div style>I moved everything under the directory where the binaries are installed</div><div style>as it works for Mikhail but I still don't get the report.</div>

<div style><br></div><div style>Running scan-build on this test code</div><div style><br></div><div style><div>int main(int argc, char** argv)</div><div>{</div><div>š š uint8_t array[12];</div><div>š š uint8_t* ptr;</div>

<div>š š uint8_t i = 10/0;</div><div><br></div><div>š š array[3] = *ptr;</div><div><br></div><div>š š for (uint8_t i = 0; i < 13; i++) {</div><div>š š š š printf("%d\n", array[i]);</div><div>š š š š array[i] = 1;</div>

<div>š š }</div><div><br></div><div>š š printf("%d\n", ptr[1]);</div><div>š š ptr = array;</div><div><br></div><div>š š return 0;<br></div><div>}</div><div><br></div></div><div style><div>$ scan-build --use-analyzer=`which c++-analyzer` -V -o . make</div>

<div>scan-build: Using '/home/xxxx/programming/llvm-bld/Release+Debug+Asserts/bin/c++-analyzer' for static analysis</div><div>clang++ test.cpp -o test</div><div>test.cpp:18:19: warning: division by zero is undefined [-Wdivision-by-zero]</div>

<div>š š uint8_t i = 10/0;</div><div>š š š š š š š š š ^~</div><div>1 warning generated.</div><div>scan-build: Removing directory '/home/xxxx/programming/clang-check-test/2013-06-27-1' because it contains no reports.</div>

<div>scan-build: No bugs found.</div><div><br></div><div style>Running it with strace show the following</div><div><br></div><div><div>stat64("/home/xxxx/programming/clang-check-test/2013-06-27-1/failures", 0x94ea0c4) = -1 ENOENT (No such file or directory)</div>

<div>write(1, "scan-build: Removing directory '"..., 118scan-build: Removing directory '/home/xxxx/programming/clang-check-test/2013-06-27-1' because it contains no reports.</div><div>) = 118</div></div>

<div><br></div><div style>For some reason failures is not created.</div><div><br></div><div style>Any hints?</div><div><br></div></div><div class="gmail_extra" style>S.</div></div>