Format strings: check against an enum's underlying type.
authorJordan Rose <jordan_rose@apple.com>
Sat, 31 May 2014 04:12:14 +0000 (04:12 +0000)
committerJordan Rose <jordan_rose@apple.com>
Sat, 31 May 2014 04:12:14 +0000 (04:12 +0000)
commitbc53ed1ee6241b58c52768546d39897e62e7a7b7
treeb1c8afbbddc2d6330ac43e10af57185758003ae3
parentb0a8b4ac5ff6802b22311ae895257b95693eb902
Format strings: check against an enum's underlying type.

This allows us to be more careful when dealing with enums whose fixed
underlying type requires special handling in a format string, like
NSInteger.

A refinement of r163266 from a year and a half ago, which added the
special handling for NSInteger and friends in the first place.

<rdar://problem/16616623>

llvm-svn: 209966
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp
clang/test/FixIt/format-darwin.m
clang/test/FixIt/format.m
clang/test/Sema/format-strings-enum-fixed-type.cpp
clang/test/Sema/format-strings-enum.c