[cfe-dev] Clang Check-272 can't not find declared identifier from Dependent target

Jordan Rose jordan_rose at apple.com
Mon Mar 25 09:41:13 PDT 2013

On Mar 21, 2013, at 19:40 , 凌欢 <linghuan713 at 126.com> wrote:

> hi, jordan:
> After I switch to checker -271 and xcode 4.6+sdk6.1, the same error still exist,
> do you have other ideas?
> btw, when I use the following command :
> /data/checker/scan-build -o report --use-cc=$clang_path $xcode_path -workspace mtt.xcworkspace -scheme mttlite -configuration $config -sdk $sdk
> There is no any error ,but only 10 bugs ,is it valid scan command ?

That seems valid to me. I will note that Xcode currently handles bugs that span files due to function inlining, while scan-build does not (because we haven't taken the time to come up with a good way of displaying them in HTML). The current behavior is to ignore these bugs, with the idea that the user is at least getting some value out of the analyzer.

It's worth checking that at least some of the 10 bugs are a subset of the bugs you see in Xcode, though since checker-271 is newer they might be a bit different. (Also, it's fine to use checker-272 and later with Xcode 4.6 as well; checker-271's just the first release that took advantage of the extra hooks in Xcode.)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130325/2c059c93/attachment.html>

More information about the cfe-dev mailing list