Message ID | 20231003171851.1161340-2-tromey@adacore.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2270265vqb; Tue, 3 Oct 2023 11:22:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsQD9rRIeHfNyylvHup+ekEjFX+vkQrwvBANaalYiQZBe/mv9VsgX7iwm07XoKpD7ZKaPx X-Received: by 2002:a17:906:2097:b0:9ae:53df:9855 with SMTP id 23-20020a170906209700b009ae53df9855mr15419984ejq.58.1696357364061; Tue, 03 Oct 2023 11:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696357364; cv=none; d=google.com; s=arc-20160816; b=MeM9+sp7MtE3ygGmMR6MUnTdq1xIq/o6KsQ4fxd2FepcyZ1PXKZ6/8twLBo5Czv0h7 LFu3SUVyPPt+05bUxUjvw4rYgqheYiM2kqvoH7nxMJpxyIqYQJI+RlR00oUwfZo0CJcU RwKr9EcD90c3CbKzVzuaFC+i/rx1UZ8R9h/qbjwweGa/0UC2jlB2aG8Dou2GVVWCh5qA Z07E1GZVj/WMUb3I3n7sgN7X6DpLASQTd5HrwCWwAASGLTwftlyG9LAF8n7lQV61jJK8 ALe3iriygOh5M/Sv3aXm09J8kP0xblwKuUGa2aMU7hjGKdEBtHq4jWdf83Pv9/Qv+xzd fqtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-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=boOmGV/6TjOLuBhywtJCzQe4ZAPokQuL6+bf0WcCb/k=; fh=Ogh3zaPUNpdNYHofIVNHsbX+D3lwaT1T8Jhe/MolwAA=; b=dNb8qeH+d1ivhmveU96ETE6lFytowpPA8tvxzD0eqwURmPreTYo1l3l5eypu/gn2hl B1pvB8s3b55j33hNC0P4bAzcvWM1yZvRZ1aGnzIGiuAqf3H8Orky0Luwn8L79S/sCg6G NGQlfM+SEEzl/CT87xsJtmwRwvZalCQzimkovtmAsdZFb0p/F4DYXSqgGBsQ6Xk4mRPP xNL360ENWPmdLJ5UEk2HvJELhABCysJBzBK5MaEioWgzD2janUFNWhD5bMDxmbECa+JV tDeKMpkRGyraVUP/pn+dE1rupdlOplX+rK2pq4WetFCCItdvo0YPiVd/VMyn1Pnq9cC+ oTaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=KebqDoEG; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id kt27-20020a170906aadb00b0099bd4f74cbesi860459ejb.615.2023.10.03.11.22.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 11:22:44 -0700 (PDT) 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=@adacore.com header.s=google header.b=KebqDoEG; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E9F08388267C for <ouuuleilei@gmail.com>; Tue, 3 Oct 2023 17:19:53 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id E3F493858408 for <gcc-patches@gcc.gnu.org>; Tue, 3 Oct 2023 17:19:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E3F493858408 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-3528bc102adso4209605ab.2 for <gcc-patches@gcc.gnu.org>; Tue, 03 Oct 2023 10:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1696353541; x=1696958341; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=boOmGV/6TjOLuBhywtJCzQe4ZAPokQuL6+bf0WcCb/k=; b=KebqDoEGIrtPHaeZEpTJGlhBmR0dR2iwpCh4PukpO8PgVaA7QyQFGBgNMl0J5rqbkq Mb40GkjQ8KL+f1VJtoE3uElg7Q2CYd286lA3IbpGyZoAWn9gifmhp6cLqxUgSbz/sRMe QqrROcYS6O3bpo63yoMRxiLty5titUVu26RbhmQbBmB29DC9NlTojGnzAlLdxHC6DYHc gYFkS12j52ploEAH28I6SNnMQmSJ0Amu8QN3FluqU6YeABmzbXSBWnG/URM80+tZQsHf +/V0NSAtlPAQulHPiNIjaPy4gyqx6+7NxhAdUVT1xeYrx3AXHJ0erZ4tDAFG23Q8YrDx s0qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696353541; x=1696958341; h=content-transfer-encoding:mime-version: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=boOmGV/6TjOLuBhywtJCzQe4ZAPokQuL6+bf0WcCb/k=; b=X1GN8pN5vyBlAdD09LzYIk7zbA8OQJPJ517Ji0uTIjzVLWiT5qhxc9hQZJYiECJQpv ugpejgd2dg7a9UZwok8BucNIvzxOXmqLN0cAvtmhIKQv1pzQ6gcT+TBp62dEpLgAnaFT K2Cg7nhhGSFKMr+gX1N+Q7m0yq2eMOL/uszGJCeVC1rdWDKAsqpW2x66gP1R3IKXIe0U DJRzm/kGUoPn47wsjeub4vqzdP1la80uVcv5Lgm5JbRgShSD7NyiKqA4zzKBstxIb+rr gkBHAWXMDSYWkrtGiryAeYxxsfd4LuDtLqPf8qU5Cs+tbPbokilU1MzQ8jvJqZ62r1D9 zwxw== X-Gm-Message-State: AOJu0YyCwIHhQPMXsPW5Q9MrHM6F8lQpN4jkgn9jn8lWcpFQhoRGSRKb yOfWFPygVrYpVz0otVkPveyjeJKyMjj7twISfHvtmA== X-Received: by 2002:a05:6e02:12e3:b0:350:f442:9a4d with SMTP id l3-20020a056e0212e300b00350f4429a4dmr86082iln.28.1696353541187; Tue, 03 Oct 2023 10:19:01 -0700 (PDT) Received: from localhost.localdomain (71-211-130-31.hlrn.qwest.net. [71.211.130.31]) by smtp.gmail.com with ESMTPSA id p7-20020a92c607000000b0035134215863sm480967ilm.55.2023.10.03.10.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:19:00 -0700 (PDT) From: Tom Tromey <tromey@adacore.com> To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org, Tom Tromey <tromey@adacore.com> Subject: [PATCH 1/2] libstdc++: Define _versioned_namespace in xmethods.py Date: Tue, 3 Oct 2023 11:18:50 -0600 Message-Id: <20231003171851.1161340-2-tromey@adacore.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231003171851.1161340-1-tromey@adacore.com> References: <20231003171851.1161340-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.2 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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778759619322948243 X-GMAIL-MSGID: 1778759619322948243 |
Series |
A couple minor _versioned_namespace patches
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Tom Tromey
Oct. 3, 2023, 5:18 p.m. UTC
flake8 pointed out that is_specialization_of in xmethods.py looks at a global that wasn't added to the file. This patch correct the oversight. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/xmethods.py (_versioned_namespace): Define. --- libstdc++-v3/python/libstdcxx/v6/xmethods.py | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Tue, 3 Oct 2023, 18:19 Tom Tromey, <tromey@adacore.com> wrote: > flake8 pointed out that is_specialization_of in xmethods.py looks at a > global that wasn't added to the file. This patch correct the > oversight. > OK, thanks > > libstdc++-v3/ChangeLog: > > * python/libstdcxx/v6/xmethods.py (_versioned_namespace): > Define. > --- > libstdc++-v3/python/libstdcxx/v6/xmethods.py | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libstdc++-v3/python/libstdcxx/v6/xmethods.py > b/libstdc++-v3/python/libstdcxx/v6/xmethods.py > index 844c8a2105a..8ccf57c4d6b 100644 > --- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py > +++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py > @@ -28,6 +28,8 @@ def get_bool_type(): > def get_std_size_type(): > return gdb.lookup_type('std::size_t') > > +_versioned_namespace = '__8::' > + > def is_specialization_of(x, template_name): > """ > Test whether a type is a specialization of the named class template. > -- > 2.40.1 > >
diff --git a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py index 844c8a2105a..8ccf57c4d6b 100644 --- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py +++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py @@ -28,6 +28,8 @@ def get_bool_type(): def get_std_size_type(): return gdb.lookup_type('std::size_t') +_versioned_namespace = '__8::' + def is_specialization_of(x, template_name): """ Test whether a type is a specialization of the named class template.