Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

some of my project .h file not found, when running the scan-build(checker 259) #12244

Open Quuxplusone opened 12 years ago

Quuxplusone commented 12 years ago
Bugzilla Link PR12129
Status NEW
Importance P enhancement
Reported by wingyip (wingyip1988@gmail.com)
Reported on 2012-02-29 01:58:09 -0800
Last modified on 2012-03-22 20:34:11 -0700
Version unspecified
Hardware Macintosh MacOS X
CC dgregor@apple.com, efriedma@quicinc.com, kremenek@apple.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments 2012-03-01-1.zip (125966 bytes, text/html)
Blocks
Blocked by
See also
When running the scan-build(checker 259), it turned out that some of my
project's header files were not found. The same case in checker 260 and 261.

But the scan-build ran normally under checker 258.
If the checker 259 is set into the Xcode, and run the "analyze", it's ok again.

Thank you very much!
Quuxplusone commented 12 years ago

There is any information here for me to go on. Do you have any build output to provide? An example project? How were you (exactly) running scan-build?

Quuxplusone commented 12 years ago
(In reply to comment #1)
> There is any information here for me to go on.  Do you have any build output
to
> provide?  An example project?  How were you (exactly) running scan-build?

Meant to say, there *isn't* any information here for me to go on.
Quuxplusone commented 12 years ago

Attached 2012-03-01-1.zip (125966 bytes, text/html): the report of the scan-build

Quuxplusone commented 12 years ago
The attachment above is the report of the scan-build.
Because the output of the terminal too large to save it into a text file within
1MB size, so I'm not able to give it to you here. And I will send a email to
you with this.
About the example project, because I still don't what's wrong to cause this
issue,  I have no example project. And the project I used belongs to my
company, and it's open source. I'm terrible sorry that I can't give it to you.
Thank you very much!
Quuxplusone commented 12 years ago
I found a way to solve this problem. But I don't know why it works.

Just copy this two files below:
checker-258/libexec/c++-analyzer
checker-258/libexec/ccc-analyzer

And replaced the files in checker-259:
checker-259/libexec/c++-analyzer
checker-259/libexec/ccc-analyzer

And then, the scan-build of checker-259 works normally again!