From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luke Lee Newsgroups: gmane.emacs.devel Subject: Re: master 87e7390: * lisp/progmodes/hideif.el: update for new C++ standards and extensions Date: Thu, 03 Jun 2021 17:10:42 +0800 Message-ID: <87sg1zpb3h.fsf@gmail.com> References: <20210602123045.16251.72470@vcs0.savannah.gnu.org> <20210602123047.2969E209AA@vcs0.savannah.gnu.org> <87lf7sguqd.fsf@tcd.ie> <877djbty64.fsf@lukehome> <834kefxxgs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11856"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: contovob@tcd.ie, chenzhiwei03@kuaishou.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 03 11:13:27 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lojPq-0002xS-0y for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 11:13:26 +0200 Original-Received: from localhost ([::1]:60474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lojPp-0004lx-34 for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 05:13:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lojNK-0000pM-W1 for emacs-devel@gnu.org; Thu, 03 Jun 2021 05:10:52 -0400 Original-Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:34715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lojNH-0005BD-SW; Thu, 03 Jun 2021 05:10:50 -0400 Original-Received: by mail-pf1-x435.google.com with SMTP id g6so4434239pfq.1; Thu, 03 Jun 2021 02:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jUWv5FRcguFSY5NgEwG17a5aVH57Tn65BtK+c2dcxEs=; b=n2CIfRZaW8HMo3/nI89Z7Z0xCP+hM+jEBfWJ6bDv6Cv8UAdWvBhbS+zSy+DYgV0Z28 e24gAkqs6S+HSOui2F/xdqtYk1X97QAnWvPtlHI92m9OPLcCmxXLSUh0EF00F4XK31Dp bvTHx24hCFdiz/Y0zdy2em705eJxpiYz2TQmPRIzfIgYNBC6gjYzaGyNjpuW/rS98JYC jcpaUwyVBoHdLCHD5C8eSxlTz2ZbHjBUfGNkYuKddCLXywZwVi3LlOf5Bz1KRLUcE+mn eDLYQEcO46+esc3cZPKgMJ9NmcBDP2JEMScNb3AdiDBYwUKr50Mbc/5+VAjcAzfV5g/1 fx7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=jUWv5FRcguFSY5NgEwG17a5aVH57Tn65BtK+c2dcxEs=; b=lZ9VV2SN9xNkVlKH+uoUJKtmYvI89JYJQgKbDm8dmY3iI4Tws7McqS7J/48XiyoL4+ pkT+ywiBiC2GHn/Xldphrc5+edyCyZ0KWaDqVExe1PA0x042Q+wBg1CoJDN5A/rjVgYL TCt1mdCNQ888u/NtKAJM0PqNtdkv+ZCKv4Gvf8ZZbo/ML15+B20Yfsg5YlVXV3Xihw9i d89jdIV+HFf/vCU5+KcRk9KmBbouImw9xAOzgLH18g/y3vYvfGwA46BsV7cZY0io2OlT CmsAZelPT5/2zOwsbEkMObrOVD8IcQT2P/ZtJ+Bgua8Ebatnxzjs/ppHIaoLQVytergZ S+Rg== X-Gm-Message-State: AOAM5327mgNpWyP2UT8HFQ+a7MIIBEFfQd0VrylULp25vkTPx9MAiohV Yw3OQhLm3yPYNNIhbnQn022yaufR8LyVZYlU X-Google-Smtp-Source: ABdhPJyBdXan5ByYH/ck/uy02ZDmBNU7IkBpKv6jp27yTiH6wztxWX5WLaCZuJihxbPcxhP6uRbdjA== X-Received: by 2002:a63:4d47:: with SMTP id n7mr27282537pgl.82.1622711445756; Thu, 03 Jun 2021 02:10:45 -0700 (PDT) Original-Received: from lukehome (2001-b011-3815-56eb-30d9-cafd-0b28-59c2.dynamic-ip6.hinet.net. [2001:b011:3815:56eb:30d9:cafd:b28:59c2]) by smtp.gmail.com with ESMTPSA id u23sm1820364pgk.38.2021.06.03.02.10.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 02:10:45 -0700 (PDT) In-Reply-To: <834kefxxgs.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Jun 2021 09:40:19 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=luke.yx.lee@gmail.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270342 Archived-At: Eli Zaretskii writes: > > How about making hideif.el capable of running a GCC command such as > above automatically, and using the output to find which macros should > be defined and which shouldn't? > [...] Yes, actually that was in my TODO list including the nesting recursive #include process; however that might take a long time to run for any decent project. The most important part is to set a configurable inclusion path list to search, which also serves for GCC's "-I" arguments if it's going to be executed automatically. > > As another "btw", we have cpp.el which provides a similar > functionality; perhaps hideif.el could learn something from there? Okay, I will take a look, meanwhile if you have a more specific item for me to look please let me know. Thanks. Best regards, Luke Lee