]> granicus.if.org Git - clang/commit
Support diagnostic formatting of keyword tokens
authorAlp Toker <alp@nuanti.com>
Mon, 6 Jan 2014 12:54:18 +0000 (12:54 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 6 Jan 2014 12:54:18 +0000 (12:54 +0000)
commit14e7185bc2a0b7b3aeb1029bc064ac221a63dca5
tree91f4d2ed3a7b59c83118ad1946941680e82ec950
parent7616830a81f643099d796f20529388ec9eab2e19
Support diagnostic formatting of keyword tokens

Implemented with a new getKeywordSpelling() accessor. Unlike getTokenName() the
result of this function is stable and may be used in diagnostic output.

Uses of this feature are split out into the subsequent commit.

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