]> granicus.if.org Git - clang/commit
[scan-build] Pass through all -f and -O flags, along with -Wwrite-strings.
authorJordan Rose <jordan_rose@apple.com>
Thu, 11 Jul 2013 23:56:12 +0000 (23:56 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 11 Jul 2013 23:56:12 +0000 (23:56 +0000)
commit4aaedf03f5828c6fec07b28e723871ec7ef3ff5a
tree35e619d651f6d9e1ed4d93a49a001c0d968c9e3f
parentfcb5a251e9c0c8c2d54323677d4f2ba5219301d0
[scan-build] Pass through all -f and -O flags, along with -Wwrite-strings.

These flags control language options and user-visible macros, so it's
important to preserve them when analyzing. Rather than try to keep up
with all the -f flags, we'll pass them all through and then ban the ones
we don't want (like -fsyntax-only).

-Wwrite-strings is really an f-flag in disguise: it implies -fconst-strings.

Patch by Keaton Mowry, modified by me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186138 91177308-0d34-0410-b5e6-96231b3b80d8
tools/scan-build/ccc-analyzer