<div dir="ltr"><div>Hi! You can do this:</div><div><br></div><div>1) export LLVM_BIN=<span style="font-size:12.8000001907349px">/home/zq/LLVM/build/</span><span style="font-size:12.8000001907349px">Release+Asserts/bin/</span></div><div>2) scan-build --use-analyzer $LLVM_BIN/clang [other options to clang go here]</div><div><br></div><div>You may even want to put the 1st command in your ~/.bashrc file so that you don't have to export LLVM_BIN each time you want to use it.</div><div><br></div><div>Regards,</div><div>Saheel.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 7:47 PM, Q Z <span dir="ltr"><<a href="mailto:zhaoqian301@gmail.com" target="_blank">zhaoqian301@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I'm a beginner of clang-analyzer. I got a problem when I execute command "scan-build make":<br>scan-build: error: Cannot find an executable 'clang' relative to scan-build.  Consider using --use-analyzer to pick a version of 'clang' to use for static analysis.<br><br></div>PS:I have compiled llvm+clang(with source code llvm 3.3). And I have added the two PATH:/home/zq/LLVM/llvm-3.3.src/tools/clang/tools/scan-view/:/home/zq/LLVM/llvm-3.3.src/tools/clang/tools/scan-build/:/home/zq/LLVM/build/Release+Asserts/bin/<br><br></div>Can anybody help me?<br></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>