The fix in r303372 exposed a problem when using Parser::ConsumeToken from client code in DEBUG.
ConsumeToken will assert for all isTokenSpecial() cases, but there is no way to call the proper method.
The isToken methods are just convenient.
Differential D36702
Make Parser::Consume*Token methods public. Needs ReviewPublic Authored by marsupial on Aug 14 2017, 11:15 AM.
Details
Summary The fix in r303372 exposed a problem when using Parser::ConsumeToken from client code in DEBUG. The isToken methods are just convenient.
Diff Detail
Revision Contents
Diff 111036 include/clang/Parse/Parser.h
|