[PATCH] D14274: Add alloc_size attribute to clang

George Burgess IV via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 8 11:42:36 PST 2016


george.burgess.iv updated this revision to Diff 77222.
george.burgess.iv added a comment.

Rebased and made the `__builtin_object_size` code a tiny bit cleaner.

The blocks bugfix I mentioned will be up as a separate review in a few minutes. :)


https://reviews.llvm.org/D14274

Files:
  include/clang/Basic/Attr.td
  include/clang/Basic/AttrDocs.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/AST/ExprConstant.cpp
  lib/CodeGen/CGCall.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/CodeGen/alloc-size.c
  test/CodeGenCXX/alloc-size.cpp
  test/CodeGenCXX/global-init.cpp
  test/Sema/alloc-size.c
  test/SemaCXX/constant-expression-cxx11.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14274.77222.patch
Type: text/x-patch
Size: 63875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161108/9a77880b/attachment-0001.bin>


More information about the cfe-commits mailing list