Add warning flag -Wordered-compare-function-pointers.
authorEli Friedman <efriedma@codeaurora.org>
Sat, 5 May 2018 00:09:51 +0000 (00:09 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Sat, 5 May 2018 00:09:51 +0000 (00:09 +0000)
commitb6e64e734d80723c7e7c5b8e77f4b4a2d0a4c9e6
treee5245e732e925e3fb5b4a25ad4083000ca9bf2ba
parentb77ab0966e2d87531df714b8e944ddad4d61852e
Add warning flag -Wordered-compare-function-pointers.

The C standard doesn't allow comparisons like "f1 < f2" (where f1 and f2
are function pointers), but we allow them as an extension.  Add a
warning flag to control this warning.

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

llvm-svn: 331570
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/Misc/warning-flags.c