]> granicus.if.org Git - clang/commit
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)
commita0ea5b8f25880fa9f07d9b210afccf5e40271a99
tree96dbb40393674b18629c91d622f27757a934092b
parenta217888b66795e432b938ba7686dd0155d41d335
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>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209966 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/FixIt/format-darwin.m
test/FixIt/format.m
test/Sema/format-strings-enum-fixed-type.cpp
test/Sema/format-strings-enum.c