From patchwork Thu Aug 1 00:50:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 94918 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67921385B50D for ; Thu, 1 Aug 2024 00:51:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 8AC80385DDD4 for ; Thu, 1 Aug 2024 00:50:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8AC80385DDD4 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8AC80385DDD4 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722473451; cv=none; b=UT7kRbmXEO9udsofLjNg5egytxNWuae/gd81Zr633X0usssk5oVu3KaIy0QztVSmvpUsKkedUvwgnJq+4QIdReb4NZLOHY9x6fcgjTanyf5MPik1zEWOzMIRllPd17fz3G8xCLZ7SGLLGqteXjlcyoX6rjOja/1YCjsnX8nJBT8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722473451; c=relaxed/simple; bh=E9S0BtfeNxpzKcG7xUKo2+N7uIRIF0FPENYgdzZimf8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=nZ4OtgRFZTcFl5+WxDBkVqFDefvXvWc3BTk5U/LIjfKitVf2AyoFXehzGLXr9sk+QDp5HVxT42eZfv7wNXq1ZwlKKfTY64yMQOGW9AkQ9vzXaN5VvLFRLfBnqoeiswIQ/1KNVhq+IMJdCjSOgXgQQE/UQnkg3Dg3zp+vrKguOCg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722473447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YQOLPg+2wGgb1xWml0kzNahUiDCR91RYoxszugqFq+g=; b=XzsDjYgkDSHk0zKw8lQMOutwCfFD6VLKn6QfB2qS/eSp1bnNWG1Rpie58YRbxXXQAidEh+ wqRe8J264N+ZU4QmqYwEFCBRL/39AuhmqchS/SKIm9OpWEd2Zie/tzkE3x0epzGF2MnbZ3 PedK+wzK9IS47vjKHVLE7WkwdJI4DMw= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-466-NqiwNS5cMeSS2W-eogwFlA-1; Wed, 31 Jul 2024 20:50:45 -0400 X-MC-Unique: NqiwNS5cMeSS2W-eogwFlA-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4962F1955F43 for ; Thu, 1 Aug 2024 00:50:44 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.22.33.183]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 536B619560AE; Thu, 1 Aug 2024 00:50:42 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [pushed] diagnostics: SARIF output: tweak ASCII art in comment Date: Wed, 31 Jul 2024 20:50:38 -0400 Message-Id: <20240801005038.1003787-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org Pushed to trunk as r15-2463-gf829e627f40c95. gcc/ChangeLog: * diagnostic-format-sarif.cc: Tweak ASCII art in comment to show edges for both directions in the digraph. Signed-off-by: David Malcolm --- gcc/diagnostic-format-sarif.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/diagnostic-format-sarif.cc b/gcc/diagnostic-format-sarif.cc index 84b3e651e46..5900b9ea9b7 100644 --- a/gcc/diagnostic-format-sarif.cc +++ b/gcc/diagnostic-format-sarif.cc @@ -290,17 +290,17 @@ private: . | have 'char'"| | | with type 'int'") | . | in include-chain-1-2.h | | in include-chain-1-1.h | . +-----------------------------------+ +----------------------------------+ - . | | - . | included-by | included-by - . V V + . ^ | ^ | + . includes | | included-by includes | | included-by + . | V | V . +--------------------------------+ +--------------------------------+ . |"id": 1 | |"id": 3 | . | #include "include-chain-1-2.h" | | #include "include-chain-1-1.h" | . | in include-chain-1.h | | in include-chain-1.h | . +--------------------------------+ +--------------------------------+ - . | | - . | included-by | included-by - . V V + . ^ | ^ | + . includes | | included-by includes | | included-by + . | V | V . +------------------------------------+ . |"id": 4 | . | The #include "include-chain-1.h" |