diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-23 20:02:51 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-23 20:02:51 +0000 |
commit | 6c926ccbd2bde8cd014301a1f54811292bb39390 (patch) | |
tree | 8a19a4d620a3f7b01dec6ee083c6fec6b246d725 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 49544b36f723f71ae9f8d9accd7c196c64c04caa (diff) | |
download | llvm-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