[cfe-dev] exclusion of specified directories from analysis with scan-build

Saheel Godhane srgodhane at ucdavis.edu
Fri Feb 20 12:14:35 PST 2015


On Sun, Feb 15, 2015 at 2:51 AM, John Smith <lbalbalba at gmail.com> wrote:

> 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. :)


>
>
> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150220/558be069/attachment.html>


More information about the cfe-dev mailing list