This is an archive of the discontinued LLVM Phabricator instance.

[clang-repl] Support compound statement as a top-level statement.
ClosedPublic

Authored by v.g.vassilev on Dec 11 2022, 1:12 PM.
Tokens
"Like" token, awarded by UnionType.

Details

Summary

This patch teaches our incremental compilation infrastructure to push and pop a fake function scope making the Parser happy when parsing compound statements as part of a top-leve statement declaration.

Diff Detail

Event Timeline

v.g.vassilev created this revision.Dec 11 2022, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 11 2022, 1:12 PM
UnionType rescinded a token.
UnionType awarded a token.

This seems like a good candidate for a post commit review.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 17 2023, 1:09 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2023, 1:09 AM