From patchwork Thu Jan 5 22:36:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lewis Hyatt X-Patchwork-Id: 1722176 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=GoX+bSxa; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Np1Z22HVFz23fc for ; Fri, 6 Jan 2023 09:37:30 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 02976385840A for ; Thu, 5 Jan 2023 22:37:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02976385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672958246; bh=8xR+PeHTMX8puC383pkfDcLLN40+kWmNSQWhua5Nanc=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=GoX+bSxa+kcpRchlWXpFjEDQpXK3Cd5pn48XK6dL2kguM3ilOzoHNwRHmsa6Ppulq d5iEaP+ftKmPO53y7bWPzuZLmbCw229Ljj5zq+jpLxanxjmmC2jTna0GsoVvfjPSvA zSYfD3JmKScoG435mCfCnrHSkK/O+cT+7bViM5cs= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by sourceware.org (Postfix) with ESMTPS id 28C293858D28 for ; Thu, 5 Jan 2023 22:36:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 28C293858D28 Received: by mail-qt1-x82b.google.com with SMTP id c7so250511qtw.8 for ; Thu, 05 Jan 2023 14:36:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8xR+PeHTMX8puC383pkfDcLLN40+kWmNSQWhua5Nanc=; b=kuSfTAWiMEg3Tso/0cOmQyYNKATEDLTwEMkyq3XFO39CxdDhefVzEFly/C54qXBlU3 Gw7aGsKtfXQHSpNMyL+KeyCBCJmjnrgVb4vqznf6sJ0opCh/MBP8QtVIFOgyJbVR/mYG CjXYcolHB2nrtv42uQnHVzOLqucNbyFhLLEQ5cWBvse7IkQInytziYgdf9WGnVW5VSlS PFQVahnkz/oUxoQehMHUSprV8f1MzQH4U3b6CGnRDuzrTN0EC4oiSDqbBjZBIKGMZpsZ gqUG0aHa6yFMXdCUbKiXwY7RHYGujJMYAttjNZmCt9mM0ZgiMhpin8ovQ2FRhmhNiIvM 888g== X-Gm-Message-State: AFqh2kql6g5Ng8KAdYPB4zHZbSxAw8z62BUJxxxJab1n56QYrPXbNkDF hB9gIhm3r6yS0Px4T+bgOnHymBY4Zhs= X-Google-Smtp-Source: AMrXdXvDmuYCmSS8r7kxi5KI/1x7ogKPoj8YZeEoehr0YOz1ObhtuwpXNnvJdx9oc0uJvA4FzBv50Q== X-Received: by 2002:ac8:1097:0:b0:3a5:7a30:bd22 with SMTP id a23-20020ac81097000000b003a57a30bd22mr60302907qtj.53.1672958192433; Thu, 05 Jan 2023 14:36:32 -0800 (PST) Received: from localhost.localdomain (96-67-140-173-static.hfc.comcastbusiness.net. [96.67.140.173]) by smtp.gmail.com with ESMTPSA id dm28-20020a05620a1d5c00b006e702033b15sm26289185qkb.66.2023.01.05.14.36.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 14:36:31 -0800 (PST) To: gcc-patches@gcc.gnu.org Cc: David Malcolm , Lewis Hyatt Subject: [PATCH v2 0/4] diagnostics: libcpp: Overhaul locations for _Pragma tokens Date: Thu, 5 Jan 2023 17:36:04 -0500 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3032.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Lewis Hyatt via Gcc-patches From: Lewis Hyatt Reply-To: Lewis Hyatt Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Hello- This series contains the four remaining patches in the series originally sent here: https://gcc.gnu.org/pipermail/gcc-patches/2022-November/605029.html which implements improved locations for tokens lexed from a string inside a _Pragma directive. v2 1/4: diagnostics: libcpp: Add LC_GEN linemaps to support in-memory buffers This was formerly v1 4/6. It has been rewritten in line with that review, most recently discussed here: https://gcc.gnu.org/pipermail/gcc-patches/2022-November/606616.html v2 2/4: diagnostics: Handle generated data locations in edit_context This was formerly v1 5a/6. It has been approved already conditional on v2 1/4 as a prerequisite. v2 3/4: diagnostics: libcpp: Assign real locations to the tokens inside _Pragma strings This was formerly v1 6/6 and is unchanged from that one. It has not been reviewed yet. v2 4/4: diagnostics: Support generated data locations in SARIF output This was formerly v1 5c/6. It has not been fully reviewed yet. Thanks for taking a look! -Lewis