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

Jordan Rose jordan_rose at apple.com
Wed Mar 20 18:25:26 PDT 2013


Hello, Howard. One issue that might be related is that scan-build can't use a PCH (precompiled header) file with Xcode 4.5. Are these constants are only declared in your PCH?

The good news: as of checker-271, scan-build takes advantage of new hooks in Xcode 4.6 to use PCH, which should fix your issue. Can you update your Xcode and try again?

Jordan


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

> Dear ALL:
> When I use the scan-build from Clang checker-272, it gets the following errors:
>  
> /Users/mqq/hudson/clang_browser_iphone/Classes/browser/startpage/UIQuickLinkView.m:773:45: error: use of undeclared identifier 'APP_INSERT_FRONT'
>         NSInteger action = isInsertBefore ? APP_INSERT_FRONT : APP_INSERT_BEHIND;
>                                             ^
> /Users/mqq/hudson/clang_browser_iphone/Classes/browser/startpage/UIQuickLinkView.m:773:64: error: use of undeclared identifier 'APP_INSERT_BEHIND'
>         NSInteger action = isInsertBefore ? APP_INSERT_FRONT : APP_INSERT_BEHIND;
>  
> The above file is from Dependent target , so ,is it any wrong config in Xcode Project ?
> At the same time , we get no error when we use build and analyze memu from Xcode .
> If the xcode project is OK, any other reason cause the scan fail?
> btw ,the xcode is 4.5 and the sdk is 6.0
> Thanks for you help.
> BRs
> Howard Ling (凌欢)
> *****************************************************
> Cell Phone:13428984893
> E-mail:    linghuan713 at 126.com
> *****************************************************
> 
>  
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130320/7457c51e/attachment.html>


More information about the cfe-dev mailing list