]> granicus.if.org Git - clang/commit
When parsing an identifier as an expression in C++, only try to annotate it
authorJohn McCall <rjmccall@apple.com>
Thu, 7 Jan 2010 19:29:58 +0000 (19:29 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 7 Jan 2010 19:29:58 +0000 (19:29 +0000)
commitb67270724f3924ab7ffbc05ebbe06f83c3fed7e4
tree9f55f1d2b7fe96d0387488b4edd3c98277de79d1
parent408a304afe244265187b84268ccb213b8375a9df
When parsing an identifier as an expression in C++, only try to annotate it
as a type or scope token if the next token requires it.

This eliminates a lot of redundant lookups in C++, but there's room for
improvement;  a better solution would do a single lookup whose kind and
results would be passed through the parser.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92930 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseExpr.cpp
test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp