aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-01-23 20:02:51 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-01-23 20:02:51 +0000
commit6c926ccbd2bde8cd014301a1f54811292bb39390 (patch)
tree8a19a4d620a3f7b01dec6ee083c6fec6b246d725 /clang/lib/Frontend/CompilerInvocation.cpp
parent49544b36f723f71ae9f8d9accd7c196c64c04caa (diff)
downloadllvm-6c926ccbd2bde8cd014301a1f54811292bb39390.zip
llvm-6c926ccbd2bde8cd014301a1f54811292bb39390.tar.gz
llvm-6c926ccbd2bde8cd014301a1f54811292bb39390.tar.bz2
Implement -Wvla correctly
GCC implements -Wvla as "warn on every VLA" (this is useful to find every VLA, for example, if they are forbidden by coding guidelines). Currently Clang implements -Wvla as "warn on VLA when it is an extension". The attached patch makes our behavior match GCC. The existing vla extwarn is moved under -Wvla-extension and is still included into -Wgnu. This fixes PR5953. llvm-svn: 173286
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions