llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.92k stars 11.52k forks source link

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

Open llvmbot opened 12 years ago

llvmbot commented 12 years ago
Bugzilla Link 12129
Version unspecified
OS MacOS X
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@efriedma-quic,@tkremenek

Extended Description

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!

llvmbot 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!

llvmbot 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!

llvmbot commented 12 years ago

the report of the scan-build

tkremenek 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?

Meant to say, there isn't any information here for me to go on.

tkremenek 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?