Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5E639E93701 for ; Thu, 5 Oct 2023 10:43:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:in-reply-to:message-id:references: mime-version:subject:reply-to:sender:list-id:list-help: list-subscribe:list-unsubscribe:list-post:list-owner: list-archive; bh=XbGWBwmwEo7sEleonNLzfyfCjwCImeg6aAYpp9qEpUM=; b=ujx07RKDOAJrnaIpDtIUNUN0f1Eo1DqHVYwFfBVZ7HTvgg9VTQxol9Bf 9Y7yAerh2vyNxJP8CBJJoekEssCrFKxV33vjJiC2pHOsBVlMZZ9adprlO d7ptN3W6NQbDztnYRO2ILiFIKdaqvLHRQvt9PWhWAdAAE2IcMM4YcssKt Q=; Received-SPF: Pass (mail2-relais-roc.national.inria.fr: domain of cocci-owner@inria.fr designates 128.93.162.160 as permitted sender) identity=mailfrom; client-ip=128.93.162.160; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="cocci-owner@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@sympa.inria.fr) identity=helo; client-ip=128.93.162.160; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="postmaster@sympa.inria.fr"; x-conformance=spf_only Authentication-Results: mail2-relais-roc.national.inria.fr; spf=Pass smtp.mailfrom=cocci-owner@inria.fr; spf=None smtp.helo=postmaster@sympa.inria.fr; dkim=pass (signature verified) header.i=@inria.fr X-IronPort-AV: E=Sophos;i="6.03,202,1694728800"; d="scan'208";a="129638482" Received: from prod-listesu18.inria.fr (HELO sympa.inria.fr) ([128.93.162.160]) by mail2-relais-roc.national.inria.fr with ESMTP; 05 Oct 2023 12:43:08 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id AD535E0CD5; Thu, 5 Oct 2023 12:43:08 +0200 (CEST) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 3F29BE00B7 for ; Thu, 5 Oct 2023 12:43:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=XbGWBwmwEo7sEleonNLzfyfCjwCImeg6aAYpp9qEpUM=; b=VxAF/fkLLkwIqr5831gsp/DE4PX25s+0DkXNPA1yz+TfF487W/OiTb62 CivwKfIEO9hl+oFY7lFJg9iwsF9vMGXqkHkipEinofon2Ms7YP5FlmBZv OzBQ/tJcfelY5Ok7+ZPA4DATyGEn2RVBQBxJWCwtSBpd/0lNJhZG/p9ed 8=; X-IronPort-AV: E=Sophos;i="6.03,202,1694728800"; d="scan'208";a="129638478" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 12:43:05 +0200 Date: Thu, 5 Oct 2023 12:43:05 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: cocci@inria.fr In-Reply-To: <0d4309f1-9b52-47ab-bae1-e19be92346eb@web.de> Message-ID: References: <29542ba7-5d13-4089-abc3-5ab314af4fc6@web.de> <0d4309f1-9b52-47ab-bae1-e19be92346eb@web.de> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-807783620-1696502585=:3375" Subject: Re: [cocci] Searching for variable definitions in C++ source files Reply-To: Julia Lawall X-Loop: cocci@inria.fr X-Sequence: 1249 Errors-To: cocci-owner@inria.fr Precedence: list Precedence: bulk Sender: cocci-request@inria.fr X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-807783620-1696502585=:3375 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 5 Oct 2023, Markus Elfring wrote: > >> Is the current Coccinelle software status so far that the search for variables > >> (where a constructor initialisation is applied) is not supported? > >> https://en.cppreference.com/w/cpp/language/definition > >> https://en.cppreference.com/w/cpp/language/constructor#Example > > > > I don't understand the question, but I think that the parenthesis notation > > of C++ causes a severe parser conflict. > > Can source code like “RPC rpc(this);” be interpreted in the way > that a macro call would be applied there? It is indeed a parser conflict with function calls. I don't think it matters whether it would be a function call or a macro call. julia --8323329-807783620-1696502585=:3375--