]> granicus.if.org Git - clang/commit
When disambiguating an expression-statement from a declaraton-statement, if the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 Aug 2012 20:19:14 +0000 (20:19 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 Aug 2012 20:19:14 +0000 (20:19 +0000)
commit40b2e19cae6ab85407856c70f76278f9efbeeb7c
tree33b64a284db290fe463964aaccecf55beff1026c
parent42b60551eff3a424e191b293bfd606559dc96bff
When disambiguating an expression-statement from a declaraton-statement, if the
statement starts with an identifier for which name lookup will fail either way,
look at later tokens to disambiguate in order to improve error recovery.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162464 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseTentative.cpp
test/CXX/class.access/class.friend/p1.cpp
test/Modules/module-private.cpp
test/Parser/cxx-ambig-decl-expr.cpp
test/SemaObjCXX/category-lookup.mm