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
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 5 additions, 4 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaChecking.cpp 18 additions, 11 deletionslib/Sema/SemaChecking.cpp
- test/FixIt/format-darwin.m 29 additions, 5 deletionstest/FixIt/format-darwin.m
- test/FixIt/format.m 28 additions, 2 deletionstest/FixIt/format.m
- test/Sema/format-strings-enum-fixed-type.cpp 9 additions, 9 deletionstest/Sema/format-strings-enum-fixed-type.cpp
- test/Sema/format-strings-enum.c 2 additions, 2 deletionstest/Sema/format-strings-enum.c
Loading
Please register or sign in to comment