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=-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 81B92C47255 for ; Mon, 11 May 2020 10:08:32 +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 5684B20720 for ; Mon, 11 May 2020 10:08:32 +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="KsNSHQ22" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5684B20720 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 36F3286990; Mon, 11 May 2020 10:08:32 +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 hinDVMdAKAAb; Mon, 11 May 2020 10:08:31 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id CF7AA85C05; Mon, 11 May 2020 10:08:31 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id BFE7DC0178; Mon, 11 May 2020 10:08:31 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7815BC016F for ; Mon, 11 May 2020 10:08:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 62C8824763 for ; Mon, 11 May 2020 10:08:30 +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 40NFf-FXtaib for ; Mon, 11 May 2020 10:08:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by silver.osuosl.org (Postfix) with ESMTPS id F1A2B2050E for ; Mon, 11 May 2020 10:08:29 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id r10so3857205pgv.8 for ; Mon, 11 May 2020 03:08:29 -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=g8ObZEU8oQgITaiHCYVY8TZYA9FdrqRe/dufNnhXR+s=; b=KsNSHQ22rntlXRXO6IRcraWP7ElPy90/TomURoGIbjOtCJhXpMsMm1FvT8qqZfvkoo gy2AzTr1sXdsjwrLEwstSmyKAhiKc5AkZSx6r9IU44X70gQZp+RrI1kyW/se6PFi6no3 MOKW37viInZgdanEnBnzVOybLI41or5IEj2ICCugpLvsxnaRKq6XM8zIWbMQE4XPYkSe WDTVKu7fR2BC0RvV/9UOXtu6umyY7fLiHcxSSDfyL0Y5KE3Bc7UpPgXKtRwiBA2xf6II BnG+aofI/tvQUgxWArNwoV8z/Vm2jp9EudTpTpCn6GCVrtwRxm+/CzuylzObKsf19cPM LaiA== 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=g8ObZEU8oQgITaiHCYVY8TZYA9FdrqRe/dufNnhXR+s=; b=Z/qunq0RyQ80sytl+wCSeWZqFKXKpVK6Svh47MiKICh6uZ22YdYmiRjcTv80ljDeK7 +VM+6oTfWNyV+CzsRZGZU05wOxjbC40IeTDhTprs05neNKfm1Kl9tiMLhH4fhGVjOdzF 4wqhzbT0ynMfg7D1inIuyS0BZUm1lonZ3O+7ZQ9t2dKobyIbwtJoA1iZdzo8qI4uS+fA kZHW0JuWeO+Cq9Zmzv0ZfxkdFlVz06hjDhWd60KU7pfgPq0huZE+RFd7FqSocWRU/v4b 5lCB8iyfcLBUBp146HZCFUO9mLq2z/O6DWUUuOXJXBasRvDc/vERTEYsqwZ+E4le8TWh 3Y9g== X-Gm-Message-State: AGi0PuYVJ6reOIjYETdbjWZndvwCa8UV0gSdcMD5zg2JLB1R2pyaOA3J 5tbwk7RrWh6j+Ufy+gvA1nI= X-Google-Smtp-Source: APiQypJ5H7FRjYZ5aaXGAAC17qw1uUA46+UNCvREp6Jo9+bsom8nDGB8ZSA2pKhowfoZMiHhUMdP4A== X-Received: by 2002:a63:a61:: with SMTP id z33mr13904104pgk.440.1589191709546; Mon, 11 May 2020 03:08:29 -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.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 03:08:29 -0700 (PDT) From: Jaskaran Singh To: cocci@systeme.lip6.fr Date: Mon, 11 May 2020 15:36:57 +0530 Message-Id: <20200511100715.19819-15-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 14/32] parsing_cocci: ast_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 the SmPL AST. This is a list of attributes in the Cast type of the SmPL AST. Signed-off-by: Jaskaran Singh --- parsing_cocci/ast_cocci.ml | 4 ++-- parsing_cocci/ast_cocci.mli | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parsing_cocci/ast_cocci.ml b/parsing_cocci/ast_cocci.ml index 9b147e5c..b0190fa1 100644 --- a/parsing_cocci/ast_cocci.ml +++ b/parsing_cocci/ast_cocci.ml @@ -194,8 +194,8 @@ and base_expression = string mcode (* ] *) | RecordAccess of expression * string mcode (* . *) * ident | RecordPtAccess of expression * string mcode (* -> *) * ident - | Cast of string mcode (* ( *) * fullType * string mcode (* ) *) * - expression + | Cast of string mcode (* ( *) * fullType * attr list * + string mcode (* ) *) * expression | SizeOfExpr of string mcode (* sizeof *) * expression | SizeOfType of string mcode (* sizeof *) * string mcode (* ( *) * fullType * string mcode (* ) *) diff --git a/parsing_cocci/ast_cocci.mli b/parsing_cocci/ast_cocci.mli index c56bba88..ff81692c 100644 --- a/parsing_cocci/ast_cocci.mli +++ b/parsing_cocci/ast_cocci.mli @@ -178,8 +178,8 @@ and base_expression = string mcode (* ] *) | RecordAccess of expression * string mcode (* . *) * ident | RecordPtAccess of expression * string mcode (* -> *) * ident - | Cast of string mcode (* ( *) * fullType * string mcode (* ) *) * - expression + | Cast of string mcode (* ( *) * fullType * attr list * + string mcode (* ) *) * expression | SizeOfExpr of string mcode (* sizeof *) * expression | SizeOfType of string mcode (* sizeof *) * 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