[PATCH] [scan-build] Add an option to skip overriding CC and CXX make vars

2018-01-14 Thread Paul Fertser via cfe-commits
Autoconf and some other systems tend to add essential compilation options to CC (e.g. -std=gnu99). When running such an auto-generated makefile, scan-build does not need to change CC and CXX as they are already set to use ccc-analyzer by a configure script. Implement a new option --keep-cc as was

[PATCH] [analyzer] Fix -x language argument for C preprocessed sources

2018-01-14 Thread Paul Fertser via cfe-commits
clang's -x option doesn't accept c-cpp-output as a language (even though 463eb6ab was merged, the driver still doesn't handle that). This bug prevents testing C language projects when ccache is used. Fixes #25851. Investigation and patch by Dave Rigby. --- tools/scan-build/libexec/ccc-analyzer

[PATCH] [scan-build] Mention --keep-cc in the HTML documentation

2018-01-15 Thread Paul Fertser via cfe-commits
--- Feel free to squash this into the keep-cc introduction commit if appropriate. www/analyzer/scan-build.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/analyzer/scan-build.html b/www/analyzer/scan-build.html index b16f6bb..83efea9 100644 --- a/www/analyzer/scan-bui

Re: [PATCH] [scan-build] Add an option to skip overriding CC and CXX make vars

2018-01-19 Thread Paul Fertser via cfe-commits
Hello Jonathan, On Mon, Jan 15, 2018 at 08:36:03AM -0700, Jonathan Roelofs wrote: > LGTM. Would you like me to commit it for you? Yes, please, commit this patch with my next html documentation patch squashed into it, and also please commit the ccc-analyzer patch and close the related ticket as I