HomePhabricator

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

Authored by george.burgess.iv on Jul 25 2019, 3:23 PM.

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

llvm-svn: 367067

Details