Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C043F606A31C for ; Mon, 30 Nov 2026 16:01:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.a=rsa-sha256 header.s=dc header.b=P0oMlWn+ 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=vqNirjQAnEZoeeNYXj/hhfYh/3sm7RbUptVXM8eBVpo=; b=P0oMlWn+ZgAZWtPIDMf0kuHlwZg++yZf4hKmqaHewqk8Yay74gHS9d3X kvI0P8tcMZAmhCm0NHWoAa6muDgbtSsLN9X+inxlNha+fGy3ksK9PFX6a yzptmzcssRKkhj/wXrNlQQ2r7jvxrT+YiHirxp3pDe4aQ2MdOpcJSrYGK c=; X-CSE-ConnectionGUID: fQ49I42gR+SD9ivMv1Byag== X-CSE-MsgGUID: xA0GjpSzT5qsih9gbEECTw== Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=cocci-owner@inria.fr; spf=None smtp.helo=postmaster@prod-sympa-app.inria.fr Received-SPF: Pass (mail2-relais-roc.national.inria.fr: domain of cocci-owner@inria.fr designates 128.93.162.27 as permitted sender) identity=mailfrom; client-ip=128.93.162.27; 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:128.93.162.3 ip4:128.93.162.88 ip4:128.93.162.27 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@prod-sympa-app.inria.fr) identity=helo; client-ip=128.93.162.27; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="postmaster@prod-sympa-app.inria.fr"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.27,243,1787004000"; d="scan'208";a="308098754" Received: from prod-sympa-app.inria.fr ([128.93.162.27]) by mail2-relais-roc.national.inria.fr with ESMTP; 30 Nov 2026 17:01:49 +0100 Received: by prod-sympa-app.inria.fr (Postfix, from userid 990) id 9C9AC82DB8; Mon, 30 Nov 2026 17:01:49 +0100 (CET) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by prod-sympa-app.inria.fr (Postfix) with ESMTP id 5EA3381416 for ; Mon, 30 Nov 2026 17:01:44 +0100 (CET) X-CSE-ConnectionGUID: j3v1QY5MQRmpl/23UILwJA== X-CSE-MsgGUID: 7Q1aTdw1SHi6BG9mK7qQTA== X-IronPort-AV: E=Sophos;i="6.27,243,1787004000"; d="scan'208";a="164296249" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 17:01:43 +0100 Date: Mon, 30 Nov 2026 17:01:42 +0100 (CET) From: Julia Lawall To: Markus Elfring cc: cocci@inria.fr In-Reply-To: Message-ID: <4c29fa5-b2f1-c8c2-1e2d-2fdbf4f2f0a4@inria.fr> References: <214cdbae-b798-4ea4-8c1e-9eabdfd1663a@web.de> <3241c2f-7d9-f7e-d2f5-1e7980340c4@inria.fr> <992efd40-4f9f-48e3-83e8-ebff61c4f295@web.de> <2143c92c-6cd4-223-dea4-b8f4e6fa97b9@inria.fr> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [cocci] [RFC] Detecting unchecked return values (with SmPL)? Reply-To: Julia Lawall X-Loop: cocci@inria.fr X-Sequence: 3827 Precedence: list Precedence: bulk Sender: cocci-request@inria.fr X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Post: List-Owner: List-Archive: Archived-At: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, 30 Nov 2026, Markus Elfring wrote: > >> Would you find the following SmPL script variant more appropriate for > >> efficient source code searches? > >> > >> > >> @display2@ > >> expression e; > >> identifier i; > >> @@ > >> (e = i(...) > >> | > >> *i(...) > >> ); > >> > >> > >> Would you be looking for more advanced data constraints here? > > > > *i(...); > > > > seemed completely fine. There is no need to consider the other contexts > > in which a funcion call can occur. > Will such information influence the incomplete software documentation any more? I don't think that the documentation is incomplete. The BNF has entries, for statements, expressions, etc. i(...); is only a statement. It is not the right half of an assiment followed by a semicolon. No such nonterminal exists in the C grammar. julia