]> granicus.if.org Git - clang/commit
alloc_size attribute: there's nothing wrong with alloc_size(1,1). It just means the...
authorNuno Lopes <nunoplopes@sapo.pt>
Mon, 18 Jun 2012 16:27:56 +0000 (16:27 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Mon, 18 Jun 2012 16:27:56 +0000 (16:27 +0000)
commit96c67d1c2aff532729c9edb297617094d1e77cc1
treebd02aba33226058fdfd0452aebece24c07504801
parent93f95f2a2cbb6bb3d17bfb5fc74ce1cccea751b6
alloc_size attribute: there's nothing wrong with alloc_size(1,1). It just means the function allocates x^2 bytes. GCC also accepts this syntax

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158662 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/Sema/alloc_size.c