[Wdocumentation] fixes an assertion failure with typedefed function and block pointer
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 2 Sep 2019 18:24:33 +0000 (18:24 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 2 Sep 2019 18:24:33 +0000 (18:24 +0000)
commitd94b42f4228ee8647fa20111ffa996535ee5de67
treea3cb3ec3a2877f8a0d4fb0d7c86e69ce604dca06
parenta95ec59fa5e297eedfd073a4722c8c5be86a3e5d
[Wdocumentation] fixes an assertion failure with typedefed function and block pointer

Summary:
The assertion happens when compiling with -Wdocumentation with variable declaration to a typedefed function pointer. I not too familiar with the ObjC syntax but first two tests assert without this patch.

Fixes https://bugs.llvm.org/show_bug.cgi?id=42844

Reviewers: gribozavr

Reviewed By: gribozavr

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66706

llvm-svn: 370677
clang/lib/AST/CommentSema.cpp
clang/test/Sema/warn-documentation.cpp
clang/test/Sema/warn-documentation.m