[PATCH] D33739: [Sema] Improve -Wstrict-prototypes diagnostic message for blocks
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 31 13:50:38 PDT 2017
ahatanak created this revision.
Currently, clang prints the same warning message "this function declaration is not a prototype" for non-prototype declarations of blocks and normal functions. This commit makes changes needed to print a more accurate warning "this block declaration is not a prototype" when the declaration is a block.
rdar://problem/32461723
https://reviews.llvm.org/D33739
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaType.cpp
test/Sema/warn-strict-prototypes.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33739.100916.patch
Type: text/x-patch
Size: 5297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170531/e7ad74b9/attachment-0001.bin>
More information about the cfe-commits
mailing list