From patchwork Tue Feb 21 12:01:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 60054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1844350wrn; Tue, 21 Feb 2023 04:54:27 -0800 (PST) X-Google-Smtp-Source: AK7set+IEEeYeFjqVl0eBIEQYcQFeVUEEDGQuFs8N6lg1R+TyLSBO0jrL38fuJJicJiUWxoz7QlC X-Received: by 2002:aa7:d647:0:b0:4ab:4289:e9f8 with SMTP id v7-20020aa7d647000000b004ab4289e9f8mr2895932edr.3.1676984067828; Tue, 21 Feb 2023 04:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676984067; cv=none; d=google.com; s=arc-20160816; b=hm2HHrQHQk/xn4IssoTEoIFO04SQ1fANi345cT0I50I/vAw1uKM82gu/b3vJc8X6Nf FIaoFLpg0s3wFOPGEIcrZu/kGw16dKJpUI/Xl/ynOELcJFuJZcAizqAAiI+j2jUfcJ19 e4A6a6bzbkCbdQLQEkdkAl3wwOukSDV8B4Iu3jv9nCYr+ehzlPN1GTo21JNvnRJqj3Zb 7ZhB4C7RbDTpehS8PkA9u/2w35ZUmeZl2+PTlt7GJJ9YaX4OajHE0gr6wWysIOY3AoLb pbS7yKtmdLPznV6IeUmbAWXQGGNQkZpr1Kvdnc9QPC1/3VAGt9/nLZURvpM/OnyCVgmg 6Kaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=gaLVuN1YavFfnLN4s9PtvKeadkoquklPIThye7oU5FQ=; b=XJ19GIzX8r0pvO+HIk3z4yHXmyoRftupTgFjFza2p7OdKVVzxxvBlZr/dGhkeXVW80 0KgZWKC9YubK2gi/m1Y28fJWVB+I3wSOx05JVDvGAGc4R8nrwI0I8vEZnVFKnxxEqAiA MJRu9yk1stMaepQdeLL8VtpXoFfCTUrnSxGXgVyJy9VTmiTX+qGN3CLibhg/Hox31WYm l2Em2mGQwSgurFAN3myRJWSOhKgAF6h+1rBEKhUjvXsDt3xehqrzqPxy8GjU/R6OIe/J GFDFJA0a3ckEddrSMYVxa9ZkS/1geAxP5Ja76e8uUZu0hdkx8x8E89FBGmXN7MrUU1e0 7kNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=b724jekW; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c17-20020a056402121100b004ab4c4532b4si3977257edw.148.2023.02.21.04.54.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:54:27 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=b724jekW; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 733EF39087CC for ; Tue, 21 Feb 2023 12:18:44 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id D58BC384692F for ; Tue, 21 Feb 2023 12:04:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D58BC384692F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x42c.google.com with SMTP id bo30so3603614wrb.0 for ; Tue, 21 Feb 2023 04:04:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=gaLVuN1YavFfnLN4s9PtvKeadkoquklPIThye7oU5FQ=; b=b724jekWZ//1iVh14MzYTml97MQt5TqmodZPSvI2MhKGIojLrAV8NRqtB1uJZWYThm DHDETXT+aMJ+TP44LSoBM+zGuGnXG+6G0uX822eRkFLcwjYP6OTTTg31c3hJKiHSbPJI FT6oCao0a9jp93uQRsEMdric3m68zGkD/azcVS5QDTVhqzTsh8lCKZZu5RAr8HR4mE2t 4D/42v/ebhJY/O1Lb0bGTNtMWZ6pn/oteQY5wTFkAyLj/mW3QF2zHPXmCDKKAfQoznYi YZ5qDQqvbFx9bemc0iQpvsQhSxkYV+gOjawU4p+Fq8S05P2rfksGHevGsSp0so/4fOCr inJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gaLVuN1YavFfnLN4s9PtvKeadkoquklPIThye7oU5FQ=; b=Are8zQxIUtBqfwkJQt+OeN/dUjIDHU0S0t1rL9vRpNQtHHYzNeipTWcYmZeVyB7Rj0 JJEHfoe7ggat7T8g8Pa+c0711A3LDCHA83rP/o0cdSaQHkHHa6KtIBz2HWHRl4OGcHj4 6gWDdRmiXkRhUaeujLUxNW6pbJufVaoTwdjklqfI7IJM71M5dqkdOCUm3aC6AxmZ1rHQ IXalEoeJr7oa8wT/9oodA/GLcIyNOJ+c4WWsPEyro2wcdqA1u0p+28PUOiP7iHFTLMSd ykFs9P/3dXAgp+2dic6beqa9ZiL19ohSv6IdwryWQvqJZWkcVkJtC8pOoKq3qDtTgqhH QHEw== X-Gm-Message-State: AO0yUKXVHzG1EAZH0Y9VJtt5KMH+tK4cpiDXM7vYuRx50HIFNZcj8oUY 6Wx4xwuJxk0IwxlT8hReL4bHTsvxhg9hxp1Fyw== X-Received: by 2002:adf:cf06:0:b0:2bf:d285:b787 with SMTP id o6-20020adfcf06000000b002bfd285b787mr3490301wrj.56.1676981058259; Tue, 21 Feb 2023 04:04:18 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm5013811wrs.4.2023.02.21.04.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:17 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak Subject: [committed 067/103] gccrs: ast: refer correctly to arguments in docs-strings Date: Tue, 21 Feb 2023 13:01:57 +0100 Message-Id: <20230221120230.596966-68-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221120230.596966-1-arthur.cohen@embecosm.com> References: <20230221120230.596966-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758445246037362481?= X-GMAIL-MSGID: =?utf-8?q?1758445246037362481?= From: Jakub Dupak gcc/rust/ChangeLog: * ast/rust-ast-dump.h: Fix documentation. Signed-off-by: Jakub Dupak --- gcc/rust/ast/rust-ast-dump.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/rust/ast/rust-ast-dump.h b/gcc/rust/ast/rust-ast-dump.h index 7a8058b195e..13c92123ea9 100644 --- a/gcc/rust/ast/rust-ast-dump.h +++ b/gcc/rust/ast/rust-ast-dump.h @@ -81,7 +81,7 @@ private: template void visit (std::unique_ptr &node); /** - * Visit all items in given collection, placing the separator in between but + * Visit all items in given @collection, placing the separator in between but * not at the end. * Start and end offset allow to visit only a "slice" from the collection. */ @@ -99,7 +99,7 @@ private: void visit_as_line (T &item, const std::string &trailing = ""); /** - * Visit each item in a collection "as line". + * Visit each item in @collection "as line". * * @see visit_as_line */ @@ -107,7 +107,7 @@ private: void visit_items_as_lines (T &collection, const std::string &trailing = ""); /** - * Visit each item in collection as lines inside a block delimited by braces + * Visit each item in @collection as lines inside a block delimited by braces * with increased indentation. Also includes special handling for empty * collection to print only the delimiters with no new line inside. */