This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Improve -Wstrict-prototypes diagnostic message for blocks
ClosedPublic

Authored by ahatanak on May 31 2017, 1:50 PM.

Details

Summary

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

Diff Detail

Repository
rL LLVM

Event Timeline

ahatanak created this revision.May 31 2017, 1:50 PM
dexonsmith accepted this revision.Jun 1 2017, 9:53 AM
dexonsmith added a subscriber: dexonsmith.

LGTM.

This revision is now accepted and ready to land.Jun 1 2017, 9:53 AM
This revision was automatically updated to reflect the committed changes.