Lines Matching +full:scan +full:- +full:build
1 scan-build chapter
4 A package designed to wrap a build so that all calls to gcc/clang are
6 the clang static analyzer. Includes intercept-build tool, which logs
7 the build, as well as scan-build tool, which logs the build and runs
11 -----------
15 - It has been tested on FreeBSD, GNU/Linux and OS X.
16 - Prepared to work on windows, but need help to make it.
20 -------------
26 ----------
30 $ scan-build <your build command>
34 $ intercept-build <your build command>
39 $ analyze-build
41 Use `--help` to know more about the commands.
45 -----------
47 Generally speaking, the `intercept-build` and `analyze-build` tools together
48 does the same job as `scan-build` does. So, you can expect the same output
49 from this line as simple `scan-build` would do:
51 $ intercept-build <your build command> && analyze-build
53 The major difference is how and when the analyzer is run. The `scan-build`
58 This is the default behaviour, can be enforced with `--override-compiler`
61 2. Use special library to intercept compiler calls durring the build process.
62 The analyzer run against each modules after the build finished.
63 Use `--intercept-first` flag to get this model.
65 3. Use compiler wrappers to intercept compiler calls durring the build process.
66 The analyzer run against each modules after the build finished.
67 Use `--intercept-first` and `--override-compiler` flags together to get
70 The 1. and 3. are using compiler wrappers, which works only if the build
71 process respects the `CC` and `CXX` environment variables. (Some build
73 you need to pass the compiler wrappers manually. eg.: `intercept-build
74 --override-compiler make CC=intercept-cc CXX=intercept-c++ all` where the
75 original build command would have been `make all` only.)
77 The 1. runs the analyzer right after the real compilation. So, if the build
89 `intercept-build` command uses only the 2. and 3. mode to generate the
90 compilation database. `analyze-build` does only run the analyzer against the
95 --------------
99 variables might not work. (I don't know any build tool which does that, but
104 ---------------
113 -------
119 [2]: https://pypi.python.org/pypi/scan-build