From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1FE5C33CB1 for ; Wed, 15 Jan 2020 15:59:34 +0000 (UTC) Received: from isis.lip6.fr (isis.lip6.fr [132.227.60.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8E3F82187F for ; Wed, 15 Jan 2020 15:59:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="H2losx//" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8E3F82187F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=cocci-bounces@systeme.lip6.fr Received: from systeme.lip6.fr (systeme.lip6.fr [132.227.104.7]) by isis.lip6.fr (8.15.2/8.15.2) with ESMTP id 00FFxEhE017888; Wed, 15 Jan 2020 16:59:14 +0100 (CET) Received: from systeme.lip6.fr (systeme.lip6.fr [127.0.0.1]) by systeme.lip6.fr (Postfix) with ESMTP id 6C4C777F5; Wed, 15 Jan 2020 16:59:14 +0100 (CET) Received: from isis.lip6.fr (isis.lip6.fr [132.227.60.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by systeme.lip6.fr (Postfix) with ESMTPS id 822FB77E3 for ; Wed, 15 Jan 2020 16:59:13 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by isis.lip6.fr (8.15.2/8.15.2) with ESMTP id 00FFx7Lw006014 for ; Wed, 15 Jan 2020 16:59:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579103947; 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: in-reply-to:in-reply-to:references:references; bh=Qfpp5wJKMlnzxc12pSltI6uPwhT1Xkjxgw0KQpMniLk=; b=H2losx//piDooy6cSCfkVWXinXV2CzkpKnQ1aCwQTnVUgn6enooSxB6WK77qSRWVA9T+IW vLUh+7Z1XotvyWZ0BJAEnP0FrjwDmwos596/Le8Meu9jegKbZrwJLSQ6Eqk+waH5DzDAGV G4faMnQ4XipJaAVX+2KRI06ComHmTfM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-345--n_XY-s8OYiUNys1LkbC-A-1; Wed, 15 Jan 2020 10:59:05 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D5FD317F785; Wed, 15 Jan 2020 15:59:04 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.70]) by smtp.corp.redhat.com (Postfix) with SMTP id 2FD60108132E; Wed, 15 Jan 2020 15:59:04 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 15 Jan 2020 16:59:04 +0100 (CET) Date: Wed, 15 Jan 2020 16:59:03 +0100 From: Oleg Nesterov To: Julia Lawall Message-ID: <20200115155902.GA8632@redhat.com> References: <20200115112540.GA18161@redhat.com> <20200115153035.GA9172@redhat.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.78 on 132.227.60.2 X-Scanned-By: MIMEDefang 2.78 on 132.227.60.2 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: -n_XY-s8OYiUNys1LkbC-A-1 X-Mimecast-Spam-Score: 0 Content-Disposition: inline X-Greylist: Sender IP whitelisted, Sender e-mail whitelisted, not delayed by milter-greylist-4.4.3 (isis.lip6.fr [132.227.60.2]); Wed, 15 Jan 2020 16:59:14 +0100 (CET) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.4.3 (isis.lip6.fr [132.227.60.2]); Wed, 15 Jan 2020 16:59:07 +0100 (CET) Cc: cocci@systeme.lip6.fr Subject: Re: [Cocci] Q: does spatch understand typeof? X-BeenThere: cocci@systeme.lip6.fr X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: cocci-bounces@systeme.lip6.fr Errors-To: cocci-bounces@systeme.lip6.fr On 01/15, Julia Lawall wrote: > > On Wed, 15 Jan 2020, Oleg Nesterov wrote: > > > $ spatch --sp-file test.cocci test.c > > > > (ONCE) Expected tokens mem TTT > > Skipping: test.c > > > > I tried to play with various --.*include.* options, but nothing seems to work > > unless I add "inc.h" to the command line explicitly. > > The problem is that the file filtering happens before the parsing, and it > is the parsing that finds the includes. Yes, thanks, this was clear to me, > You can disable the file > filtering with --disable-worth-trying-opt. Heh. I swear, I even did $ spatch --longhelp 2>&1 | grep disable but apparently I can't read. Thanks a lot! Oleg. _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci