]> granicus.if.org Git - clang/commit
Issue warning for trivial cases of nonnull attributes
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 27 Sep 2010 19:05:51 +0000 (19:05 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 27 Sep 2010 19:05:51 +0000 (19:05 +0000)
commit60acea49c1343e5494edb6da20cac6f9d0b6cfb0
tree6a8b88bda5ae354cefeb603229bedd89b1168332
parentdb148be93c9af45da1f3aa9302c577618a56e6ea
Issue warning for trivial cases of nonnull attributes
(on functions with no pointer arguments) but only when
the attribute has not been coming from a macro
instantiation in a header file. Fixes first part
of radar 6857843.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114860 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/SemaObjC/nonnull.h [new file with mode: 0644]
test/SemaObjC/nonnull.m