]> granicus.if.org Git - clang/commit
Correct underlying integer type of enum TokenKind
authorAlp Toker <alp@nuanti.com>
Mon, 6 Jan 2014 12:54:51 +0000 (12:54 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 6 Jan 2014 12:54:51 +0000 (12:54 +0000)
commitb8951e782399c301c6cedff8c8d7a3aecf968368
treed98f6e1eda44ef0cdaec7224f2677073f54eff6d
parente669b01ab1c03039c6b142813d5b26a0356b0f52
Correct underlying integer type of enum TokenKind

This matches up the underlying type against the actual storage type 'unsigned
short' and lets us get rid of some casts while we're at it.

Effort is made to keep this building in pre-C++11 but as with other features
Token will be less efficiently packed in in legacy configurations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198607 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h
include/clang/Basic/TokenKinds.h
include/clang/Lex/Token.h