]> granicus.if.org Git - clang/commit
Wire up basic parser/sema support for attribute 'returns_nonnull'.
authorTed Kremenek <kremenek@apple.com>
Mon, 20 Jan 2014 05:50:47 +0000 (05:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 20 Jan 2014 05:50:47 +0000 (05:50 +0000)
commit6ff751e7df135f689e1d19af6bd5d9f1e27e1bbc
tree2cd27be14b10d5db2d55b205dee6a5b66fd9125f
parentcc118c86a6e1b4eb714125ffc0c7d3883285bc27
Wire up basic parser/sema support for attribute 'returns_nonnull'.

This attribute is supported by GCC.  More generally it should
probably be a type attribute, but this behavior matches 'nonnull'.

This patch does not include warning logic for checking if a null
value is returned from a function annotated with this attribute.
That will come in subsequent patches.

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