]> granicus.if.org Git - clang/commit
Implement isCXX11FinalKeyword() in terms of isCXX11VirtSpecifier()
authorAlp Toker <alp@nuanti.com>
Thu, 9 Jan 2014 00:13:52 +0000 (00:13 +0000)
committerAlp Toker <alp@nuanti.com>
Thu, 9 Jan 2014 00:13:52 +0000 (00:13 +0000)
commitf58822d3b88a6af2d2f27f5e5cbf1ecab02552f2
tree02ee9d9b39cb661ff1f9110a5bb4c8db62c09b2d
parent4b0a4ee507a112fb77554b828c4fe4e14f19d13d
Implement isCXX11FinalKeyword() in terms of isCXX11VirtSpecifier()

It's not worth keeping two copies of the identifier init and comparison code
just to save a pointer coparison.

This should reduce further once we get proper contextual keywords in the token
stream, so having the identifier checks in one place is a step towards that.

Cleanup only.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198814 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDeclCXX.cpp