]> granicus.if.org Git - clang/commit
Lex: Use the correct types for MS integer suffixes
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 21 Jun 2014 00:51:59 +0000 (00:51 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 21 Jun 2014 00:51:59 +0000 (00:51 +0000)
commitd31bc8bc756b3734c79e3748627938ce25b8f30c
tree0309589e50c8abaaff23ec660c1f1f64e672438c
parentaf8926dfabf5db60a835151221a974cd8a39cb5c
Lex: Use the correct types for MS integer suffixes

We didn't properly implement support for the sized integer suffixes.
Suffixes like i16 were essentially ignored instead of mapping them to
the appropriately sized integer type.

This fixes PR20008.

Differential Revision: http://reviews.llvm.org/D4132

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211426 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/LiteralSupport.h
lib/AST/StmtPrinter.cpp
lib/Lex/LiteralSupport.cpp
lib/Sema/SemaExpr.cpp
test/SemaCXX/ms_integer_suffix.cpp [new file with mode: 0644]
unittests/AST/StmtPrinterTest.cpp