[cfe-dev] Clang Check-272 can't not find declared identifier from Dependent target
凌欢
linghuan713 at 126.com
Thu Mar 21 19:40:55 PDT 2013
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 ?
Thanks for your Follow up and reply.
--
BRs
Howard Ling
*****************************************************
E-mail: linghuan713 at 126.com
*****************************************************
At 2013-03-21 09:25:26,"Jordan Rose" <jordan_rose at apple.com> wrote:
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/20130322/462f09ff/attachment.html>
More information about the cfe-dev
mailing list