llvm-project/clang/tools/scan-build
Sylvestre Ledru ae48d78054 scan-build: Add support of the option --exclude like in scan-build-py
Summary:
To exclude thirdparty code.

To test:
With /tmp/foo.c
  
```
void test() {
    int x;
    x = 1; // warn
}  
```

```
$ scan-build --exclude non-existing/  --exclude /tmp/ -v gcc -c foo.c                                                                                                                                                                                   

scan-build: Using '/usr/lib/llvm-7/bin/clang' for static analysis
scan-build: Emitting reports for this run to '/tmp/scan-build-2018-09-16-214531-8410-1'.
foo.c:3:3: warning: Value stored to 'x' is never read
  x = 1; // warn
  ^   ~
1 warning generated.
scan-build: File '/tmp/foo.c' deleted: part of an ignored directory.
scan-build: 0 bugs found.
```

Reviewers: jroelofs

Reviewed By: jroelofs

Subscribers: whisperity, cfe-commits

Differential Revision: https://reviews.llvm.org/D52153

llvm-svn: 342359
2018-09-17 06:31:46 +00:00
..
bin scan-build: Add support of the option --exclude like in scan-build-py 2018-09-17 06:31:46 +00:00
libexec [analyzer] Remove traces of ubigraph visualization 2018-09-06 23:07:47 +00:00
man Fix typos in clang 2018-04-06 15:14:32 +00:00
share/scan-build
CMakeLists.txt Actually install scan-build / ccc-analyzer / c++-analyzer on windows 2017-03-22 21:13:49 +00:00