[all-commits] [llvm/llvm-project] 159073: [clang-repl] Support compound statement as a top-l...

Vassil Vassilev via All-commits all-commits at lists.llvm.org
Fri Feb 17 01:09:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 159073bc0a873b9aa2bc559a8ceba970b049cda2
      https://github.com/llvm/llvm-project/commit/159073bc0a873b9aa2bc559a8ceba970b049cda2
  Author: Vassil Vassilev <v.g.vassilev at gmail.com>
  Date:   2023-02-17 (Fri, 17 Feb 2023)

  Changed paths:
    M clang/lib/Parse/ParseDecl.cpp
    M clang/test/Interpreter/execute-stmts.cpp

  Log Message:
  -----------
  [clang-repl] Support compound statement as a top-level statement.

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.

Differential revision: https://reviews.llvm.org/D139798




More information about the All-commits mailing list