<div>Yes, Ted. I tried option. </div>
<div>While it seems:</div>
<div>When I directly build my code with cgcc <many options ...><target file> . It is OK, and build succefully and no warnings.</div>
<div>When use as scan-build  --use-cc=cgcc <many options ...><target file> . It will turn out the options can not be recognised and scan stopped.</div>
<div>(I added the cgcc into PATH)<br></div>
<div>So I'm not sure whether it come from scan-build limition.<br></div>
<div class="gmail_quote">On Thu, Feb 24, 2011 at 10:58 AM, Ted Kremenek <span dir="ltr"><<a href="mailto:kremenek@apple.com" target="_blank">kremenek@apple.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Have you looked at the --use-cc and --use-cxx options for scan-build?<br><br>$ scan-build<br>...<br> --use-cc [compiler path]   - By default, scan-build uses 'gcc' to compile and link<br>
 --use-cc=[compiler path]     your C and Objective-C code. Use this option<br>                             to specify an alternate compiler.<br><br> --use-c++ [compiler path]  - By default, scan-build uses 'g++' to compile and link<br>
 --use-c++=[compiler path]    your C++ and Objective-C++ code. Use this option<br>                             to specify an alternate compiler.<br>
<div>
<div></div>
<div><br><br>On Feb 23, 2011, at 6:37 PM, Cai Qihang wrote:<br><br>> Hi:<br>>      In my project, I have another compiler which based on gcc while did some specific extensions, such as function defination prefix and types recognize.<br>
> When I use CSA scan the build process, I saw the gcc is replaced by ccc-analyzer and g++ by c++analyzer, while the compiler command which start with my customized compiler such as "cgcc", it won't work. I wonder whether CSA support other gcc-based compiler merged in? I mean  "customized compiler"+ "Analyzer", and build a binary as ccc-analyzer? Any friends tried that?<br>
>     Thanks!<br></div></div>> _______________________________________________<br>> cfe-dev mailing list<br>> <a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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>