[cfe-commits] fix attribute nonnull to apply to constructors

Nick Lewycky nlewycky at google.com
Thu Mar 24 18:32:23 PDT 2011


We implement __attribute__((nonnull)), but only test for it on CallExpr
nodes. When calling a constructor, the AST only has a CXXConstructorExpr
with no CallExpr, so the warning doesn't fire. This patch adds the same test
that CallExpr uses to CXXConstructorExpr.

Please review!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110324/bac7db0c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctor-nonnull.patch
Type: text/x-patch
Size: 3618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110324/bac7db0c/attachment.bin>


More information about the cfe-commits mailing list