HomePhabricator

Consume unexpected "template" keywords after "using"

Authored by rtrieu on May 1 2019, 4:33 PM.

Description

Consume unexpected "template" keywords after "using"

The parser was dealing with unexpected "template" keywords after "using"
keywords too late and putting the parser into the wrong state, which could
lead to a crash down the line. This change allows the parser to consume the
bad "template" keywords earlier, and continue parsing as if "template" was
never there to begin with for better error recovery.

llvm-svn: 359740

Details

Committed
rtrieuMay 1 2019, 4:33 PM
Parents
rGd5c04860c1aa: Revert r359717, "Make check-clang depend on the clang-check binary always"
Branches
Unknown
Tags
Unknown