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=-9.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 266A8C54E4B for ; Mon, 11 May 2020 10:07:45 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 EA62820720 for ; Mon, 11 May 2020 10:07:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hz3ORGz3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA62820720 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CC35885C05; Mon, 11 May 2020 10:07:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i8cMVj8QDeim; Mon, 11 May 2020 10:07:44 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5CE2B85B2F; Mon, 11 May 2020 10:07:44 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 4D167C0178; Mon, 11 May 2020 10:07:44 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 88FD3C016F for ; Mon, 11 May 2020 10:07:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 78B1524912 for ; Mon, 11 May 2020 10:07:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26zKc0GO3YmO for ; Mon, 11 May 2020 10:07:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by silver.osuosl.org (Postfix) with ESMTPS id 13F3624763 for ; Mon, 11 May 2020 10:07:42 +0000 (UTC) Received: by mail-pl1-f179.google.com with SMTP id s20so3740146plp.6 for ; Mon, 11 May 2020 03:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M91q9QGpyZbnFV5DZ/SflSN23/oSIrJm2HJMonaNS90=; b=Hz3ORGz3EitMt0bgKoAZffSFk3+aLERbfGoxt9ZkqH31ccgakuD+HR7G0ZvROgfuE3 fIVLLO7/XjOico7fo5sWzDoZ3VlEec0g6EVgLQJqkceEIYOjbK12VdF9Q5uf1PKCiUL6 mI130lQJs8FQXIK2c0QyYQ3idCo5EevtAFptfK8fOiONJrYcvzA9QW0SDOmYJ9CUPPCL F/n1pig4Ed9iWPD49DZpndSbGF7+goZJz3MtnCa/2x+bHgzCpmk+2sflf+6eq6WM8k49 JocRmRnsq/pZRNXwBU8VnHG4b8KHUve9sJOLwN7r9HiTC41w06JJZdOjIYdiUdO9hXK1 052g== 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M91q9QGpyZbnFV5DZ/SflSN23/oSIrJm2HJMonaNS90=; b=Ja8U2I2w/xCl0Hko+CF10YwYahiAQNMKRDhN65cqCl0U2TJIk3uo2xqJueAKzCDFON wn2cjE0qKRdAfgjtytDizHDgJSWJLBWcQmqfeBoc24QX6BKH7YSwuXfwUYum+Og9e9iq 4tV+IPHOi7fwlLoXEgV29fUgqGtOEzkreykjVMEwNxb6kjidJ5bS8Ns0vbl4tBHYE7DR 8Hn2C6jdlb3QT4LsLG30eUP5fSQ/cnQc5dX+XawXUz7M2BXg6DOqSOUuoaO3626AL31C BvudXfkIRE2X5oEX1ZzF/Hydl1lO5fcgLsGa7XC1/WL25+IRSEU7m+J6wIj7oX1KlhOj UZ9A== X-Gm-Message-State: AGi0PuanD3zpEJPWkTrQs1Nd8j0fVQn0dHXtijbiewcfJruhqgYwj8aU V+H1J1piCvKEDDUtwaivm+8= X-Google-Smtp-Source: APiQypJuwcYyaEKao5DLtYS/b4+uK0ZrhNQbhbzX5igDFIJUeZP21WCNJ5/xdG7pmTS8twsCHIOXGw== X-Received: by 2002:a17:90a:f404:: with SMTP id ch4mr21413942pjb.123.1589191661647; Mon, 11 May 2020 03:07:41 -0700 (PDT) Received: from localhost.localdomain ([2405:204:382:66db:4729:1ab8:2139:8945]) by smtp.gmail.com with ESMTPSA id o99sm9772994pjo.8.2020.05.11.03.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 03:07:41 -0700 (PDT) From: Jaskaran Singh To: cocci@systeme.lip6.fr Date: Mon, 11 May 2020 15:36:45 +0530 Message-Id: <20200511100715.19819-3-jaskaransingh7654321@gmail.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200511100715.19819-1-jaskaransingh7654321@gmail.com> References: <20200511100715.19819-1-jaskaransingh7654321@gmail.com> MIME-Version: 1.0 Cc: julia.lawall@inria.fr, jaskaransingh7654321@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org Subject: [Linux-kernel-mentees] [PATCH v2 02/32] parsing_cocci: ast0_cocci: Add cast attributes X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 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 Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" Add cast attributes to AST0 of SmPL. This is a list of attributes in the Cast type of AST0. Signed-off-by: Jaskaran Singh --- parsing_cocci/ast0_cocci.ml | 4 ++-- parsing_cocci/ast0_cocci.mli | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parsing_cocci/ast0_cocci.ml b/parsing_cocci/ast0_cocci.ml index a06d99ae..b65400be 100644 --- a/parsing_cocci/ast0_cocci.ml +++ b/parsing_cocci/ast0_cocci.ml @@ -123,8 +123,8 @@ and base_expression = string mcode (* ] *) | RecordAccess of expression * string mcode (* . *) * ident | RecordPtAccess of expression * string mcode (* -> *) * ident - | Cast of string mcode (* ( *) * typeC * string mcode (* ) *) * - expression + | Cast of string mcode (* ( *) * typeC * attr list * + string mcode (* ) *) * expression | SizeOfExpr of string mcode (* sizeof *) * expression | SizeOfType of string mcode (* sizeof *) * string mcode (* ( *) * typeC * string mcode (* ) *) diff --git a/parsing_cocci/ast0_cocci.mli b/parsing_cocci/ast0_cocci.mli index 5c2520be..08a4b33b 100644 --- a/parsing_cocci/ast0_cocci.mli +++ b/parsing_cocci/ast0_cocci.mli @@ -114,8 +114,8 @@ and base_expression = string mcode (* ] *) | RecordAccess of expression * string mcode (* . *) * ident | RecordPtAccess of expression * string mcode (* -> *) * ident - | Cast of string mcode (* ( *) * typeC * string mcode (* ) *) * - expression + | Cast of string mcode (* ( *) * typeC * attr list * + string mcode (* ) *) * expression | SizeOfExpr of string mcode (* sizeof *) * expression | SizeOfType of string mcode (* sizeof *) * string mcode (* ( *) * typeC * string mcode (* ) *) -- 2.21.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees