[AST] Look through attribute type locs when searching for function type
authorAlex Lorenz <arphaman@gmail.com>
Wed, 26 Apr 2017 12:46:27 +0000 (12:46 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 26 Apr 2017 12:46:27 +0000 (12:46 +0000)
commit6246cc6c0ebbb95eb74ffdbc2004b7d0f83c74da
treec2d32904ff938cfcd4d6e96236d4f370dfef2cee
parentad06391ca98085a5245ac2fec6cccae23d3a1089
[AST] Look through attribute type locs when searching for function type
loc

Prior to this commit -Wdocumentation crashed when checking the @returns command
for declarations whose function/block pointer type included an attribute like
_Nullable.

rdar://31818195

llvm-svn: 301400
clang/lib/AST/Comment.cpp
clang/test/Sema/warn-documentation.m