[Sema] Create a separate group for incompatible function pointer warning
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 18 Jul 2016 20:37:06 +0000 (20:37 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 18 Jul 2016 20:37:06 +0000 (20:37 +0000)
commitd9b7dfe4a4dffed4455fbfcc1cc7b52b63895174
tree6bfc7d07c74b549282f389314fbf0a032002d095
parent320a5a615bc389ae2256fd76bcff31c4475270ec
[Sema] Create a separate group for incompatible function pointer warning

Give incompatible function pointer warning its own diagnostic group
but still leave it as a subgroup of incompatible-pointer-types. This is in
preparation to promote -Wincompatible-function-pointer-types to error on
darwin.

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

rdar://problem/12907612

llvm-svn: 275907
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/incompatible-function-pointer-types.c [new file with mode: 0644]
clang/test/Sema/initialize-noreturn.c
clang/test/Sema/overloadable.c