From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 0D359385735F; Mon, 29 Aug 2022 15:36:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D359385735F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661787372; bh=uOy7fTP37wtd79bVQfkMLBBJH1+cAcI3occDCAhd4tc=; h=From:To:Subject:Date:From; b=oISF43tst6bPmRdnQEOmTFWZiYYUyKD/vIVpZjSC6Pg4aDrLep/RvCTsz9VTd9BRi vktrPz7gLIbiGTRlEMOeZfiUCG0+Fk+oGNz8wMMm3482xwRHEk0sWtP7cjRtKnS4SE ldweIMD2RGW0hNxizZLDJ/+uakiSAJZk4yZURBLg= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] Merge #1473 X-Act-Checkin: gcc X-Git-Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: d3cf195ab46d7effe806990aa6b7a409bf8e46df X-Git-Newrev: 5b3c4be73fb72cb87d9a135415ed421a0808ff3b Message-Id: <20220829153612.0D359385735F@sourceware.org> Date: Mon, 29 Aug 2022 15:36:12 +0000 (GMT) List-Id: https://gcc.gnu.org/g:5b3c4be73fb72cb87d9a135415ed421a0808ff3b commit 5b3c4be73fb72cb87d9a135415ed421a0808ff3b Merge: d3cf195ab46 a9055d8294f Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Thu Aug 25 14:03:30 2022 +0000 Merge #1473 1473: Improve AST dump r=CohenArthur a=CohenArthur Let's abuse C++ a little bit to make dumping and the chaining of dumping operations easier. If anyone has input feel free, this is definitely a roundabout way to go about it. This also adds pretty printing of the expanded AST, which can be useful to debug macros or `cfg` invocations Co-authored-by: Arthur Cohen Diff: gcc/rust/ast/rust-ast-dump.cc | 96 ++++++++++++++++++++++++++-------------- gcc/rust/ast/rust-ast-dump.h | 6 +++ gcc/rust/rust-session-manager.cc | 10 ++++- gcc/rust/rust-session-manager.h | 2 +- 4 files changed, 79 insertions(+), 35 deletions(-)