[PATCH] D30806: [nonnull] Teach Clang to attach the nonnull LLVM attribute to declarations and calls instead of just definitions, and then teach it to *not* attach such attributes even if the source code contains them.

Chandler Carruth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 10 01:35:51 PST 2017


chandlerc updated this revision to Diff 91286.
chandlerc added a comment.

Update to fix subtle bugs in handling arguments. Thanks to David for the review
comments that caused me to see the issue here.


https://reviews.llvm.org/D30806

Files:
  include/clang/AST/ASTContext.h
  include/clang/Basic/Builtins.def
  lib/AST/ASTContext.cpp
  lib/CodeGen/CGBuiltin.cpp
  lib/CodeGen/CGCall.cpp
  lib/Sema/SemaChecking.cpp
  test/CodeGen/nonnull.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30806.91286.patch
Type: text/x-patch
Size: 22309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170310/cc96e6e4/attachment-0001.bin>


More information about the cfe-commits mailing list