I found scan-build(Checker-275) can not find .h files sometimes when scan the iOS projects.
For example , inclosed rar file has four files.
- DailyBuild.sh ,daily build script (without scan-build). and build.log is the log (execute successfully).
- scan.sh , which is has scan-build ,for scan Clang bugs, and scan.log is the log(execute fail).
See the following error from scan.sh:
/Users/mqq/hudson/clang_QQNote_iphone/Source/QNWNSResponseProtocol.m:13:9: fatal error: ‘SNSLib/JSON.h’ file not found
1 error generated.
That is the scan-build can not find JSON.h file while the DailyBuild.sh can find for the same iPhone project.
I think the current verison of the scan-build is not smart to search .h file.
Can anyone give me tips? Thanks.
scan-build.rar (60 KB)