[PATCH] D113752: [Parse] Use empty RecoveryExpr when if/while/do/switch conditions fail to parse
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 12 04:03:48 PST 2021
sammccall created this revision.
sammccall added a reviewer: hokein.
Herald added a subscriber: jdoerfert.
sammccall requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This allows the body to be parsed.
An special-case that would replace a missing if condition with OpaqueValueExpr
was removed as it's now redundant (unless recovery-expr is disabled).
For loops are not handled at this point, as the parsing is more complicated.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 17425 bytes
Desc: not available
More information about the cfe-commits