summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-09-04 22:50:31 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-09-04 22:50:31 +0000
commite9813b386cb3012d11006cf7d3b2019688a5f502 (patch)
treec96a9fafc4d35b88ee4b2068181082bfc3b6cd72 /lib/CodeGen/CodeGenFunction.cpp
parent4afe57965e19d9c9ba8070ac9901ed8a20e20fce (diff)
downloadclang-e9813b386cb3012d11006cf7d3b2019688a5f502.tar.gz
clang-e9813b386cb3012d11006cf7d3b2019688a5f502.tar.bz2
clang-e9813b386cb3012d11006cf7d3b2019688a5f502.tar.xz
Tweak implementation of -Wwrite-strings to better match the behavior of current GCCs:
* In C, as before, if the "warning flag" is enabled, warnings are produced by forcing string literals to have const-qualified types (the produced warnings are *not* -Wwrite-strings warnings). However, more recent GCCs (at least 4.4 onwards) now take -w into account here, so we now do the same. * In C++, this flag is entirely sane: it behaves just like any other warning flag. Stop triggering -fconst-strings here. This is a bit cleaner, but there's no real functionality change except in the case where -Xclang -fno-const-strings is also specified. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions