exclusion of specified directories from analysis with scan-build

Hi,

I am wondering if it is currently possible with scan-build, to exclude
certain directories that are part of the build project from the
generated html reports ?

I couldnt find anything like that, so I submitted an enhancement
request in bugzilla:

http://llvm.org/bugs/show_bug.cgi?id=22594

But on second thought, perhaps I am simply overlooking something obvious here ?

- John Smith

Hi,

I am wondering if it is currently possible with scan-build, to exclude
certain directories that are part of the build project from the
generated html reports ?

I was waiting for someone to answer to this, hence I didn't answer till now.

If I have to do something like this, I include a simple if-condition in my
checker that somehow tries to get the name of the source file being
monitored; then, the checker proceeds with its analysis only if that source
file is NOT in a directory that I want to exclude from the analysis.

This hack-ish solution will depends on being able to fetch the name of the
source file, which is usually possible. But yeah, I would like to have such
a feature in-built in scan-build too. :slight_smile:

Hi,

But yeah, I would like to have such a feature in-built in scan-build too. :slight_smile:

In that case, perhaps you could add a comment to the bug report
feature request that you would like such a feature as well, so that
the developers can see that there is more than one person that would
find such a feature useful ?

http://llvm.org/bugs/show_bug.cgi?id=22594

Regards,

John Smith.