[PATCH] D137343: [clang] add -Wvla-stack-allocation
Tao Liang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 17 18:38:07 PST 2022
Origami404 updated this revision to Diff 483796.
Origami404 added a comment.
[clang] add -Wvla-stack-allocation and divide different VLA warning
New behaviors:
-Wvla-stack-allocation
warns on use of a VLA that involves a stack allocation
-Wvla-portability
warns on any use of a VM type, even if -Wvla-stack-allocation is
given.
-Wvla
groups together -Wvla-stack-allocation and -Wvla-portability
Fixes: https://github.com/llvm/llvm-project/issues/57098
Link: https://reviews.llvm.org/D132952
Co-authored-by: YingChi Long <me at inclyc.cn>
Differential Revision: https://reviews.llvm.org/D137343
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137343/new/
https://reviews.llvm.org/D137343
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaType.cpp
clang/test/C/drs/dr3xx.c
clang/test/Sema/cast.c
clang/test/Sema/warn-vla.c
clang/test/SemaCXX/warn-vla.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137343.483796.patch
Type: text/x-patch
Size: 9710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221218/3bf53106/attachment.bin>
More information about the cfe-commits
mailing list