]> granicus.if.org Git - clang/commit
-Wdocumentation should not check the @returns command for Objective-C
authorAlex Lorenz <arphaman@gmail.com>
Wed, 26 Apr 2017 13:09:28 +0000 (13:09 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 26 Apr 2017 13:09:28 +0000 (13:09 +0000)
commit140708f7fdecfc29db3cb8d44fb28f7c37f290d5
tree71a4a065414e039a23172be1b51aac3f3f969f9f
parent86ab1dc77f2361290a39c03a22d411209b3add17
-Wdocumentation should not check the @returns command for Objective-C
function/block pointer properties

The commit r300981 allowed @param/@return commands for function/block
pointer property declarations. This meant that -Wdocumentation started warning
about @return that was used to document properties whose function/block type
returned void. However, prior to that commit, we allowed @return for all
property declarations, because it can be used to document the value that's
returned by the property getter. This commit restores the previous behaviour:
now the @return command can be used to document all properties without warnings.

rdar://24978538

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301402 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/CommentSema.cpp
test/Sema/warn-documentation.m