Indeed. clang supports the poison pragma as well. On Apr 8, 2011, at 4:30 PM, Joerg Sonnenberger wrote:
> On Fri, Apr 08, 2011 at 04:27:25PM -0700, Ted Kremenek wrote: >> Should we perhaps forgo trying to put all this naive checks in >> CheckSecuritySyntaxOnly, and instead focus on trying to do the real >> validation? It seems to me for folks who want to outright ban the use >> of a certain function (which is at the level of what >> CheckSecuritySyntax only is doing) then perhaps we should add compiler >> support for banning family of functions from the command line. > > GCC has the poison pragma for that purpose, it could be used easily e.g. > with -include. > > Joerg > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
