Received: by 10.223.176.46 with SMTP id f43csp1209446wra; Fri, 19 Jan 2018 08:20:30 -0800 (PST) X-Google-Smtp-Source: ACJfBovIuZCnIW6npOxY6yDc9EaELBC9IlZjnhf90ndEfsqzD0Igxhe0qeticGM03JVJnQLfDDzo X-Received: by 10.99.185.4 with SMTP id z4mr40250598pge.299.1516378830795; Fri, 19 Jan 2018 08:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516378830; cv=none; d=google.com; s=arc-20160816; b=IIEoUrcanp7xIlVKD6ScfC5ZROI2+t/SBEhWASwhHlYGkK1t2taZkeCgWIky5ozojg 3CWaS1vdG2PwnWLNQNenMWvIg1vxNO/iFqnYvIRVuTNyuExPY4lCC1nNxRNIckzlS3+o cVM+1VB1dfK2FL6dC65fZ89T2ua8PRMwkmJAJEShPUFFRM1WYNNsrTT5iuQvBYPlFn6w 0qHXOA63JgA9oFgoqYTFCb9sTbUCGYCh2jFMYGP5q3/gbneijk7ocKWn8qZ/kROoOr7R ONjxP4YpKqQhgye4YTXu99sjg7muFe6zR1/sgCWgWxebiLLkL5LJGD7kZqxCEUt8jF6R LHLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=2FYcdn/miwMWVyjlCnSKLJHfIPEBtPFbLjpGgnszg2g=; b=oHgILTPNM8lj1wIBnrY4QIN7CF8g6aPC4GhxSBz3EOVI/wQsizPw8zloMfXMFJZf3V jqPu1/JcP0hHqOmRJRdSCF3TvWbYovArl3K/ps4t6pup3MRc4I3oSUPy910nhkbC8tlr UtAU/vQzmLxqaQhye1wEUcwuzj3h8dQf3IwUkh6SS3AHh+zANftcld7RB/vTXfFFt+o9 UgPKI7tecL10HTbec8IpoTRscg7Lwv5iLK8zALuwei9G7Ox4LnA3v5am74/UqHHoU+lI aaleSYAHxpBVsjvoDFZdPp3+8rGVCPlF1mS71YvEIxTXW+u+Yde9+bQAfg8sfS5k1AHe nbFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si8206652pgq.785.2018.01.19.08.20.16; Fri, 19 Jan 2018 08:20:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755949AbeASQTD (ORCPT + 99 others); Fri, 19 Jan 2018 11:19:03 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:51495 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755734AbeASQS4 (ORCPT ); Fri, 19 Jan 2018 11:18:56 -0500 X-IronPort-AV: E=Sophos;i="5.46,381,1511823600"; d="scan'208";a="309847340" Received: from eduroam-125.epfl.ch ([192.33.203.125]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jan 2018 17:18:54 +0100 Date: Fri, 19 Jan 2018 17:18:54 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: SF Markus Elfring cc: cocci@systeme.lip6.fr, Masahiro Yamada , Himanshu Jha , LKML , kernel-janitors@vger.kernel.org, Gilles Muller , "Luis R. Rodriguez" , Michal Marek , Nicolas Palix Subject: Re: Coccinelle: zalloc-simple: Checking consequences from the usage of at signs in Python strings In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-914161247-1516378735=:3668" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-914161247-1516378735=:3668 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Fri, 19 Jan 2018, SF Markus Elfring wrote: > > I removed the blank line at EOF, > > then applied to linux-kbuild/misc. > > This script for the semantic patch language is using the at sign within string > literals for Python code. > > It is nice when this character seems to work also with the current software. So it works, but you are complaining anyway? > How does its usage fit to the following information in the SmPL manual? > > https://github.com/coccinelle/coccinelle/blob/bf1c6a5869dd324f5faeeaa3a12d57270e478b21/docs/manual/cocci_syntax.tex#L50 > > “… > Furthermore, @ should not be used in this code. > Spatch scans the script code for the next @ and considers that to be the > beginning of the next rule, even if @ occurs within e.g., a comment. > …” I guess the conclusion is that it woks in strings (which are pretty universal) and not in comments (which are language specific). julia > > See also: > Configuration or escaping of @ characters for embedded programming language scripts > https://github.com/coccinelle/coccinelle/issues/36 > > Regards, > Markus > -- > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > --8323329-914161247-1516378735=:3668--