[cfe-dev] scan-build throws error
1789955632 via cfe-dev
cfe-dev at lists.llvm.org
Sat Jun 27 20:13:38 PDT 2020
hi,
I used clang(v-8.0) scan-build to build a real OC project, which contains c/cpp/oc code files. Command is "scan-build xcodebuild -workspace .... " , and an error occurs when build cpp files. Here is the error message:
/**a.cpp**/
struct person{
char name;
char tel;
.....
}
....
....
person p ={..}
p.name = ...
p.tel = ...
/**a.cpp**/
error: no member named 'name' in 'person'
error: no member named 'tel' in 'person'
......
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Command AnalyzeShallow failed with a nonzero exit code
and build failed. I tried to use -ferror-limit=0 to no limit errors, but it still build failed with many such errors.
What's the problem? And how to solve it?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200628/803ecd6d/attachment-0001.html>
More information about the cfe-dev
mailing list