]> granicus.if.org Git - clang/commit
[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)
commit7dd928f7e77e495f99a75faa0b7e2015f74b781a
treef85421f623fdf98a309ed54dac28b92e49b28a24
parent1385a79dc5abd42b07298c7b9c91fbfdda43ab93
[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

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