HomePhabricator

[Sema] add -Walloca to flag uses of `alloca`

Description

[Sema] add -Walloca to flag uses of alloca

This CL adds an optional warning to diagnose uses of the
__builtin_alloca family of functions. The use of these functions is
discouraged by many, so it seems like a good idea to allow clang to warn
about it.

Patch by Elaina Guan!

Differential Revision: https://reviews.llvm.org/D64883

Details

Committed
gbivJul 25 2019, 3:23 PM
Differential Revision
D64883: Add new warning -Walloca for use of builtin alloca function
Parents
rL367066: [Docs] Remove reproducers from the project page.
Branches
Unknown
Tags
Unknown