]> granicus.if.org Git - clang/commit
The returns_nonnull attribute does not require a function prototype because it affect...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 11 Jul 2014 16:31:29 +0000 (16:31 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 11 Jul 2014 16:31:29 +0000 (16:31 +0000)
commite6d998b1ddec7e712928c48ab112987fa2357561
treef99d7ee8d36786a47b92abaf3aaaeb1915533260
parenta3953a1c0a76bd59928273a8bb9493b7c085ab87
The returns_nonnull attribute does not require a function prototype because it affects only the return value, not any arguments. In turn, asking for a function or method result type should not require a function prototype either, so getFunctionOrMethodResultType has been relaxed.

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