summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/format-strings-enum.c
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Don't crash on scanf on forward-declared enums.Benjamin Kramer2016-08-201-0/+16
| | | | | | | | This is valid in GNU C, which allows pointers to incomplete enums. GCC just pretends that the underlying type is 'int' in those cases, follow that behavior. llvm-svn: 279374
* Format strings: check against an enum's underlying type.Jordan Rose2014-05-311-2/+2
| | | | | | | | | | | | | 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
* Teach printf/scanf about enums with fixed underlying types.Jordan Rose2012-06-041-0/+36
llvm-svn: 157961
OpenPOWER on IntegriCloud